# MCP code mode for your agents

Canonical: https://devtune.ai/changelog/mcp-code-mode

Published: 2026-10-28T00:00:00.000Z


Connect your agent to `https://devtune.ai/api/mcp?mode=code` with the same API key or OAuth connection you already use. Instead of a long list of tools, the agent gets two: `search` finds the operations your credential allows and returns their schemas, and `execute` runs a JavaScript program that calls them and returns one result.

One program can read a visibility summary, compare it with AI Traffic and Results, and return only what the agent needs, instead of making a dozen separate tool calls and carrying every response in its context.

Code mode can also make changes your credential's write scopes allow: launch agents, start drafts and briefs, update actions, the Library, prompts, topics, brands, domains, page locks and webhooks. Every write needs a human to approve the exact program first, and each one runs the same permission, feature and credit checks as the rest of the API. Execution receipts record what each program changed.

Code mode is available on every plan with API access. Read the [MCP code mode docs](https://docs.devtune.ai/api-reference/mcp-server#code-mode).
