Update README and example with server version

This commit is contained in:
Kevin Fischer 2025-05-13 23:58:38 +09:00
commit 7b390053bd
No known key found for this signature in database
GPG key ID: 8E4CB46A9AC8D1C1
2 changed files with 2 additions and 0 deletions

View file

@ -50,6 +50,7 @@ module ModelContextProtocol
def index
server = ModelContextProtocol::Server.new(
name: "my_server",
version: "1.0.0",
tools: [SomeTool, AnotherTool],
prompts: [MyPrompt],
server_context: { user_id: current_user.id },

View file

@ -54,6 +54,7 @@ end
# Set up the server
server = MCP::Server.new(
name: "example_server",
version: "1.0.0",
tools: [ExampleTool],
prompts: [ExamplePrompt],
resources: [