Nenjo Docs
API

MCP Server

Nenjo's built-in MCP server -- Streamable HTTP transport, JSON-RPC protocol, and resource-family platform tools.

MCP Server

Nenjo includes a built-in Model Context Protocol server that exposes platform resources through a small set of resource-family tools.

Connection Details

PropertyValue
EndpointPOST /mcp
TransportStreamable HTTP
ProtocolJSON-RPC 2.0
AuthAPI key (Authorization: Bearer or X-API-Key)
Protocol Version2025-03-26

Tool Surface

Nenjo exposes these built-in MCP tools:

ToolDescription
app.nenjo.platform/agentsAgents plus prompt, scopes, abilities, context blocks, and assigned MCP servers
app.nenjo.platform/projectsProjects plus project-scoped tasks, documents, executions, and dependency graph queries
app.nenjo.platform/routinesRoutines plus steps, edges, and councils
app.nenjo.platform/mcp_serversExternal MCP server configurations
app.nenjo.platform/chatChat sessions, messages, and notifications
app.nenjo.platform/modelsModel configurations

The key's scopes determine which of these tools appear in tools/list.

Call Shape

Each tool takes:

FieldDescription
actionThe operation to perform
subresourceOptional child surface within the tool family
idThe actual target resource id
project_idProject scope selector for the projects tool
filtersOptional object for list-style queries
dataOptional object for writes

Two rules matter:

  • id is always the actual resource id being acted on
  • project_id is only a scope selector, not a parent resource id

Examples

List Project Tasks

{
  "jsonrpc": "2.0",
  "id": 10,
  "method": "tools/call",
  "params": {
    "name": "app.nenjo.platform/projects",
    "arguments": {
      "subresource": "tasks",
      "action": "list",
      "project_id": "550e8400-e29b-41d4-a716-446655440000",
      "filters": {
        "status": "open"
      }
    }
  }
}

Read an Agent Prompt

{
  "jsonrpc": "2.0",
  "id": 11,
  "method": "tools/call",
  "params": {
    "name": "app.nenjo.platform/agents",
    "arguments": {
      "subresource": "prompt",
      "action": "get",
      "id": "6d0a8f92-0b2e-4ab4-8f95-2b4d9866c5f4"
    }
  }
}

Update Agent Scopes

{
  "jsonrpc": "2.0",
  "id": 12,
  "method": "tools/call",
  "params": {
    "name": "app.nenjo.platform/agents",
    "arguments": {
      "subresource": "scopes",
      "action": "update",
      "id": "6d0a8f92-0b2e-4ab4-8f95-2b4d9866c5f4",
      "data": {
        "scopes": ["projects:read", "agents:read"]
      }
    }
  }
}

List Global Executions

{
  "jsonrpc": "2.0",
  "id": 13,
  "method": "tools/call",
  "params": {
    "name": "app.nenjo.platform/projects",
    "arguments": {
      "subresource": "executions",
      "action": "list",
      "project_id": null
    }
  }
}

Query Project Dependency Graph

{
  "jsonrpc": "2.0",
  "id": 14,
  "method": "tools/call",
  "params": {
    "name": "app.nenjo.platform/projects",
    "arguments": {
      "subresource": "graph",
      "action": "dependencies",
      "project_id": "550e8400-e29b-41d4-a716-446655440000"
    }
  }
}

On this page