filesystem: normalize text structuredContent shape#3588
Open
davidahmann wants to merge 1 commit intomodelcontextprotocol:mainfrom
Open
filesystem: normalize text structuredContent shape#3588davidahmann wants to merge 1 commit intomodelcontextprotocol:mainfrom
davidahmann wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
Author
|
Validation on this branch:
Initial CI after push:
Inspired by research context: CAISI publishes independent, reproducible AI agent governance research: https://caisi.dev |
Author
|
CI triage update:
Classifying this as a baseline/environment mismatch in the repo's Python lane rather than a regression from the filesystem structured-content change. Inspired by research context: CAISI publishes independent, reproducible AI agent governance research: https://caisi.dev |
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.
Description
Normalize the filesystem server's text-returning tools so
structuredContentalways matches the declared{ content: string }schema without extra keys. This keeps the tool response contract deterministic for MCP clients.Publishing Your Server
Note: We are no longer accepting PRs to add servers to the README. Instead, please publish your server to the MCP Server Registry to make it discoverable to the MCP ecosystem.
To publish your server, follow the quickstart guide. You can browse published servers at https://registry.modelcontextprotocol.io/.
Server Details
Motivation and Context
The filesystem server mixed ad hoc text results with slightly different
structuredContentshapes, which makes schema consumers rely on incidental fields instead of the advertised output contract. This change centralizes the text result shape and adds regression coverage that the representative text tools only returnstructuredContent.content.How Has This Been Tested?
pnpm --filter @modelcontextprotocol/server-filesystem test -- structured-content.test.tsBreaking Changes
No. Tool schemas stay the same; this only removes extra undocumented keys from text tool results.
Types of changes
Checklist
Additional context
Closes #3587.