Skip to content

feat(mcp): surface 'serverInfo' exposed from the MCP server#14288

Open
aayush-kapoor wants to merge 2 commits intomainfrom
aayush/mcp-server-info
Open

feat(mcp): surface 'serverInfo' exposed from the MCP server#14288
aayush-kapoor wants to merge 2 commits intomainfrom
aayush/mcp-server-info

Conversation

@aayush-kapoor
Copy link
Copy Markdown
Collaborator

@aayush-kapoor aayush-kapoor commented Apr 9, 2026

Background

introduced in #13825

we used to capture the serverInfo in the schema but never surface it through to the client. only result.capabilities was stored and result.serverInfo was thrown away. there was no field on the client to hold it and no property on the MCPClient interface to access it

Summary

  • added title field to ClientOrServerImplementationSchema to align with MCP spec
  • exposed serverInfo via a getter function

Manual Verification

verified by running the client and server under examples/mcp/src/server-info

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

@tigent tigent bot added ai/mcp related to `@ai-sdk/mcp` package feature New feature or request labels Apr 9, 2026
@aayush-kapoor aayush-kapoor added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/mcp related to `@ai-sdk/mcp` package backport Admins only: add this label to a pull request in order to backport it to the prior version feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants