170 Commits

Author SHA1 Message Date
David Soria Parra bd5170e19e Merge pull request #120 from SecretiveShell/fix-encoding-errors
Main branch checks / checks (push) Failing after 1s
add text encoding params to STDIO client
2025-01-02 14:59:36 +00:00
Allen Porter b89cabc7df fix: Add constructor for McpError to allow setting field
Backport of #116 by @allenporter to v1.1.x branch.

Fixes an issue where exception handling code fails with AttributeError
when accessing the error field of McpError.
2025-01-02 09:32:43 +00:00
David Soria Parra 312e9da2dc Merge pull request #90 from restlessronin/issue-87
feat: add version string parameter to 'create_initialization_options'
2025-01-02 09:15:26 +00:00
restlessronin 3de4dc1f13 feat: add version string parameter to Server constructor 2025-01-02 09:11:07 +00:00
restlessronin 34a257147b chore: revert doc changes 2025-01-02 09:11:07 +00:00
restlessronin 6f108f7f7c doc: added comment to README example 2025-01-02 09:11:07 +00:00
restlessronin 937c640f04 feat: add version string parameter to 'create_initialization_options' 2025-01-02 09:11:07 +00:00
TerminalMan 99727a97ae ruff format 2024-12-29 17:09:18 +00:00
TerminalMan 4f36581a5c add text encoding params to STDIO client 2024-12-29 16:41:30 +00:00
David Soria Parra e691c511ab Merge pull request #108 from modelcontextprotocol/davidsp/fix-103
Fix Bug: request_meta is not available in server.request_context #103
2024-12-21 23:17:03 +00:00
David Soria Parra 52e69efa6f Fix deprecation warning 2024-12-21 23:16:25 +00:00
David Soria Parra 37f6a3229c fix: use pydantic Field with alias for _meta fields
Pydantic treats fields starting with underscore as private/hidden. To fix this,
we need to use Field with alias='_meta' to properly handle these fields while
keeping the external API unchanged. This fixes #103 where meta fields were not
being properly assigned in request contexts.
2024-12-21 23:16:24 +00:00
David Soria Parra dd1a069508 Add checks to release branch v1.1.2 2024-12-12 17:01:07 +00:00
David Soria Parra 1d4a0d3589 ruff format 2024-12-12 17:01:00 +00:00
David Soria Parra ef9b4cf6a2 Remove click dependency in client 2024-12-12 16:41:30 +00:00
David Soria Parra ce25842d35 1.1.2 2024-12-12 15:44:17 +00:00
David Soria Parra 8425c9ce9b Downgrade sse-starlette 2024-12-12 15:44:00 +00:00
David Soria Parra 34f380c905 v1.1.1 v1.1.1 2024-12-09 14:23:29 +00:00
David Soria Parra 28ed9cba5a Change lower bounds and update locks 2024-12-09 14:23:08 +00:00
David Soria Parra ed03a426c7 Use uv --resolution lowest-direct
We need to ensure that we always test against the lowest bounds.
Libraries should set resolution to `lowest-direct`.
2024-12-09 14:22:59 +00:00
David Soria Parra e4e4954b66 v1.1.0 v1.1.0 2024-12-03 22:16:52 +00:00
David Soria Parra c40009524c Merge pull request #82 from miguelg719/80
Updated example in README.md for increased outreach
2024-12-02 11:39:31 +00:00
Miguel 840ea48371 Updated example in README.md for increased outreach 2024-11-30 01:11:29 -08:00
David Soria Parra 131902f09f Merge pull request #77 from modelcontextprotocol/davidsp/68
Add handler for resource templates
2024-11-28 11:08:59 +00:00
David Soria Parra 08075ba5e4 Update issue templates 2024-11-28 10:43:12 +00:00
David Soria Parra 587dbb739d Add handler for resource templates
We missed to have a handler for resource templates. We add this
now. One caveat is still that the `uriTemplate` in `ResourceTemplate`
is not a pydantic type.
2024-11-27 23:01:11 +00:00
David Soria Parra ab2f502f4a Merge pull request #70 from modelcontextprotocol/jspahrsummers-patch-1
Fix experimental capabilities example
2024-11-26 15:08:50 +00:00
Justin Spahr-Summers c6d3bdce0f Fix experimental capabilities example
See discussion in https://github.com/modelcontextprotocol/specification/pull/65.
2024-11-26 08:28:03 -06:00
David Soria Parra e41482821c Merge pull request #66 from simonw/patch-1
Fix first Python demo so it works without further modifications
2024-11-25 20:10:14 +00:00
Simon Willison 569acf077d Fix first Python demo so it works
You can't do async with ... outside of an async def function
2024-11-25 08:44:19 -08:00
David Soria Parra 6063b09d04 bump 2024-11-25 14:23:53 +00:00
David Soria Parra 91b255f83f v1.0.0 v1.0.0 2024-11-25 14:17:46 +00:00
David Soria Parra 873f6bf03e Merge pull request #62 from modelcontextprotocol/davidsp/error-fixes
Handle MCPErrors separately
2024-11-25 14:15:06 +00:00
David Soria Parra 5dfce75e8a Merge pull request #65 from modelcontextprotocol/davidsp/modules
Add a simple module documentation to help LLMs with the pattern
2024-11-25 14:14:21 +00:00
David Soria Parra 33f0e590c8 Add a simple module documentation to help LLMs with the pattern
LLMs have issue infering the actual usage pattern from the code
itself. We add a simple module documentation to help with that.
2024-11-25 13:56:38 +00:00
David Soria Parra 54952ca46a Merge pull request #64 from modelcontextprotocol/davidsp/readme
davidsp/readme
2024-11-25 13:19:49 +00:00
David Soria Parra 9bdb8a2401 Update supported language
Since we are pulling the list of Python versions in the README
badge from PyPi we need to ensure we correctly reflect all supported
versions.
2024-11-25 13:06:53 +00:00
David Soria Parra 48bf1336a3 Update README 2024-11-25 13:06:53 +00:00
Justin Spahr-Summers 42a5f6fa04 Merge pull request #63 from modelcontextprotocol/justin/fix-link
Fix README links to docs/spec
2024-11-24 14:28:50 -06:00
Justin Spahr-Summers a0b648605a Fix README links to docs/spec 2024-11-24 14:27:58 -06:00
David Soria Parra f7e47f39c2 Correct comment 2024-11-22 22:54:35 +00:00
David Soria Parra afe1c0913a When any handler raises an McpError, we pass it as a response 2024-11-22 22:54:35 +00:00
David Soria Parra b36bde3d85 ruff fix 2024-11-22 10:47:58 +00:00
David Soria Parra bbd9d05851 Fix example servers SSE invocation
Reported-by: Simon Willison
2024-11-22 10:45:24 +00:00
Justin Spahr-Summers 6c46bd283a Merge pull request #57 from modelcontextprotocol/justin/delete-devcontainer
Remove devcontainer config
2024-11-20 21:56:47 +00:00
David Soria Parra 569f45bc51 Merge pull request #61 from modelcontextprotocol/davidsp/urls
Add URLs
2024-11-20 19:04:04 +00:00
David Soria Parra 22c4b0ff80 Add URLs 2024-11-20 16:12:21 +00:00
Justin Spahr-Summers a51dba78c2 Merge pull request #60 from modelcontextprotocol/jspahrsummers-patch-1
Suggest forking in CONTRIBUTING.md
2024-11-20 15:44:57 +00:00
Justin Spahr-Summers 2e42848cd0 Suggest forking in CONTRIBUTING.md 2024-11-20 15:44:08 +00:00
Justin Spahr-Summers 904c521d79 Merge pull request #59 from modelcontextprotocol/justin/contributing
Add CONTRIBUTING.md
2024-11-20 15:35:09 +00:00