MCP integration
Actio can expose its context to AI tools via a minimal MCP (Model Context Protocol) server. Run actio mcp and connect your tool over stdio.
What is MCP?
MCP is a protocol that lets AI applications talk to external "tools" and "resources." Actio's MCP server provides:
- Resources — Actio files (index, architecture, rules, tasks) as readable URIs.
- List + read — The client can list available resources and read their contents.
Starting the server
From your project root:
actio mcp
The process reads JSON-RPC from stdin and writes responses to stdout. It does not exit unless stdin closes or an error occurs.
Methods
mcp.listResources
Returns all known Actio resources (files that exist under actio/).
Request:
{"jsonrpc":"2.0","id":1,"method":"mcp.listResources","params":{}}
Response (example):
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"resources": [
{"uri": "actio://actio/index.yaml", "description": "Actio resource: actio/index.yaml"},
{"uri": "actio://actio/architecture/system.md", "description": "Actio resource: actio/architecture/system.md"}
]
}
}
mcp.readResource
Returns the content of a resource by URI.
Request:
{"jsonrpc":"2.0","id":2,"method":"mcp.readResource","params":{"uri":"actio://actio/index.yaml"}}
Response:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"uri": "actio://actio/index.yaml",
"content": "version: 1\nproject:\n name: ..."
}
}
Cursor and other tools
To use Actio with Cursor (or another MCP client):
- Configure the client to run a stdio MCP server.
- Set the command to
actio mcpand the working directory to your project root. - The client can then call
mcp.listResourcesandmcp.readResourceto inject Actio context into the AI session.
Exact steps depend on the client’s MCP support; refer to its docs for “MCP server” or “stdio transport.”
See also
- actio mcp — CLI reference.