svanja mcp serve runs a local MCP server so coding agents like Claude Code, Codex, or Cursor can work with Svanja. MCP is the standard way AI apps connect to other services. Your agent starts the server on its own, so you don’t need to run it by hand.
The server uses your current profile’s API key and can only do what that key is allowed to do. If SVANJA_API_KEY is set in the agent’s environment, it overrides your profile. For setup steps, see Connect AI apps over MCP and the list of tools.
To use a different profile, pass it before the command, like svanja --profile agency mcp serve.
The server starts up and lists its tools before checking your key. Because of that, an agent might show Svanja as connected even though its first call fails due to a missing or invalid key. Run svanja whoami in a terminal to check which key the server will use.