Skip to content

Connect

MCP and external AI tools (Advanced)

Connect an external local AI client and control what it may do to instances.

Two versions of this page follow. Step by step walks through the task in order. In depth explains the underlying behavior. They describe the same product, at different levels of detail.

Step by step

Follow the steps in order. No prior modding knowledge assumed.

MCP is an advanced and optional bridge that lets a compatible AI tool inspect Agora and request supported actions. It is not recommended for most users: copying a crash report from Crash Doctor is simpler for occasional help, and an assistant app that can run commands is easier to set up and more capable(see Get help from an AI assistant).

After this you will be able to

  • Decide whether MCP is appropriate for your workflow.
  • Start and stop the local server.
  • Understand the security impact before connecting a client.

Copy and paste, CLI, or MCP?

For an occasional question, copying a crash report from Crash Doctor is simplest. Otherwise we recommend using the CLI with a coding agent for direct access. MCP suits advanced users that would rather not have an agent run on your machine. MCP works well if you want AI to look at your instances and crash reports, and ask to turn mods on or off, without giving it direct filesystem access.

Connect an AI app

Turn on Advanced mode, then AI / MCP Server, in Settings. Agora gives you a ready-made configuration to paste into your AI app, including a private access token.

  1. Start the MCP server when you want to use it.
  2. Copy the configuration for Kilo Code, Opencode, Claude Desktop, or another app that supports MCP.
  3. Keep the access token private, like a password.
  4. Check the app can list your instances before letting it change anything.
  5. Stop the server when you are done.

Approve changes carefully

AI can make mistakes. Check which instance it wants to change and what it wants to do. We recommend locking instances you care about and taking a snapshot before allowing changes.

In depth

How the system actually behaves, and why, for readers who prefer the model to a recipe.

Connection details for setting up an app by hand, what each tool lets the AI do, and what to check when it will not connect.

After this you will be able to

  • Set up a connection by hand and replace the token.
  • Decide which tools need your approval.
  • Fix connection problems without opening Agora up to other computers.

Secure the connection

Use http://127.0.0.1:39741/sse for SSE or http://127.0.0.1:39741/mcp for streamable HTTP. Never expose either endpoint through port forwarding or a public reverse proxy. Send the token only in the Authorization header. Regeneration invalidates the previous token and requires updating every client.

Scope tool approvals

The ten tools are list_instances, list_instance_mods, read_mod_manifest, get_system_context, search_crash_signatures, search_knowledge_base, disable_mod, enable_mod, read_latest_crash, and suggest_mod_incompatibility. Use per-instance approval settings for modifying tools. Read-only inspection is lower risk but can still expose instance names, file metadata, or crash context to the connected AI provider.

Troubleshoot methodically

Check that the server status is running, the URL uses 127.0.0.1 and port 39741, the client transport matches the URL (streamable HTTP for /mcp, SSE for /sse), the token is current, and local security software is not blocking the process. Do not disable system security or bind the server broadly to solve a client configuration error.

This guide is the same text Agora shows in its built-in Help & Guide, which is searchable and links directly to the screens it describes.