diff --git a/README.md b/README.md index b247654..d9f7076 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,9 @@ function MyAIComponent() { tools, // Available tools from MCP server resources, // Available resources from MCP server prompts, // Available prompts from MCP server + serverInfo, // Server name and version from initialize response + serverCapabilities, // Server capabilities from initialize response + protocolVersion,// Negotiated MCP protocol version error, // Error message if connection failed callTool, // Function to call tools on the MCP server readResource, // Function to read resource contents @@ -108,6 +111,10 @@ function MyAIComponent() { return (
+ {/* Show server information */} + {serverInfo && ( +

Connected to: {serverInfo.name} v{serverInfo.version}

+ )}

Available Tools: {tools.length}