Build an MCP client
Connect a non-Claude / non-Cursor tool to the iCog MCP server.
The MCP server at https://api.cognitivx.io/mcp follows the MCP 0.x spec.
Any client that speaks MCP-over-HTTP-SSE can connect with a bearer header.
import { MCPClient } from "@modelcontextprotocol/sdk/client";
const client = new MCPClient({
url: "https://api.cognitivx.io/mcp",
auth: { type: "bearer", token: process.env.COGNITIVX_API_KEY! },
});
await client.connect();
const tools = await client.listTools();
console.log(tools.map((t) => t.name));See docs/mcp for the full tool catalog.