Update README and example with server version
This commit is contained in:
parent
ea4828987c
commit
7b390053bd
2 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ module ModelContextProtocol
|
||||||
def index
|
def index
|
||||||
server = ModelContextProtocol::Server.new(
|
server = ModelContextProtocol::Server.new(
|
||||||
name: "my_server",
|
name: "my_server",
|
||||||
|
version: "1.0.0",
|
||||||
tools: [SomeTool, AnotherTool],
|
tools: [SomeTool, AnotherTool],
|
||||||
prompts: [MyPrompt],
|
prompts: [MyPrompt],
|
||||||
server_context: { user_id: current_user.id },
|
server_context: { user_id: current_user.id },
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ end
|
||||||
# Set up the server
|
# Set up the server
|
||||||
server = MCP::Server.new(
|
server = MCP::Server.new(
|
||||||
name: "example_server",
|
name: "example_server",
|
||||||
|
version: "1.0.0",
|
||||||
tools: [ExampleTool],
|
tools: [ExampleTool],
|
||||||
prompts: [ExamplePrompt],
|
prompts: [ExamplePrompt],
|
||||||
resources: [
|
resources: [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue