mcp: add docs for tier 1 assessment (#1195)
Closes open points in [comment](https://github.com/modelcontextprotocol/modelcontextprotocol/issues/3220#issuecomment-5373089321)
This commit is contained in:
parent
6f0a645c20
commit
b8c53fedd6
1 changed files with 1461 additions and 5 deletions
|
|
@ -27,6 +27,8 @@ func Add(ctx context.Context, req *mcp.CallToolRequest, args AddParams) (*mcp.Ca
|
|||
}, nil, nil
|
||||
}
|
||||
|
||||
// !+ssehandler
|
||||
|
||||
func ExampleSSEHandler() {
|
||||
server := mcp.NewServer(&mcp.Implementation{Name: "adder", Version: "v0.0.1"}, nil)
|
||||
mcp.AddTool(server, &mcp.Tool{Name: "add", Description: "add two numbers"}, Add)
|
||||
|
|
@ -55,3 +57,5 @@ func ExampleSSEHandler() {
|
|||
|
||||
// Output: 3
|
||||
}
|
||||
|
||||
// !-ssehandler
|
||||
|
|
|
|||
Loading…
Reference in a new issue