mcp: statically type the server-side tool params (#378)
Introduce CallToolParamsRaw on the server side, so that tool handlers see in the type system that a tool's arguments are a json.RawMessage. Fixes #377.
This commit is contained in:
parent
8f11a86898
commit
7bfde44981
1 changed files with 17 additions and 22 deletions
|
|
@ -7,7 +7,7 @@
|
|||
package mcp
|
||||
|
||||
type (
|
||||
CallToolRequest = ServerRequest[*CallToolParams]
|
||||
CallToolRequest = ServerRequest[*CallToolParamsRaw]
|
||||
CompleteRequest = ServerRequest[*CompleteParams]
|
||||
GetPromptRequest = ServerRequest[*GetPromptParams]
|
||||
InitializedRequest = ServerRequest[*InitializedParams]
|
||||
|
|
|
|||
Loading…
Reference in a new issue