Skip to content

feat(filesystem): support base64 write content - #4410

Closed
nnqbao wants to merge 1 commit into
modelcontextprotocol:mainfrom
nnqbao:feat-filesystem-write-file-base64
Closed

nnqbao wants to merge 1 commit into
modelcontextprotocol:mainfrom
nnqbao:feat-filesystem-write-file-base64

Conversation

@nnqbao

@nnqbao nnqbao commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add optional content_base64 to write_file so agents can submit JSON-safe base64 payloads
  • decode UTF-8 content server-side while keeping existing content callers unchanged
  • add an integration test that writes special characters through the MCP client using content_base64

Addresses #4394.

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

@nnqbao

nnqbao commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Closing this PR to keep the backlog tidy after more than 48 hours without maintainer feedback. Please feel free to reopen it if a maintainer finds it useful. Thank you.

@nnqbao nnqbao closed this Jul 14, 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.

1 participant