Skip to content

feat(tools): add document_save MCP tool#38

Merged
CalvinAllen merged 1 commit intomainfrom
feat/tools/add-document-save
Mar 16, 2026
Merged

feat(tools): add document_save MCP tool#38
CalvinAllen merged 1 commit intomainfrom
feat/tools/add-document-save

Conversation

@CalvinAllen
Copy link
Contributor

@CalvinAllen CalvinAllen commented Mar 16, 2026

Summary

  • Adds a new document_save MCP tool that saves an open document to disk without closing it
  • Wired through the full chain: MCP tool → RpcClient → RpcServer → VisualStudioService → DTE doc.Save()

Test plan

  • Open a document in VS, make changes, call document_save with the file path — verify file is saved
  • Call document_save on a document that isn't open — verify failure message returned
  • Call document_save on an already-saved document — verify idempotent success

Closes #36

@CalvinAllen CalvinAllen merged commit 47b841e into main Mar 16, 2026
3 checks passed
@CalvinAllen CalvinAllen deleted the feat/tools/add-document-save branch March 16, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feat(tools) Add document_save tool

1 participant