Model Context Protocol server so agents (Claude Code, Cursor, any MCP client) can list/query subgraphs, configure subscriptions, and invoke chain tools without you wiring REST calls by hand.


Run it

bunx @secondlayer/mcp                     # stdio transport (default)
bunx @secondlayer/mcp --http              # HTTP transport on :3900

Configure

// claude_desktop_config.json
{
  "mcpServers": {
    "secondlayer": {
      "command": "bunx",
      "args": ["@secondlayer/mcp"],
      "env": { "SL_API_KEY": "sk-sl_..." }
    }
  }
}