Skip to content

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

Merged
dsp-ant merged 2 commits into
modelcontextprotocol:v1.2.xfrom
sd2k:handle-string-args-containing-numbers
Jan 20, 2025
Merged

fix(fastmcp): handle strings containing numbers correctly#142
dsp-ant merged 2 commits into
modelcontextprotocol:v1.2.xfrom
sd2k:handle-string-args-containing-numbers

Conversation

@sd2k

@sd2k sd2k commented Jan 8, 2025

Copy link
Copy Markdown

This is a port of PrefectHQ/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 PrefectHQ/fastmcp#62 for the initial bug report.

@dsp-ant

dsp-ant commented Jan 13, 2025

Copy link
Copy Markdown
Member

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 PrefectHQ/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 PrefectHQ/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

sd2k commented Jan 13, 2025

Copy link
Copy Markdown
Author

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

@sd2k

sd2k commented Jan 20, 2025

Copy link
Copy Markdown
Author

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
@dsp-ant

dsp-ant commented Jan 20, 2025

Copy link
Copy Markdown
Member

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
PedroaHosing added a commit to PedroaHosing/mcp-grafana that referenced this pull request Dec 14, 2025
Contains a [bugfix] for tools with integer parameters.

[bugfix]: modelcontextprotocol/python-sdk#142
MarioalVilas added a commit to MarioalVilas/mcp-grafana that referenced this pull request Jan 1, 2026
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