David Soria Parra
ae73191b3e
fix: Change --env-var short flag from -e to -v to avoid conflict with --with-editable
2025-01-02 16:57:53 +00:00
David Soria Parra
bd5170e19e
Merge pull request #120 from SecretiveShell/fix-encoding-errors
...
add text encoding params to STDIO client
2025-01-02 14:59:36 +00:00
David Soria Parra
21ac4043d5
Merge pull request #118 from samefarrar/mcp-instead-of-fastmcp-install
...
Use mcp instead of fastmcp CLI as command in "mcp install"
2025-01-02 09:43:03 +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
Allen Porter
247aec9332
Update paths in examples
2024-12-30 10:09:42 -08:00
Allen Porter
1134421a3a
Fix inconsistencies in examples
2024-12-30 10:08:57 -08:00
Allen Porter
0970ef4ae0
Fix SSE server bug with uncaught TypeError
2024-12-30 10:04:19 -08: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
samefarrar
e65404aa05
fix: Install still runs the fastmcp command, which is now unecessary (/not installed). We can just run it with mcp.
2024-12-29 15:01:25 +00:00
samefarrar
6194d06f6c
test: Add test that uv command inserted into config can run "with --help"
2024-12-29 14:57:34 +00:00
Edoardo Cilia
eba1ad2772
Merge branch 'main' into feature/simple-chatbot-example
2024-12-23 22:59:36 +00:00
David Soria Parra
552f797ac3
build: bump version to v1.2.0rc1
2024-12-23 16:43:32 +00:00
David Soria Parra
59fff69c38
Merge pull request #106 from modelcontextprotocol/davidsp/fastmcp
...
feat: Integrate FastMCP
2024-12-23 16:00:53 +00:00
David Soria Parra
2c8ea49b6f
Merge branch 'v1.1.x'
2024-12-21 23:17: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
44e1abb7f1
fix tests
2024-12-21 01:17:59 +00:00
David Soria Parra
680afeeed6
fix pydantic version
2024-12-21 01:04:30 +00:00
David Soria Parra
5d9b544ce7
add uvicorn dependency
2024-12-21 00:54:59 +00:00
David Soria Parra
9d58fed2fd
add precommits
2024-12-21 00:49:02 +00:00
David Soria Parra
d2c3e21173
upgrade to pydantic 2.10.0 to fix type issues
2024-12-21 00:47:50 +00:00
David Soria Parra
0b09fa5944
fix type issues
2024-12-21 00:46:37 +00:00
David Soria Parra
561397c409
remove comment
2024-12-21 00:46:37 +00:00
David Soria Parra
a79f51f55f
style: Fix imports and line length formatting
2024-12-21 00:46:36 +00:00
David Soria Parra
7bbf71e29a
docs: Add back advanced usage sections to README
...
Add back sections on low-level server implementation, client usage, MCP primitives and server capabilities that were previously removed.
2024-12-21 00:46:36 +00:00
David Soria Parra
ca3121282e
docs: Update README to specify [cli] dependency for mcp CLI
2024-12-21 00:46:36 +00:00
David Soria Parra
45cea71d90
docs: Update README with FastMCP-style structure and examples
2024-12-21 00:46:36 +00:00
David Soria Parra
f2128a7977
docs: Update README with new structure and content
2024-12-21 00:46:35 +00:00
David Soria Parra
bed35f3737
Update example servers to use mcp.server.lowlevel
2024-12-21 00:41:59 +00:00
David Soria Parra
b90da481eb
docs: Update README to recommend mcp.server.lowlevel and deprecate mcp.server
2024-12-21 00:41:59 +00:00
David Soria Parra
aa3b550ec6
docs: Update FastMCP import paths and dependencies
2024-12-21 00:41:59 +00:00
David Soria Parra
dad01945c7
docs: Update README.md to include FastMCP
...
Update the README.md to include FastMCP as the recommended way to build MCP servers. FastMCP is a high-level, Pythonic interface that makes it easy to build MCP servers with minimal boilerplate. The low-level implementation is still available for more control.
🤖 Generated with Claude CLI.
Co-Authored-By: Claude <noreply@anthropic.com >
2024-12-21 00:41:59 +00:00
David Soria Parra
87cee0ff33
feat: Add CLI package
2024-12-21 00:41:58 +00:00
David Soria Parra
15cd7df87f
refactor: Update FastMCP examples to use new import path
...
Update all FastMCP examples to use mcp.server.fastmcp instead of fastmcp.
Add tests to verify example servers work correctly.
Changes:
- Update import paths in all example files
- Create test_examples.py to verify functionality
- Fix test assertions to match actual response format
2024-12-21 00:41:39 +00:00
David Soria Parra
fe75f43ee6
fix: Update test to match Pydantic's JSON schema output for model references with defaults
...
Pydantic now uses allOf to combine model references with default values in JSON schema output.
2024-12-21 00:41:39 +00:00
David Soria Parra
557e90d2e7
Integrate FastMCP
...
This commit integrates FastMCP, a high-level MCP server implementation originally written by Jeremiah Lowin,
into the official MCP SDK. It also updates dependencies and adds new dev dependencies.
It moves the existing SDK into a .lowlevel .
2024-12-21 00:41:38 +00:00
3choff
80a39f2349
Merge branch 'feature/simple-chatbot-example' of https://github.com/3choff/python-sdk into feature/simple-chatbot-example
2024-12-18 16:35:54 +00:00
3choff
466e1e8eb7
refactor: modernize type hints and improve async context handling
...
- Update type hints to use Python 3.10 syntax (dict, list, X | None)
- Replace requests with httpx for HTTP client consistency
- Improve async context management using AsyncExitStack
- Simplify server cleanup method
2024-12-18 16:35:49 +00:00
Edoardo Cilia
07db4a3dd1
Merge branch 'main' into feature/simple-chatbot-example
2024-12-18 16:32:52 +00:00
David Soria Parra
edb37c8dc0
Fix deprecation warning
2024-12-12 23:18:52 +00:00
David Soria Parra
e98291e001
Merge branch 'v1.1.x'
2024-12-12 17:04:08 +00:00
David Soria Parra
dd1a069508
Add checks to release branch
2024-12-12 17:01:07 +00:00
David Soria Parra
1d4a0d3589
ruff format
2024-12-12 17:01:00 +00:00