From 93d43eac992a6b890da3ed99d4e8617ca8fdfa9e Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 29 Dec 2025 22:03:23 -0500 Subject: [PATCH] docs: update README for SSE transport - Update running instructions to show SSE endpoints - Replace stdio-based MCP client config with URL-based SSE config - Add examples for local and remote deployment --- README.md | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b35e241..bcbc1c8 100644 --- a/README.md +++ b/README.md @@ -76,14 +76,23 @@ openssl rand -base64 32 ### Running the Server +The server uses SSE (Server-Sent Events) transport over HTTP: + ```bash # Set your agent token export GRIST_MCP_TOKEN="your-agent-token" -# Run with custom config path +# Run with custom config path (defaults to port 3000) CONFIG_PATH=./config.yaml uv run python -m grist_mcp.main + +# Or specify a custom port +PORT=8080 CONFIG_PATH=./config.yaml uv run python -m grist_mcp.main ``` +The server exposes two endpoints: +- `http://localhost:3000/sse` - SSE connection endpoint +- `http://localhost:3000/messages` - Message posting endpoint + ### MCP Client Configuration Add to your MCP client configuration (e.g., Claude Desktop): @@ -92,14 +101,19 @@ Add to your MCP client configuration (e.g., Claude Desktop): { "mcpServers": { "grist": { - "command": "uv", - "args": ["run", "python", "-m", "grist_mcp.main"], - "cwd": "/path/to/grist-mcp", - "env": { - "CONFIG_PATH": "/path/to/config.yaml", - "GRIST_MCP_TOKEN": "your-agent-token", - "GRIST_API_KEY": "your-grist-api-key" - } + "url": "http://localhost:3000/sse" + } + } +} +``` + +For remote deployments, use the server's public URL: + +```json +{ + "mcpServers": { + "grist": { + "url": "https://your-server.example.com/sse" } } }