-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: use informative user agent in HTTP requests #872
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
base: main
Are you sure you want to change the base?
feat: use informative user agent in HTTP requests #872
Conversation
0845a57 to
c94ba4b
Compare
|
I'm curious why we wouldn't extend the UA string further to include the model being used on the client. Wouldn't this enable servers to tailor responses to different models of varying capabilities? |
I think supporting overriding the UA is a good idea (I'll add that), so that applications can provide this if they want to, but I think there are two problems with this suggestion beyond that:
I think model capability-sharing is useful, like sharing if a model is multimodal or not, but I don't think the UA is the right place for communicating that information. It should be proposed as a separate extension to the existing MCP capability-sharing during initialization, I think. |
44e6975 to
fd93114
Compare
|
Updated this PR and added support for overriding the |
commit: |
…ript-sdk into feat/user-agent
|
Configures a descriptive user agent in all HTTP requests.
Example (Node):
my-mcp-sdk/1.17.2 os/darwin#24.5.0 lang/js md/nodejs#22.13.1Example (Browser):
mcp-sdk-ts/1.17.2 os/macOS#10.15.7 lang/jsuserAgent.test.tsfor details.Motivation and Context
Makes debugging client/server incompatibilities easier.
How Has This Been Tested?
Unit tests.
Breaking Changes
No breaking changes.
Types of changes
Checklist
Additional context
Reference implementation for modelcontextprotocol/modelcontextprotocol#1329