Skip to content

feat: Adds optional _meta to request input forms. #514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mbleigh
Copy link

@mbleigh mbleigh commented Jun 16, 2025

Motivation and Context

The inspector currently has no mechanism of sending _meta information which means it can't be used to inspect/debug custom metadata uses.

How Has This Been Tested?

I've tested this out with my custom MCP server that depends on certain _meta keys and it seems to work well.

Example screenshots:

image image

Breaking Changes

No breaking changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

modelcontextprotocol/modelcontextprotocol#710

Copy link
Member

@olaservo olaservo left a comment

Choose a reason for hiding this comment

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

Hi, thanks for the PR. I had a couple minor comments, and it also looks like there is a linting error in the CI.

@@ -108,6 +108,7 @@ export function useConnection({
schema: T,
options?: RequestOptions & { suppressToast?: boolean },
): Promise<z.output<T>> => {
console.log("makeRequest:", request);
Copy link
Member

Choose a reason for hiding this comment

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

Could you remove this extra log?

Suggested change
console.log("makeRequest:", request);

@@ -841,18 +890,19 @@ const App = () => {
tools={tools}
listTools={() => {
clearError("tools");
listTools();
listTools(); // TODO: Pass meta from ToolsTab if MetaEditor is added there
Copy link
Member

Choose a reason for hiding this comment

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

Is this TODO still applicable?

@olaservo olaservo added the waiting on submitter Waiting for the submitter to provide more info label Jul 7, 2025
@olaservo
Copy link
Member

olaservo commented Aug 1, 2025

Hi @mbleigh curious if you are still planning to update this PR, or should I close it for now?

@FelixBaum
Copy link

Hi @olaservo and @mbleigh,
this feature is very important to us. Please don't close this PR.
I will try and fix the remaining issues until this or next week.

@olaservo
Copy link
Member

olaservo commented Aug 5, 2025

OK sounds good @FelixBaum ! If you'd like to discuss details related to this implementation feel free to check out the Discord server mentioned in this post: https://blog.modelcontextprotocol.io/posts/2025-07-31-governance-for-mcp/

@mbleigh
Copy link
Author

mbleigh commented Aug 5, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting on submitter Waiting for the submitter to provide more info
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants