Connecting to the MCP Server
Remote Access (SSE Transport)
When enabled (MCP_ENABLED=true), the node starts the MCP server with SSE transport, making it accessible remotely:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
When enabled, the node starts the MCP server with SSE transport, making it accessible remotely:
MCP_ENABLED=true), the node starts the MCP server with SSE transport, making it accessible remotely:
// Connect to your running Demos Network node's MCP server
const serverUrl = "http://localhost:3001" // Use your node's MCP port
// For SSE (remote) connections:
// SSE endpoint: http://localhost:3001/sse
// Message endpoint: POST http://localhost:3001/message
import { createDemosMCPServer, createDemosNetworkTools } from "@/features/mcp"
// Create a separate stdio server for development
const devServer = createDemosMCPServer({
transport: "stdio" // For local development tools
})
const tools = createDemosNetworkTools()
tools.forEach(tool => devServer.registerTool(tool))
await devServer.start()