Skip to content
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

fix(fastmcp): handle strings containing numbers correctly #142

Merged

Conversation

sd2k
Copy link

@sd2k sd2k commented Jan 8, 2025

This is a port of jlowin/fastmcp#63 to this repo - I guess the transition was made before this PR was merged into fastmcp, so it wasn't included here.

See jlowin/fastmcp#62 for the initial bug report.

@dsp-ant
Copy link
Member

dsp-ant commented Jan 13, 2025

Hey @sd2k . This is awesome. Can we rebase this on top of v1.2.x branch so that i can be a fix?

This is a port of jlowin/fastmcp#63 to this repo
- I guess the transition was made before this PR was merged into
fastmcp, so it wasn't included here.

See jlowin/fastmcp#62 for the initial bug
report.
@sd2k sd2k force-pushed the handle-string-args-containing-numbers branch from 194b687 to 5abe811 Compare January 13, 2025 11:47
@sd2k sd2k changed the base branch from main to v1.2.x January 13, 2025 11:47
@sd2k
Copy link
Author

sd2k commented Jan 13, 2025

@dsp-ant sure thing, I've changed the base to v1.2.x 👍

@sd2k
Copy link
Author

sd2k commented Jan 20, 2025

Hey @dsp-ant, sorry to bug but I think this is good to go and it's causing an issue in the Grafana MCP server where we have an integer param. Any chance we could merge this week? 🙏 thanks!

@dsp-ant dsp-ant self-requested a review January 20, 2025 18:19
@dsp-ant dsp-ant merged commit e391f4b into modelcontextprotocol:v1.2.x Jan 20, 2025
3 checks passed
@dsp-ant
Copy link
Member

dsp-ant commented Jan 20, 2025

Sorry for the delay and thank you for the fix.

sd2k added a commit to grafana/mcp-grafana that referenced this pull request Jan 27, 2025
Contains a [bugfix] for tools with integer parameters.

[bugfix]: modelcontextprotocol/python-sdk#142
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.

2 participants