Docs
Sign in

TAO as an MCP Server

TAO as an MCP server lets outside AI tools find and run the tools and skills you have published in TAO.

Screenshot to add: An AI client such as Cursor listing the tools it found on the TAO MCP server.

What it is for

You build tools and skills in TAO. This server offers them over MCP. An AI client that you connect can then list them and run them. You do not need to build a separate connection for each tool.

What is exposed

WhatShown to the client when
Published Studio toolsThe tool is published and active
SkillsThe skill is active and its governance status is approved. Skills added from an outside web address are left out

Unpublished tools and unapproved skills never appear.

Each tool the client sees has a name, a description and the inputs it expects.

  • A tool's name is its TAO tool ID, not its display name. The ID stays the same if you rename the tool.
  • A skill's name starts with skill_ followed by the skill ID.
  • A skill's inputs come from the inputs defined in the skill.
  • A skill's hints tell the client whether the skill is read-only or can act irreversibly. They come from the skill's risk tier.

The tool list is live. It is not a fixed list, so it changes as you publish and unpublish.

Address and access

ItemValue
Address/api/v1/mcp/tools/jsonrpc, sent as a POST
Health check/api/v1/mcp/tools/health, sent as a GET. It reports the number of published tools and skills
Protocol version2024-11-05
Server nameapex-studio-tools

The full web address depends on where your TAO is hosted. Ask your administrator. The code shows only the path.

Signing in

Every request except the first handshake (initialize) must carry a token. Send it in either of these headers.

  • Authorization: Bearer followed by the token
  • X-MCP-Token with the token

The server compares it with one shared token kept in the secrets vault, under the path apex_tools/mcp/default. In a production setup, a wrong token is refused. If no token is configured, production refuses the call too.

What a client can ask

RequestWhat it does
initializeThe handshake. Needs no token
pingA liveness check
tools/listLists the published tools and approved skills
tools/callRuns one tool or skill
resources/list and prompts/listAlways return empty lists
skill_approval_statusTAO's own extra request. Takes an approval ID and reports whether an approval is pending, approved, denied or expired

Running a tool or skill

Tools

A tool runs in the same protected way as when you run it in TAO. Time, memory and output size are limited, and outgoing network calls are limited to hosts the tool allows. Each call is recorded in the tool's run history as coming from MCP.

Skills

A skill call goes through TAO's usual checks first, including approvals. One of three things happens.

  1. It runs. The client gets the output.
  2. It needs approval. The client is told the call is pending and is given an approval ID. After someone approves it, the client must call the skill again. The code does not show the call running on its own after approval.
  3. It is denied. The client gets an error marked as a governance denial.

Connect a client

  1. Ask for the address and token

    Ask your administrator for the full web address and the MCP token.

  2. Add the server in the client

    Open the MCP settings of your client. Add a server of the web (HTTP) kind. Enter the address.

  3. Add the token as a header

    Add the token as a Bearer token in the Authorization header. A client that needs a different header can use X-MCP-Token.

  4. Check the tool list

    Restart the client if it asks you to. It should now list your published tools.

The code does not include a ready-made client snippet for this server. The exact settings differ for each client, so follow your client's own MCP guide.

Example

Illustrative. A request to list tools has this shape.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list",
  "params": {}
}

A request to run a tool has this shape. The name is the tool ID, and arguments holds the inputs the tool expects.

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "the-tool-id",
    "arguments": {}
  }
}

Tips

  • Publish only the tools you are happy for outside clients to run.
  • Review the run history of your tools for calls that came from MCP.
  • Use the health address to confirm how many tools and skills are on offer.

Where the sources disagree

An older internal document gives the address as /mcp/tools/jsonrpc and says any non-empty token works in development. A newer reference and the code show /api/v1/mcp/tools/jsonrpc, and in development only the fixed test value is accepted. This page follows the code.