Marcelo Trylesinski
c7671e470c
Add pyright strict mode on the whole project ( #1254 )
2025-08-11 18:56:37 +01:00
Omer Korner
d4759288d0
Improve README around the Context object ( #1203 )
2025-08-05 15:06:57 +01:00
Inna Harper
41184ba6c8
README - replace code snippets with examples -- auth examples ( #1164 )
2025-07-17 18:36:20 +01:00
Dagang Wei
dd792977dd
Docs: Update CallToolResult parsing in README ( #812 )
...
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com >
2025-07-17 12:48:19 +01:00
Inna Harper
e975d0550b
README - replace code snippets with examples - streamable http ( #1155 )
2025-07-16 21:45:40 +01:00
Inna Harper
0b4ce00be2
README - replace code snippets with examples - add lowlevel to snippets ( #1150 )
2025-07-16 15:26:16 +01:00
Inna Harper
6566c08446
fix markdown error in README in main ( #1147 )
2025-07-15 13:23:37 +01:00
Pamela Fox
0130f5b12b
Add streamable HTTP starlette example to Python SDK docs ( #1111 )
2025-07-15 11:39:59 +01:00
Inna Harper
a10fec7fa6
README - replace code snippets with examples - direct execution and display utilities ( #1137 )
2025-07-14 15:54:36 +01:00
Inna Harper
9bf5160eea
README - replace code snippets with examples ( #1136 )
2025-07-14 13:57:47 +01:00
John T
ee54acbfa3
The lifespan_context object here is not a dictionary like the other e… ( #1002 )
...
Main branch checks / checks (push) Failing after 1s
Co-authored-by: ihrpr <inna@anthropic.com >
2025-07-10 11:55:34 +01:00
Stanley Law
6d092af6fd
chore: add markdownlint on pre-commit hook and lint md files ( #996 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com >
2025-07-10 09:43:49 +01:00
shaun smith
08d364d005
Update text to make clear Elicitation is not directly associated with… ( #1062 )
2025-07-07 22:10:21 +01:00
Frédéric Barthelet
906ceea388
fix: Expose completions capability ( #865 )
2025-07-07 09:26:22 +01:00
Inna Harper
adf327164a
Embed code snippets for README from executable examples ( #1055 )
2025-07-04 17:25:54 +01:00
Vividh Mahajan
31076ab2d4
docs: fix dev server command in README ( #848 ) ( #859 )
2025-07-04 09:05:40 +00:00
bhosmer-ant
43bb24f62b
feat: Add structured output support for tool functions ( #993 )
2025-06-26 09:36:17 +01:00
bhosmer-ant
c8bbfc034d
Add schema validation to lowlevel server ( #1005 )
2025-06-25 09:23:49 -04:00
Inna Harper
17f9c00c53
MCP server separation into Authorization Server (AS) and Resource Server (RS) roles per spec PR #338 ( #982 )
...
Co-authored-by: Paul Carleton <paulc@anthropic.com >
2025-06-23 14:19:03 +01:00
Felix Weinberger
a2f8766a8a
Add title to tools, resources, prompts ( #972 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-06-17 15:53:14 +01:00
Inna Harper
69e6572d48
Add support for Elicitation ( #625 )
...
Co-authored-by: David Soria Parra <davidsp@anthropic.com >
2025-06-17 11:54:11 +01:00
Inna Harper
a3bcabdce2
Include context into completions ( #966 )
2025-06-17 09:33:25 +01:00
Alvaro Bartolome
d55cb2bf4e
Fix and update OAuthAuthorizationServerProvider snippet in README.md ( #830 )
2025-05-28 23:02:46 +01:00
Really Him
294fc6b4d3
[DOC] Fix example usage of get_context (plus a little more) ( #801 )
...
Co-authored-by: Really Him <hesereallyhim@proton.me >
2025-05-26 11:22:39 +02:00
ihrpr
e33cd41c7a
Add OAuth authentication client for HTTPX ( #751 )
...
Co-authored-by: Paul Carleton <paulc@anthropic.com >
2025-05-19 20:38:04 +01:00
ihrpr
c2f8730d6d
Fix example for multiple stateless servers ( #720 )
2025-05-15 09:57:12 +01:00
5enxia
0a388b642f
Add example for stateless server with JSON response ( #704 )
2025-05-15 09:24:13 +01:00
john0312
37b54b4c03
fix: Add checks and better error messages on server object for mcp run ( #297 )
2025-05-13 18:27:10 +01:00
Takayuki SHIMIZUKAWA
173e0ee3b8
fix typo: server has get_context attribute instead of request_context. ( #446 )
2025-05-13 12:12:26 +01:00
shaun smith
5289d0686a
Minor tweaks to README for Streamable HTTP ( #690 )
2025-05-12 21:24:16 +01:00
mopg
76919cfaa4
Fix typo in authentication section of README ( #676 )
2025-05-12 18:44:02 +01:00
ihrpr
72003d9cc0
StreamableHttp - update docs ( #664 )
2025-05-08 20:49:55 +01:00
ihrpr
9d99aee014
Revert "Add message queue for SSE messages POST endpoint ( #459 )" ( #649 )
2025-05-07 16:35:20 +01:00
Samad Yar Khan
c8a14c9dba
docs: fix broken link to OAuthServerProvider in Authentication section of README ( #651 )
2025-05-07 17:17:11 +02:00
tim-watcha
e0d443c95e
Add mount_path support for proper SSE endpoint routing with multiple FastMCP servers ( #540 )
...
Co-authored-by: ihrpr <inna.hrpr@gmail.com >
2025-05-07 11:14:25 +01:00
Akash D
3b1b213a96
Add message queue for SSE messages POST endpoint ( #459 )
2025-05-06 17:10:43 -07:00
Peter Raboud
2210c1be18
Add support for serverside oauth ( #255 )
...
Main branch checks / checks (push) Failing after 0s
Check uv.lock / check-lock (push) Has been cancelled
Co-authored-by: David Soria Parra <davidsp@anthropic.com >
Co-authored-by: Basil Hosmer <basil@anthropic.com >
Co-authored-by: ihrpr <inna@anthropic.com >
2025-05-01 19:42:59 +01:00
Nyakku Shigure
58b989c0a3
Fix lifespan_context access example in README ( #437 )
2025-04-09 09:58:17 +01:00
anupsajjan
c2ca8e03e0
Docs : Enhance README to suggest commands for creating a new UV project before adding mcp dependency. ( #408 )
2025-04-02 14:51:50 +01:00
YungYueh ChanLee
a81b25ae8d
Docs: Change README to correct pip installation command for MCP CLI support ( #394 )
2025-03-31 09:10:19 +02:00
Conor Branagan
d3bf9cd325
Fix typo in starlette import in README ( #374 )
2025-03-27 08:25:29 +01:00
Marcelo Trylesinski
ae77772ea8
Add strict mode to pyright ( #315 )
...
* Add strict mode to pyright
* Apply UP rule
* fix readme
* More correct
* Leave wrong Context for now
* Add strict mode to pyright
* Apply UP rule
* fix readme
* fix
* ignore
2025-03-20 09:13:08 +00:00
Niraj Fonseka
5a54d82459
fixing the imports for the prompts example ( #318 )
2025-03-19 14:42:45 +00:00
comfuture
a9aca20205
Option to mount SSE server to existing ASGI server ( #312 )
...
* Option to mount SSE server to existing ASGI server
Fixes #311
Add option to mount SSE server to an existing ASGI server.
* Add a new method `sse_app` in `src/mcp/server/fastmcp/server.py` to return an instance of the SSE server app.
* Update the `run_sse_async` method in `src/mcp/server/fastmcp/server.py` to use the new `sse_app` method.
* Update the documentation in `README.md` to include instructions on how to mount the SSE server to an existing ASGI server.
* Fix the example in `README.md` to use `app.mount('/', mcp.sse_app())` instead.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/modelcontextprotocol/python-sdk/issues/311?shareId=XXXX-XXXX-XXXX-XXXX ).
* Add `sse_app` method and update `run_sse_async` method in `server.py`
* Add `sse_app` method to return an instance of the SSE server app
* Update `run_sse_async` method to use the new `sse_app` method
Update `README.md` to include instructions for mounting SSE server
* Add section on mounting the SSE server to an existing ASGI server
* fix: Move import statements to the top of the file/
* docs: Update README to reflect changes in mounting SSE server with Starlette
* docs: Formatting of SSE server mounting example in README
2025-03-19 05:26:49 +01:00
Samuel Colvin
3775916c5c
lint docs examples ( #286 )
...
* lint docs examples
* format
2025-03-14 11:30:57 +00:00
john0312
ebb81d3b2b
Update README to clarify installing mcp to project vs running mcp ( #277 )
...
uv add is for adding dependency to uv managed python projects, and folks
not familiar with uv may mistaken the command for running mcp. Added
wordings that clarifies this.
2025-03-13 14:35:53 +00:00
Jerome
ff22f48365
Add client handling for sampling, list roots, ping ( #218 )
...
Adds sampling and list roots callbacks to the ClientSession, allowing the client to handle requests from the server.
Co-authored-by: TerminalMan <84923604+SecretiveShell@users.noreply.github.com >
Co-authored-by: David Soria Parra <davidsp@anthropic.com >
2025-02-20 10:49:43 +00:00
David Soria Parra
4d3e05f6f6
refactor: improve lifespan context typing and documentation
...
- Add proper generic parameter for lifespan context type
- Update README with TypedDict example for strong typing
- Fix context variable initialization in server
- Improve property return type safety
- Remove redundant documentation
- Ensure compatibility with existing tests
2025-02-13 10:12:59 +00:00
David Soria Parra
e5815bd162
docs: update README with lifespan examples and usage
...
Add comprehensive documentation for lifespan support:
- Add usage examples for both Server and FastMPC classes
- Document startup/shutdown patterns
- Show context access in tools and handlers
- Clean up spacing in test files
2025-02-11 12:16:51 +00:00
David Soria Parra
f90cf6a2a5
docs: update read_resource examples to handle mime type
...
Update README examples to show proper handling of the new read_resource() return value
that includes mime type information.
Github-Issue:#152
2025-01-27 15:51:45 +00:00