Skip to main content

Agent Control via MCP

devsy mcp serve runs a Model Context Protocol server over stdio. MCP-compatible AI clients can connect to it and drive Devsy — listing, creating, and executing inside workspaces — without shelling out to the CLI themselves.

devsy mcp serve

The server reads JSON-RPC frames from stdin and writes them to stdout. Configure your MCP client to launch the command; it will discover the registered tools at startup.

Tools exposed

The server registers 11 tools across workspace and provider domains:

ToolPurpose
workspace_listList all workspaces with provider, IDE, and source.
workspace_statusGet detailed status for a workspace.
workspace_createCreate and start a new workspace.
workspace_startStart (or resume) an existing workspace.
workspace_stopStop a running workspace.
workspace_deleteDelete a workspace by name. Accepts force=true.
workspace_execRun a one-shot command inside a running workspace.
provider_listList configured providers.
provider_addAdd a provider from a registry name, GitHub URL, or local path.
provider_deleteRemove a configured provider.
provider_useSet the default provider for new workspaces.

workspace_exec is bounded by three server flags:

  • --exec-timeout-default (default 5m) — default per-call timeout.
  • --exec-timeout-max (default 30m) — caller-supplied timeouts are clamped to this.
  • --exec-output-cap (default 100 KiB) — per-stream byte cap; excess is replaced with a truncation marker.

Example client config

The exact format depends on your MCP client, but every client needs the command to launch and any arguments. A generic JSON shape looks like:

{
"mcpServers": {
"devsy": {
"command": "devsy",
"args": ["mcp", "serve"]
}
}
}

Check your client's documentation for where this config lives (e.g. claude_desktop_config.json for Claude Desktop). Refer to the MCP specification for transport and tool semantics.

Security

The MCP server has the same authority as your local Devsy CLI. A connected client can create, modify, and delete workspaces, run arbitrary commands inside them, and add or remove providers. Only enable devsy mcp serve for clients you trust.