mcp: advertise a capability if and only if added (#93)
If tools are added to a Server when Run is called, it will send toolCapabilities to the client. Otherwise it won't. Ditto for prompts and resources. For #56.
This commit is contained in:
parent
bfa5e30cd1
commit
b4febf129b
1 changed files with 118 additions and 16 deletions
|
|
@ -159,8 +159,6 @@ func TestStreamableServerTransport(t *testing.T) {
|
|||
Capabilities: &serverCapabilities{
|
||||
Completions: &completionCapabilities{},
|
||||
Logging: &loggingCapabilities{},
|
||||
Prompts: &promptCapabilities{ListChanged: true},
|
||||
Resources: &resourceCapabilities{ListChanged: true},
|
||||
Tools: &toolCapabilities{ListChanged: true},
|
||||
},
|
||||
ProtocolVersion: latestProtocolVersion,
|
||||
|
|
|
|||
Loading…
Reference in a new issue