Prerequisites
Before you connect, make sure you have:- An Autonomy account with access to Studio.
- At least one repository connected to Autonomy (the Autonomy GitHub App installed on it). New repos start in
PENDING_INITIALIZATION- the setup step walks you through getting one toREADY. - An MCP client - Claude Code or Claude Desktop.
The two MCP servers
You connect two MCP servers. They do different jobs and complement each other:
Wiring both means your agent can read the docs and act on the platform in the same session.
Connect from Studio (recommended)
The fastest path is the “Connect your AI tools (MCP)” card in Studio’s User Settings. It gives a copyable Claude Code command, pointed at the hosted URL and wired to the OAuth login/consent flow.Connect manually
- Claude Code
- Claude Desktop
autonomy server your client opens a browser to sign in and consent (your existing Autonomy identity and project permissions apply). The docs server is read-only and needs no auth.
Run your first task
Once connected, ask your agent to drive it:1
Pick a project
Call
list_projects and choose a project_id + workspace_id. If a just-connected repo isn’t READY, call initialize_project and poll list_projects until it is.2
Start the task
start_task(project_id, workspace_id, instruction) returns a task_id immediately - the work runs in the background.3
Watch it
Poll
get_task(project_id, task_id) until the status is terminal or it needs input. Read the agent’s work with get_task_messages and the code changes with get_task_pr_diff.4
Ship it
When you’ve approved the changes,
complete_task opens or updates the pull request for your developers.A full example, start to finish
Here’s a complete run - from a plain-English ask to an open pull request. You talk to your agent in natural language; under the hood it makes these calls:complete_task.