yuna0x0
52dc7f1160
Fix isZodRawShape return false on empty object and add test
2025-05-06 01:49:33 +08:00
Basil Hosmer
e53608ea19
rebase and address comments
2025-04-22 16:37:16 -04:00
Basil Hosmer
0096be432f
Add ToolAnnotations support to McpServer.tool() method
2025-04-22 15:24:32 -04:00
Luca Forstner
ec23b71f4e
Pass requestId to handlers via metadata
2025-04-17 11:41:11 +02:00
Glen Maddern
9f9c244857
Added mutation methods to RegisteredTool/Resource/ResourceTemplate/Prompt
...
This allows these objects to be enabled/disabled, or updated on the fly. Corresponding listChanged notifications are automatically emitted.
2025-04-09 15:55:49 +10:00
ihrpr
af64a0e18c
remove custom headers
2025-04-07 16:03:31 +01:00
ihrpr
251bb9d97d
Merge branch 'main' into ihrpr/http-streamable-server
2025-04-07 14:29:09 +01:00
Justin Spahr-Summers
8027ae1593
Revert "feat: support extending McpServer with authorization"
2025-04-07 10:47:37 +01:00
ihrpr
873f51f4ac
Merge branch 'main' into ihrpr/http-streamable-server
2025-04-06 17:39:40 +01:00
ihrpr
b0697195a7
add test to cover nested logging withing a tool call
2025-04-06 16:09:15 +01:00
ihrpr
bafd9e74f3
Add ways to associate related requests and notifications
2025-04-05 19:52:29 +01:00
wangshijun
473dc6cad5
chore: add test case for McpServer with auth
2025-04-05 11:33:40 +08:00
Jason Victor
c396b4af1d
added test for session id using in memory transport
2025-02-25 17:57:45 -05:00
Justin Spahr-Summers
eba6461567
Failing test case for double completion handlers
2025-01-22 11:41:05 +00:00
Justin Spahr-Summers
2590d40e74
Fix registering multiple tools/resources/prompts
...
Request handlers were being re-registered every time a new tool/resource/prompt was added, which would fail since the handlers were already registered. Now we track whether handlers have been initialized and only register them once.
Added tests to verify that multiple registrations work correctly.
Resolves #124 .
2025-01-21 09:14:14 +00:00
Justin Spahr-Summers
2289dbc0d0
Factor out convenience APIs into another class
2025-01-08 21:59:38 +00:00