Daita Logo

MCP Server

Expose your deployed Daita agents as tools for Claude, Cursor, and other MCP-compatible coding assistants.

#What is the MCP Server?

daita mcp-server starts a Model Context Protocol server over stdio. It exposes ~30 tools covering the full Daita platform — running agents, inspecting traces, managing deployments, reading memory, and more — so any MCP-compatible coding assistant can interact with your deployed agents directly from the editor.

#Starting the server

bash
daita mcp-server

The server runs over stdio and stays alive until the client disconnects. DAITA_API_KEY must be set in the environment or the cloud tools will return 401 errors.

#Client configuration

#Claude Desktop / Claude Code

Add the following to your claude_desktop_config.json (or .mcp.json for project-scoped config):

json
{
  "mcpServers": {
    "daita": {
      "command": "daita",
      "args": ["mcp-server"],
      "env": {
        "DAITA_API_KEY": "your_api_key"
      }
    }
  }
}

#Cursor

Add to your Cursor MCP settings:

json
{
  "mcpServers": {
    "daita": {
      "command": "daita",
      "args": ["mcp-server"],
      "env": {
        "DAITA_API_KEY": "your_api_key"
      }
    }
  }
}

Once connected, all tools listed below are available to the assistant.

#Available tools

#Agents

ToolRequired inputsDescription
list_agentsList agents. Filter by agent_type, status_filter, page, per_page
get_agentagent_idGet details for a specific agent
list_deployed_agentsList agents from the most recent deployments

#Deployments

ToolRequired inputsDescription
list_deploymentsList deployments for the current API key
get_deployment_historyprojectGet deployment history for a project
delete_deploymentdeployment_idDelete a deployment

#Executions

ToolRequired inputsDescription
run_agenttarget_nameExecute an agent or workflow and poll until complete. Accepts target_type, data, task, timeout_seconds
list_executionsList recent executions. Filter by status, target_type
get_executionexecution_idGet details and result for an execution
cancel_executionexecution_idCancel a running execution
get_execution_statsGet aggregate execution statistics

#Traces

ToolRequired inputsDescription
list_tracesList traces. Filter by status, agent_id
get_tracetrace_idGet trace details
get_trace_spanstrace_idGet the full span hierarchy for a trace
get_trace_decisionstrace_idGet AI decision events recorded within a trace
get_trace_statsAggregate trace stats for a time period (24h, 7d, 30d)

#Schedules

ToolRequired inputsDescription
list_schedulesList agent schedules
get_scheduleschedule_idGet schedule details
pause_scheduleschedule_idPause a schedule
resume_scheduleschedule_idResume a paused schedule

#Memory

ToolRequired inputsDescription
get_memory_statusprojectGet memory system status for a project
get_workspace_memoryworkspace, projectGet memory contents for a workspace

#Secrets

ToolRequired inputsDescription
list_secretsList stored secret key names (values are never returned)
set_secretkey, valueStore or update an encrypted secret
delete_secretkeyDelete a secret

#Webhooks & Conversations

ToolRequired inputsDescription
list_webhooksList webhook URLs for the organisation
list_conversationsList conversations. Filter by agent_name, user_id

#Local development

These tools scaffold and run code locally. They require daita-agents to be installed in the same environment as the MCP server process.

ToolRequired inputsDescription
init_projectScaffold a new Daita project. Accepts project_name, project_type
create_agentnameAdd a new agent to the current project from template
create_workflownameAdd a new workflow to the current project from template
test_agentRun an agent or workflow locally and return results

#Authentication errors

If a tool returns {"error": true, "status_code": 401}, the server could not authenticate with the Daita API. Check that DAITA_API_KEY is set in the environment passed to the server process — environment variables set in your shell session are not automatically inherited by MCP servers launched by desktop apps.