Commit graph python-sdk/src/mcp/client
Author SHA1 Message Date
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
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
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
Marcelo Trylesinski
9301924f44
chore: bump ruff (#1085) 2025-07-04 09:01:17 +01: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
bhosmer-ant
43bb24f62b
feat: Add structured output support for tool functions (#993) 2025-06-26 09:36:17 +01: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
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
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
Marcelo Trylesinski
543961968c
Use 120 characters instead of 88 (#856) 2025-06-11 11:45:50 +02:00
Marcelo Trylesinski
b0b44c2fe4
Use total_seconds instead of seconds on timeout (#896) 2025-06-07 13:11:00 -07:00
Lorenzo
7f94bef85e
Client sampling and roots capabilities set to None if not implemented (#802)
Co-authored-by: ihrpr <inna@anthropic.com>
2025-05-29 09:56:34 +01:00
Tim Child
f5dd324354
Prevent stdio connection hang for missing server path. (#401)
Co-authored-by: ihrpr <inna@anthropic.com>
2025-05-28 22:57:46 +01:00
Nick Cooper
532b1176f9
RFC: Lower log levels used for connections (#821) 2025-05-27 23:11:08 +01:00
ihrpr
9dad26620f
Fix auth tests and ruff format (#818) 2025-05-27 17:00:01 +01:00
Nick Cooper
10cf0f78a8
Support custom httpx client creation (#752) 2025-05-23 13:55:01 +01:00
Mo
0e2a34189c
Fix ClientSessionGroup cleanup logic (#787) 2025-05-23 08:57:46 +01:00
Nate Barbettini
e80c0150e1
fix: Pass cursor parameter to server (#745)
Some checks failed
Main branch checks / checks (push) Has been cancelled
2025-05-21 22:27:06 +01:00
ihrpr
43ded92633
add auth client sse (#760) 2025-05-20 15:21:14 +01: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
5d33861cad
Add progress notification callback for client (#721) 2025-05-15 17:45:58 +01:00
Jerome
a00b20a427
feat: add cursor pagination support to all client list methods (#718) 2025-05-15 09:04:04 +01:00
Akshey D
9e66f7ce89
feat: add message to ProgressNotification (#435)
Co-authored-by: ihrpr <inna.hrpr@gmail.com>
2025-05-13 18:40:15 +01:00
Lion Yang
c5782129bc
Fix hanging on streams when stdio_client exiting (#559) 2025-05-13 18:36:33 +01:00
Mo
7b6a903eb9
Create ClientSessionGroup for managing multiple session connections. (#639) 2025-05-13 09:58:24 +01:00
Nate Barbettini
f745d69dcb
fix: 204 is an acceptable response to DELETEing the session (#697) 2025-05-12 21:22:55 +01:00
ihrpr
c6fb822c86
Fix streamable http sampling (#693)
Some checks failed
Main branch checks / checks (push) Has been cancelled
2025-05-12 18:31:35 +01:00
ihrpr
ed25167fa5
Introduce a function to create a standard AsyncClient with options (#655)
Some checks failed
Main branch checks / checks (push) Has been cancelled
2025-05-08 20:53:21 +01:00
ihrpr
9d99aee014
Revert "Add message queue for SSE messages POST endpoint (#459)" (#649) 2025-05-07 16:35:20 +01:00
Akash D
3b1b213a96
Add message queue for SSE messages POST endpoint (#459) 2025-05-06 17:10:43 -07:00
ihrpr
74f5fcfa0d
StreamableHttp - client refactoring and resumability support (#595) 2025-05-02 14:49:50 +01:00
ihrpr
da0cf22355
Wrap JSONRPC messages with SessionMessage for metadata support (#590) 2025-05-02 14:29:00 +01:00
ihrpr
9dfc925090
StreamableHttp client transport (#573) 2025-05-02 13:59:02 +01:00
Guillaume Raille
96e5327110
add a timeout arguments on per-request basis (as per MCP specifications) (#601) 2025-04-29 13:58:48 +01:00
Jerome
c4beb3e8ef
Support custom client info throughout client APIs (#474)
Co-authored-by: Claude <noreply@anthropic.com>
2025-04-10 14:52:01 +01:00
Sarmad Qadri
e5ee279614
Fixes to stdio_client to support Windows more robustly (#372) 2025-03-27 09:14:56 +00:00
David Soria Parra
568cbd1a66
Fix #201: Move incoming message stream from BaseSession to ServerSession (#325)
Co-authored-by: Claude <noreply@anthropic.com>
2025-03-24 14:14:14 +00:00
Alex
9ae4df85fb
Use default environment even when env is provided(#327)
Some checks failed
Main branch checks / checks (push) Has been cancelled
2025-03-21 11:43:08 +00:00
Tom Sheffler
c3fd34a1a6
Enhancement: make stderr of server subprocess configurable (#191)
* make stderr of server subprocess configurable

* Update stdio.py

---------

Co-authored-by: David Soria Parra <167242713+dsp-ant@users.noreply.github.com>
2025-03-20 16:28:57 +00:00