Skip to content

Connect with MCP

Let an agent read complete Theseus guides and generate new ones.

Connect a coding agent to Theseus over the Model Context Protocol (MCP) so it can read a pull request's guide, its changes and the review comments on it, and generate a new guide for pushed code. For the agent’s decisions as it works, see Session notes.

Connect your client

Link to this section

You need a workspace whose plan includes MCP. Agent setup, in the workspace menu, shows whether yours does and copies the server URL.

  1. In your MCP client, add a remote HTTP server at:

    https://app.theseus.dev/mcp
  2. Choose OAuth and follow the client's sign-in flow.

  3. On the Theseus consent page, check the client and where it redirects, choose the workspace and repositories it may read, and approve.

The server speaks Streamable HTTP only; clients that need the older SSE transport can't connect.

ToScopeYou also need
Read guides, changes and review activityreadAccess to the workspace and repository
Generate a guideruns:writeWrite permission on the repository in GitHub

Every call rechecks your membership, repository access, scopes and plan, so removing someone's access takes effect at once. Signing out ends the OAuth grants tied to that browser session.

For a client that takes a bearer token instead, create a personal token with the scopes above, limited to the workspace, and keep it in an environment variable rather than a config file. A CLI sign-in or browser cookie won't work as an MCP token.

Ask about a guide

Link to this section

Once connected, ask in plain language:

Read the latest ready guide for example/project PR 42, check whether it matches the current PR head, and list the changes that need more evidence.

ToolWhat it does
get_changesetResolves a PR, branch, URL or changeset ID; shows its latest ready guide, newest run and head
get_guideReads a guide's summary, Background with sources, selected major risks, rollout steps and change headers
get_claimReads one change in full: body, cited files and hunks. The API calls a change a claim
list_review_threadsReads comments, replies and review decisions on a guide
generate_guideGenerates a guide for a PR or hosted branch at its current GitHub head

Your client's tool list carries each tool's current arguments. Review decisions in Theseus are not GitHub approvals; see Review a pull request.

generate_guide uses one guide from your plan's allowance. Push the base and head commits first. If the request fails, retry it with the same idempotency_key, which won't start or charge a second run; use a new key only when you want another guide. For a local branch, push it and run theseus generate --wait in its checkout instead.

Building your own client? MCP responses covers pagination, patches and fragments.

Read the docs through MCP

Link to this section

The same connection exposes this documentation, so an agent can look up how to do something (say, verify a webhook signature) without leaving the session.

ToolWhat it does
search_docsFinds pages by keyword and returns titles, URLs and excerpts
get_docs_pageReads a page found by search

These need the read scope and MCP in your plan, like the product tools.

Agents without MCP can read the same pages as Markdown: /llms.txt lists every page and /llms-full.txt holds them all.

If it doesn't work

Link to this section
  • No tools after a server update: refresh the tool list in your client.
  • Authorization fails: check the workspace's plan, the scopes the client asked for, and your repository access. The runs:write scope doesn't grant write permission on the repository; GitHub does.
  • The consent page couldn't load: choose Try again to reopen the same request. You still choose the workspace and approve access yourself. If the page says the request has ended or cannot be opened, start a new sign-in from your MCP client.
  • Your client can't complete OAuth: use a personal token, do the task with the CLI or API, or read the guide link as Markdown.