Skip to content

feat(filesystem): support base64 edit replacements#4411

Open
kingrubic wants to merge 1 commit into
modelcontextprotocol:mainfrom
kingrubic:feat-filesystem-edit-base64
Open

feat(filesystem): support base64 edit replacements#4411
kingrubic wants to merge 1 commit into
modelcontextprotocol:mainfrom
kingrubic:feat-filesystem-edit-base64

Conversation

@kingrubic

Copy link
Copy Markdown

Summary

  • add optional newText_base64 to edit_file edit operations
  • decode UTF-8 replacement text server-side before applying edits
  • add an integration test for PowerShell-style $() expressions sent as base64

Fixes #2033.

Tests

  • npm run build --workspace @modelcontextprotocol/server-filesystem
  • npm test --workspace @modelcontextprotocol/server-filesystem -- __tests__/structured-content.test.ts
  • npm test --workspace @modelcontextprotocol/server-filesystem

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.

edit_file tool fails with PowerShell expressions containing dollar signs

1 participant