All Docs

MCP Server

Cognova exposes a full Model Context Protocol server at https://cognova.dev/mcp. Any MCP-compatible client — Claude Code, Cursor, Windsurf, or custom clients — can connect to discover and invoke your workspace's agents, tasks, memories, and knowledge.

Setup

Claude Code

claude mcp add cognova https://cognova.dev/mcp \
  --transport http \
  --header "Authorization: Bearer cg_YOUR_KEY"

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "cognova": {
      "url": "https://cognova.dev/mcp",
      "headers": {
        "Authorization": "Bearer cg_YOUR_KEY"
      }
    }
  }
}

Other MCP Clients

Use the Streamable HTTP transport:

  • URL: https://cognova.dev/mcp
  • Auth: Authorization: Bearer cg_YOUR_KEY
  • Transport: Streamable HTTP (POST/GET/DELETE on single endpoint)

Available Tools

Agent Swarm

ToolDescription
cognova_list_agentsList all workspace agents with name, description, model tier, and tools
cognova_ask_agentSend a message to a specific agent and get a response

Tasks

ToolDescription
cognova_list_tasksList tasks with optional status and project filters
cognova_create_taskCreate a new task
cognova_update_taskUpdate task title, description, status, or priority
cognova_complete_taskMark a task as done
cognova_list_projectsList all projects

Memory

ToolDescription
cognova_rememberStore a memory in the workspace
cognova_recallSearch memories by query with relevance ranking

Knowledge

ToolDescription
cognova_list_knowledgeList all knowledge files
cognova_get_knowledgeRead a knowledge file by virtual path

Resources

MCP resources provide read-only data access:

URIDescription
cognova://tasks/activeAll non-completed tasks as JSON
cognova://knowledge/{path}Knowledge file content by virtual path
cognova://agents/{agentId}Agent details (name, description, tools)

Protocol Details

Cognova implements the Streamable HTTP transport (MCP spec 2025-06-18):

  • POST /mcp — Send JSON-RPC requests (initialize, tools/call, etc.)
  • GET /mcp — SSE stream for server-initiated messages (requires Mcp-Session-Id header)
  • DELETE /mcp — Tear down session

Sessions are maintained server-side with a 30-minute idle timeout.

Example: Raw JSON-RPC

# Initialize session
curl -X POST https://cognova.dev/mcp \
  -H "Authorization: Bearer cg_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-06-18",
      "capabilities": {},
      "clientInfo": { "name": "example", "version": "1.0.0" }
    }
  }'

# List tools (use Mcp-Session-Id from init response)
curl -X POST https://cognova.dev/mcp \
  -H "Authorization: Bearer cg_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Mcp-Session-Id: SESSION_ID" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/list"
  }'