feat: Add terminal management tools to mcp-server-vscode#658
Open
psh4607 wants to merge 1 commit intomicrosoft:mainfrom
Open
feat: Add terminal management tools to mcp-server-vscode#658psh4607 wants to merge 1 commit intomicrosoft:mainfrom
psh4607 wants to merge 1 commit intomicrosoft:mainfrom
Conversation
VS Code 터미널을 MCP 도구로 제어할 수 있도록 4개 도구를 추가: - create_terminal: 새 터미널 생성 (이름, cwd, 초기 명령어 지원) - list_terminals: 활성 터미널 목록 조회 - send_terminal_text: 기존 터미널에 텍스트 전송 - close_terminal: 터미널 닫기 debug_tools의 list/start/stop 패턴을 따르며, Zod 스키마 검증 유닛 테스트 포함.
Author
|
@microsoft-github-policy-service agree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add four terminal management tools to the VSCode MCP Server extension, enabling AI assistants to create and manage VS Code integrated terminals via MCP.
New Tools
create_terminallist_terminalssend_terminal_textclose_terminalDesign
debug_tools.tspattern (list/start/stop CRUD)vscode.window.createTerminal(),terminal.sendText(),terminal.show(),terminal.dispose()APIsFiles Changed
src/tools/terminal_tools.ts— Tool implementationssrc/test/terminal_tools.test.ts— Zod schema validation testssrc/extension.ts— Tool registrationsTesting
tsc): passing