Pinter
ENID
Integrations
View as Markdown

PINTER Agents MCP Server

Expose PINTER agent management, model discovery, tools, assets, announcements, quotas, and evaluations to external MCP clients via Streamable HTTP.

PINTER provides an official Model Context Protocol (MCP) server (pinter-agents) that allows external development environments and AI agents (such as Cursor, Claude Desktop, Zed, or custom MCP clients) to manage and interact with PINTER resources directly.


1. Connection & Transport

The server supports Streamable HTTP (recommended for production/remote IDEs), Server-Sent Events (SSE), and stdio (local CLI).

Server Endpoint

ParameterValue
ProtocolModel Context Protocol (JSON-RPC 2.0)
TransportStreamable HTTP
Base URLhttps://<pinter-backend-domain>/mcp/agents/mcp
Local URLhttp://localhost:8000/mcp/agents/mcp
AuthenticationBearer Token (Authorization: Bearer <pinter_jwt_token>)
Required HeaderAccept: application/json, text/event-stream

2. Setup in External Clients

Cursor

Add the server to your Cursor settings (Settings > Features > MCP Servers or in .cursor/mcp.json):

{
  "mcpServers": {
    "pinter-agents": {
      "url": "https://pinter.internal.domain/mcp/agents/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_PINTER_JWT_TOKEN",
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}
Claude Desktop

Add the configuration to claude_desktop_config.json:

{
  "mcpServers": {
    "pinter-agents": {
      "url": "https://pinter.internal.domain/mcp/agents/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_PINTER_JWT_TOKEN",
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}
Local Process (stdio)

If running locally within the backend repository environment:

{
  "mcpServers": {
    "pinter-agents": {
      "command": "python",
      "args": ["-m", "modules.agents.mcp"],
      "env": {
        "PINTER_MCP_API_KEY": "YOUR_PINTER_JWT_TOKEN"
      }
    }
  }
}

3. Available Tools Reference (29 Tools)

The pinter-agents MCP server provides tools organized into 9 functional domains:

1. Agent Management

  • list_agents(search, status, limit, offset): Search and list agents visible to the authenticated user.
  • get_agent(agent_id): Retrieve the full configuration, prompt instructions, and tool bindings of an agent.
  • create_agent(name, model_id, description, identity, mission, methodology, boundaries, examples, tools, ...): Create a new agent owned by the caller.
  • update_agent(agent_id, ...): Modify configuration fields of an existing agent.

2. Model Catalog

  • list_models(provider, active_only): List available and active LLM models (OpenAI, Anthropic, Gemini, local models).
  • get_model_capabilities(provider, model_id): Inspect whether a specific model supports native thinking/reasoning.

3. Tool Catalog

  • list_tools(search, tool_type, limit, offset): Discover built-in and integration tools registered in the platform.
  • get_tool(tool_id): Get full schema and connection settings for a tool.

4. MCP Server Registry

  • list_mcp_servers(search, transport, category, active_only, limit, offset): List approved external MCP servers.
  • get_mcp_server(server_id): Inspect configuration and metadata of an MCP server.
  • test_mcp_server_connection(server_id): Perform a live handshake test to verify connectivity and tool discovery.

5. Asset Management (Rules & Skills)

  • list_assets(asset_type, search, folder_path, limit, offset): List rules, skills, or knowledge assets.
  • get_asset(asset_id): Retrieve complete content markdown and metadata of an asset.
  • create_asset(type, name, content_markdown, description, visibility, ...): Create a new versioned skill or rule.
  • update_asset(asset_id, name, content_markdown, visibility, ...): Publish a new version of an existing asset.

6. Asset & Document Bindings

  • list_agent_asset_bindings(agent_id): List all rules, skills, and knowledge documents attached to an agent.
  • replace_agent_asset_bindings(agent_id, bindings): Attach or re-order assets for an agent, configuring usage modes (always_on, on_demand, retrieval).

7. System Announcements (Platform Architect / L1 Only)

  • list_announcements(search, severity, status, limit, offset): List broadcast announcements.
  • create_announcement(title, content_text, severity, starts_at, ends_at): Create a draft announcement.
  • update_announcement(announcement_id, title, content_text, severity, ...): Update announcement content and schedule.
  • delete_announcement(announcement_id): Soft-delete an announcement.

8. Quotas & Budget Requests

  • get_my_quota(): Inspect your active token limits, monthly budget, and remaining balance.
  • create_budget_request(requested_amount, reason): Submit a budget increase request for review.
  • list_my_budget_requests(status, limit, offset): View status of your past budget top-up requests.
  • review_budget_request(request_id, status, approved_amount, admin_note): Approve or reject a budget request (requires quota:manage permission).

9. Agent Evaluations

  • list_eval_sets(search, agent_id, limit, offset): List golden dataset evaluation suites.
  • get_eval_set(eval_set_id): View test cases and scoring rubrics.
  • create_eval_set(name, description, agent_id, eval_cases, is_public, criteria): Create a new evaluation benchmark.
  • run_agent_eval(eval_set_id, agent_id): Execute evaluation benchmarks against the agent and return pass rate and scores.

4. How to Call via cURL / JSON-RPC

Step 1: Handshake (initialize)

curl -X POST "http://localhost:8000/mcp/agents/mcp" \
  -H "Authorization: Bearer $PINTER_TOKEN" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2024-11-05",
      "capabilities": {},
      "clientInfo": {
        "name": "custom-client",
        "version": "1.0.0"
      }
    }
  }'

Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "protocolVersion": "2024-11-05",
    "capabilities": {
      "tools": { "listChanged": false }
    },
    "serverInfo": {
      "name": "pinter-agents",
      "version": "1.28.0"
    }
  }
}

Step 2: List Tools (tools/list)

curl -X POST "http://localhost:8000/mcp/agents/mcp" \
  -H "Authorization: Bearer $PINTER_TOKEN" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/list",
    "params": {}
  }'

Step 3: Invoke a Tool (tools/call)

Example: Search Agents

curl -X POST "http://localhost:8000/mcp/agents/mcp" \
  -H "Authorization: Bearer $PINTER_TOKEN" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/call",
    "params": {
      "name": "list_agents",
      "arguments": {
        "search": "Finance",
        "limit": 5
      }
    }
  }'

Example: Attach a Rule Document to an Agent

curl -X POST "http://localhost:8000/mcp/agents/mcp" \
  -H "Authorization: Bearer $PINTER_TOKEN" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 4,
    "method": "tools/call",
    "params": {
      "name": "replace_agent_asset_bindings",
      "arguments": {
        "agent_id": "8f3c713b-1b2c-4999-bfb7-ef1675c929a1",
        "bindings": [
          {
            "asset_id": "e2a1b947-f3c5-4ad9-9941-8c467a216db7",
            "asset_version_id": "90b1c2d3-e4f5-6a7b-8c9d-0e1f2a3b4c5d",
            "order_index": 0,
            "usage_mode": "always_on",
            "enabled": true
          }
        ]
      }
    }
  }'