Commit graph python-sdk/src/mcp
Author SHA1 Message Date
bhosmer-ant
49991fd2c7
Fix BaseModel method name conflicts in func_metadata (#1123) 2025-07-14 08:29:52 +01:00
yurikunash
fd11eca766
Update routing for streamable HTTP to avoid 307 redirect (#1115)
Co-authored-by: ihrpr <inna@anthropic.com>
2025-07-11 11:49:24 +01:00
Giuseppe Coviello
0a4e8d4e17
Avoiding to parse string arguments containing valid JSON if the argument annotation is str (#1113) 2025-07-10 17:36:45 -04:00
Jeremiah Lowin
81fe63a81d
Ensure failed oauth registration response is read before accessing response.text (#1118)
Co-authored-by: ihrpr <inna@anthropic.com>
2025-07-10 22:01:17 +01:00
Megan Dsouza
f55831ee79
Adding description field to the FastMCP get_prompt method (#614)
Co-authored-by: ihrpr <inna@anthropic.com>
2025-07-09 20:50:38 +01:00
Brian Soby
7b1078b515
Fix: Prevent session manager shutdown on individual session crash (#841)
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
Co-authored-by: Inna Harper <inna.hrpr@gmail.com>
2025-07-09 15:43:21 +01:00
Felix Weinberger
3abefeeeaf
fweinberger/align shutdown with spec (#1091)
Co-authored-by: davenpi <davenport.ianc@gmail.com>
2025-07-09 10:14:30 -04:00
Inna Harper
4fee123e72
clean up log.error (#1109) 2025-07-09 11:15:14 +01:00
AishwaryaKalloli
bd84329a08
Doc update + validation in SseServerTransport + existing test fixes: addresses Issue: #827 (#900) 2025-07-09 08:19:06 +01:00
Inna Harper
beacd6e009
remove max message size (#1105) 2025-07-08 15:56:18 +01:00
Felix Weinberger
e0336213e8
Improve child process termination on POSIX & Windows (#1078)
Co-authored-by: jingx8885 <jingxu8885@qq.com>
Co-authored-by: Surya Prakash Susarla <susarla.surya.prakash.1998@gmail.com>
2025-07-08 15:04:06 +01:00
Felix Weinberger
cf72565d9a
Unify process termination on POSIX & Windows (+ tests) (#1044)
Co-authored-by: Cristian Pufu <cristian.pufu@uipath.com>
2025-07-08 14:57:39 +01:00
Seongjun Kim
5c9cf290d8
Fix Pydantic field alias consistency in structured output (#1099) 2025-07-07 15:16:23 +01:00
Frédéric Barthelet
906ceea388
fix: Expose completions capability (#865) 2025-07-07 09:26:22 +01:00
Inna Harper
3d67e723e5
Fix async resource functions not being awaited (#1092)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2025-07-06 10:22:52 +01:00
Ke Yu
7bc190bae8
fix: support "form_post" to be one of response modes in authorization server metadata validation (#1046) 2025-07-04 11:13:13 +01:00
Marcelo Trylesinski
9301924f44
chore: bump ruff (#1085) 2025-07-04 09:01:17 +01:00
Mohamed Amine Zghal
7942184336
Bump Pydantic in the lockfile (#1041) 2025-06-27 17:41:17 +02:00
Nathan Brake
3f0964dd14
Remove setting global logging config (#1048)
Some checks failed
Main branch checks / checks (push) Has been cancelled
2025-06-27 12:48:45 +02:00
Inna Harper
4b659639f7
Update latest protocol version to 2025-06-18 (#1036) 2025-06-26 10:02:57 +01: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
dr3s
41f3bc35ce
Make "resource" optional on earlier protocols (#1017)
Co-authored-by: Andres March <>
2025-06-25 10:18:24 +01:00
Felix Weinberger
4d45bb85a8
refactor: rename DummyProcess to FallbackProcess in Windows stdio (#1015) 2025-06-24 15:44:42 +01:00
Inna Harper
674768802a
Fix /.well-known/oauth-authorization-server dropping path (#1014) 2025-06-24 15:43:26 +01:00
The AI Language
ecc916516d
Fix Windows subprocess NotImplementedError (STDIO clients) (#596)
Merging, rename for `DummyProcess` -> `FallbackProcess` coming in https://github.com/modelcontextprotocol/python-sdk/pull/1015
2025-06-24 15:05:23 +01:00
Inna Harper
679b22970e
RFC 8707 Resource Indicators Implementation (#991) 2025-06-23 17:10:20 +01: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
Inna Harper
d0443a1832
Add resource Link (#974) 2025-06-17 20:23:07 +01:00
David Dworken
86bb54cb28
Add support for DNS rebinding protections (#861) 2025-06-17 20:13:00 +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
5429ac6153
Update _meta usage guidance in types (#971) 2025-06-17 11:54:59 +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
David Dworken
7b420656de
Fix uncaught exception in MCP server (#967) 2025-06-16 17:04:51 -07:00
Felix Weinberger
1eb1bba83c
feat: add _meta to more objects (#963) 2025-06-16 16:43:54 +01:00
ihrpr
f3cd20c920
Rename ResourceReference to ResourceTemplateReference (#947) 2025-06-13 18:25:36 +01:00
Felix Weinberger
df15e9566d
feat: implement MCP-Protocol-Version header requirement for HTTP transport (#898) 2025-06-12 18:01:53 +01:00
ihrpr
0bcecffc4c
set timeout for sse in httpx_client_factory (#943) 2025-06-12 09:09:13 +01:00
Marcelo Trylesinski
20dc0fbabb
Allow to pass timeout as float (#941)
Some checks failed
Main branch checks / checks (push) Has been cancelled
2025-06-12 09:31:31 +02:00
Luca Chang
d69b290b65
chore: create union for working with message content (#939) 2025-06-12 09:01:33 +02:00
Marcelo Trylesinski
543961968c
Use 120 characters instead of 88 (#856) 2025-06-11 11:45:50 +02:00
David Dworken
29c69e6a47
Fix uncaught exception in MCP server (#822) 2025-06-09 17:03:15 -07:00
dr3s
1a9ead07f5
relax validation (#879) 2025-06-09 19:21:01 +01:00
xiaoming wang
2cbc435c6c
normalize string ID to int in server messages for compatibility (#851)
Co-authored-by: 晓明 王 <wxm@v1i.cc>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2025-06-08 07:15:21 +00:00
Marcelo Trylesinski
b0b44c2fe4
Use total_seconds instead of seconds on timeout (#896) 2025-06-07 13:11:00 -07:00
Luca Chang
7123556a34
feat: support audio content (#725)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2025-06-07 14:32:11 +00:00
Sam Tombury
2bce10bdb1
Support Cursor OAuth client registration (#895) 2025-06-07 07:24:11 -07:00
Peng Li
8276632caa
fix wrong order of comments (#899)
Signed-off-by: vincent-pli <justdoit.pli@gmail.com>
2025-06-07 07:18:26 -07:00
Samuel Colvin
544176770b
improve server logging (#867)
Some checks failed
Main branch checks / checks (push) Has been cancelled
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2025-06-02 08:03:18 +00:00