Skip to content

feat: add document title and save tools - #63

Merged
lgazo merged 1 commit into
lgazo:mainfrom
giri256:feat/document-title-save-tools
Sep 1, 2026
Merged

feat: add document title and save tools#63
lgazo merged 1 commit into
lgazo:mainfrom
giri256:feat/document-title-save-tools

Conversation

@giri256

@giri256 giri256 commented Jul 20, 2026

Copy link
Copy Markdown

Summary

  • add set-document-title to rename the selected Draw.io document through its active file provider
  • preserve the current .drawio, .drawio.svg, .drawio.png, .xml, .svg, or .png suffix when the requested title omits one
  • add save-document to trigger Draw.io's existing File > Save action in the current storage mode
  • route and queue both tools through the existing multi-document infrastructure
  • document that provider authentication, conflict, or Save As prompts may still require user interaction

The plugin handlers are isolated under src/tools/. They use Draw.io's existing file rename callback and save action; no version-specific implementation was needed for the currently supported compatibility window.

Testing

  • drawio-mcp-plugin build
  • drawio-mcp-server build
  • build/tool-registry.test.js — 19 passed
  • focused HTTP MCP tools/list test — passed
  • drawio-mcp-server lint (Biome + TypeScript) — passed
  • Prettier check for changed TypeScript files — passed

Closes #57

@lgazo lgazo left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@lgazo
lgazo merged commit 781b8fa into lgazo:main Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wish: MCP control over document title and save (File ⇄ Editor persistence layer)

2 participants