mcp: NewClient and NewServer take Implementation (#113)
Change the name and version arguments to NewClient and NewServer to a `*Implementation`, to future-proof against the spec. Fixes #109.
This commit is contained in:
parent
b4febf129b
commit
6c6243c0b0
1 changed files with 76 additions and 69 deletions
|
|
@ -91,7 +91,7 @@ func main() {
|
|||
kb := knowledgeBase{s: kbStore}
|
||||
|
||||
// Setup MCP server with knowledge base tools
|
||||
server := mcp.NewServer("memory", "v0.0.1", nil)
|
||||
server := mcp.NewServer(&mcp.Implementation{Name: "memory"}, nil)
|
||||
mcp.AddTool(server, &mcp.Tool{
|
||||
Name: "create_entities",
|
||||
Description: "Create multiple new entities in the knowledge graph",
|
||||
|
|
|
|||
Loading…
Reference in a new issue