Announcements

Code Mode for the Outstand MCP server

Code Mode is a new, experimental way to connect AI agents to Outstand: your agent writes one short program that handles multi-step social media tasks and returns just the answer.

AI agents are getting good at managing social media: drafting posts, scheduling them across accounts, and reporting on what worked. But the way most agents talk to tools has a cost. They call one tool at a time, read every result in full, and repeat, even when all they need is a single number at the end.

Today we are introducing Code Mode for the Outstand MCP server, available as an experimental preview. With Code Mode, your agent writes a short program that does the whole job in one step, and gets back only the answer.

TL;DR

  • Code Mode is a new, opt-in way to connect agents to Outstand, at https://mcp.outstand.so/code.
  • Your agent sees two simple tools: one to discover what Outstand can do, and one to run a program that does it.
  • Multi-step jobs, like a performance report across every connected account, happen in a single step instead of dozens of back-and-forth tool calls.
  • It uses the same sign-in, the same permissions and the same plan as the Outstand MCP server you already use. Nothing changes on https://mcp.outstand.so/mcp.
  • It is an experimental preview, so expect it to evolve based on your feedback.

Why Code Mode

Language models have read an enormous amount of real-world code, and they are very good at writing it. The team at Cloudflare made this case well in Code Mode: the better way to use MCP: give a model a typed API and let it write code, and it often handles complex tasks more reliably than when it calls the same operations as individual tools.

There is a practical benefit too. Picture asking your agent which recent post performed best on each of your accounts. With classic tool calling, it lists your accounts, then lists posts for each account, then fetches analytics for each post, and the agent has to read every one of those results along the way. That is slow, and it fills up the agent's working memory with data it does not need. In Code Mode, the agent writes one program that does all of that, and only the final summary comes back.

How it works

When your agent connects to the Code Mode endpoint, it gets two tools:

  • search lets the agent look through everything Outstand can do and read exactly how to use the parts it needs, without loading the whole catalog up front.
  • execute runs a short program that uses Outstand's capabilities, such as listing accounts, creating and scheduling posts, and reading analytics, and returns just the result.

Here is what your agent might write for that best-post report:

js
1async () => {
2  const { data: accounts } = await codemode.list_social_accounts({});
3  const report = [];
4
5  for (const account of accounts) {
6    const { posts } = await codemode.list_posts({ social_account_id: account.id, limit: 10 });
7    const stats = await Promise.all(
8      posts.map(async (post) => {
9        const analytics = await codemode.get_post_analytics({ post_id: post.id });
10        return { id: post.id, views: analytics.aggregated_metrics.total_views };
11      }),
12    );
13    stats.sort((a, b) => b.views - a.views);
14    report.push({ account: account.username, network: account.network, best: stats[0] ?? null });
15  }
16
17  return report;
18}

One step, one short report. You never have to write this code yourself. Your agent does it for you, based on what you ask for in plain language.

The same applies to publishing. "Schedule this announcement for tomorrow at 9am on all of our LinkedIn and X accounts" becomes a single action rather than a long chain of calls.

Built with safety in mind

  • Same access, nothing more. Code Mode can only do what the connected account is already allowed to do on Outstand. Your existing permissions apply to every action.
  • Isolated by design. Programs run in a locked-down, isolated environment that can only use Outstand's own capabilities.
  • Your credentials stay private. Programs never see your sign-in details or API keys.
  • You stay in control. Most MCP clients ask you to approve each program before it runs, so you can review what your agent is about to do, especially before it publishes or deletes anything.

When to use it

Code Mode shines when a task involves many steps or many accounts: cross-account reporting, bulk scheduling, auditing recent activity, or anything where you would otherwise watch your agent make call after call. For quick, single actions, the regular Outstand MCP server remains a great fit, and you can connect both.

As a preview, Code Mode works best when the agent asks for focused results, like IDs, counts and key metrics, rather than entire records. File uploads still go through the regular media upload flow.

Try it

Add https://mcp.outstand.so/code as a remote MCP server in any MCP client that supports remote servers. Sign in with your Outstand account the same way you do for the regular server, or use an Outstand API key.

Then ask for something that takes several steps, like a performance report across your accounts or a week of scheduled posts, and see it come back in one go.

We would love to hear how it goes. Code Mode is experimental, and your feedback will shape where it goes next. Reach out to the team anytime and tell us what you build with it.