all: minor cleanup (#545)
Also fix a flaky test case in TestStreamableServerTransport.
This commit is contained in:
parent
fd0dc9d741
commit
6dbf6c6450
1 changed files with 15 additions and 7 deletions
|
|
@ -112,7 +112,7 @@ func Example_elicitation() {
|
|||
}
|
||||
defer ss.Close()
|
||||
|
||||
c := mcp.NewClient(testImpl, &mcp.ClientOptions{
|
||||
c := mcp.NewClient(&mcp.Implementation{Name: "client", Version: "v0.0.1"}, &mcp.ClientOptions{
|
||||
ElicitationHandler: func(context.Context, *mcp.ElicitRequest) (*mcp.ElicitResult, error) {
|
||||
return &mcp.ElicitResult{Action: "accept", Content: map[string]any{"test": "value"}}, nil
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue