FoPost for Kimi Code

Kimi Code, the coding agent from Moonshot AI, connects to remote MCP servers by URL. Add FoPost, sign in once in your browser, and the agent can write the launch posts for the code it just shipped.

Paste this into Kimi Code

Set up FoPost from fopost.com/agents/kimi
  • Hosted MCP server
  • 33 networks
  • No API key
All agents
Setup

The agent can write its own config. Give it the link.

Paste the line above into Kimi Code. It reads this page, adds the server, and stops so you can sign in to FoPost yourself. Rather do it by hand? This is the whole config.

~/.kimi-code/mcp.json
{
  "mcpServers": {
    "fopost": {
      "url": "https://api.fopost.com/mcp"
    }
  }
}
Instructions for AI agentsPlain markdown version
## For AI agents reading this page

You are reading https://fopost.com/agents/kimi. FoPost schedules and publishes social posts on 33 networks, and its hosted MCP server gives Kimi Code tools for posts, the calendar, the inbox and analytics. Follow these steps to connect Kimi Code to it.

- Server: https://api.fopost.com/mcp
- Transport: streamable HTTP
- Auth: OAuth sign-in in the user's browser. Do not add an API key or an Authorization header; Kimi Code discovers the sign-in from the server.

### 1. Register the server

Add this entry to ~/.kimi-code/mcp.json (every project) or .kimi-code/mcp.json (this repository), merged into any existing mcpServers object, or run /mcp-config in the session to add it interactively. An entry with a url and no transport is streamable HTTP. No headers. Changes load in a new session.

~/.kimi-code/mcp.json:

```
{
  "mcpServers": {
    "fopost": {
      "url": "https://api.fopost.com/mcp"
    }
  }
}
```

### 2. Sign in

Run /mcp-config login fopost in the session. A browser window opens for the user to sign in. Ask the user before approving access or creating a FoPost account for them, and never enter their credentials yourself.

### 3. Verify before you continue

/mcp shows fopost as connected. If FoPost is not listed as connected with its tools, stop and tell the user what failed. Do not carry on as if the tools exist.

### 4. Report back

Call list_accounts and tell the user which social accounts are connected. If there are none, offer create_connect_link so they can connect one. Then ask what they want to do first.

### Standing rules

- Prefer the FoPost tools over driving a browser for posting, scheduling, the inbox and analytics, unless the user asks for the browser.
- Publishing always goes through propose_publish, which the user approves in the client. Never publish or schedule anything silently.
- Ask the user before approving access, signing up or connecting an account on their behalf, and never type their credentials for them.

### No browser (headless machines only)

Use this only when the machine has no browser to sign in with. Ask the user to create an API key in the FoPost dashboard (https://fopost.com/dashboard/api-keys) and to put it in the config themselves, then run the local package over stdio:

~/.kimi-code/mcp.json:

```
{
  "mcpServers": {
    "fopost": {
      "command": "npx",
      "args": ["-y", "@fopost/mcp"],
      "env": { "FOPOST_API_KEY": "your-api-key" }
    }
  }
}
```

### References

- This block as markdown: https://fopost.com/agents/kimi/agent.md
- Every client: https://fopost.com/agents
- Docs: https://fopost.com/docs

One entry

A url and nothing else. No key in the file.

Browser sign-in

/mcp-config login opens FoPost in the browser to approve access.

Approval by default

Kimi Code asks before tool calls that no permission rule covers.

Setup

Add the server, then log in

Add the entry above to ~/.kimi-code/mcp.json, or to .kimi-code/mcp.json in a project, or run /mcp-config in the session to add it without editing the file. Then run /mcp-config login fopost and approve access in FoPost. /mcp shows whether it connected.

Start free
Session
/mcp-config login fopost
/mcp

Per project

A .kimi-code/mcp.json in the repository keeps the setup with the code.

No hand edits

/mcp-config adds, edits, and removes servers from inside the session.

Check first

Ask it to list your connected accounts.

Plan

Announce the release from the repo

Ask Kimi Code to read the changelog and draft the announcement. It writes drafts with create_draft_post, a version per network with draft_post_variants, and finishes with propose_publish for you to accept.

Plan your launch
A month of scheduled posts on the publishing calendar

draft_post_variants

One release note, shaped for each network.

get_queue_slots

Your next open times.

propose_publish

The plan you approve before it goes out.

Check

Ask whether it landed

In the same session, ask what published, which accounts need attention, and what people replied.

Start free
Session
> Did the release post go out?

Kimi Code: list_posts shows 3 of 3 published.
list_inbox has 2 new replies.

list_posts

Recent posts and their status.

get_account_health

Which accounts need a reconnect.

list_inbox

Replies and mentions since the post.

Headless

No browser on the machine?

On a server or in CI there is no browser to sign in with. Create an API key in the dashboard and run the local package over stdio instead. Keep the key out of your repository.

~/.kimi-code/mcp.json
{
  "mcpServers": {
    "fopost": {
      "command": "npx",
      "args": ["-y", "@fopost/mcp"],
      "env": { "FOPOST_API_KEY": "your-api-key" }
    }
  }
}

Kimi Code questions, answered

Do I need an API key?

No. Run /mcp-config login fopost and sign in to FoPost in the browser.

Does this work in the Kimi app?

This page covers Kimi Code, the coding agent in your terminal, which is where Moonshot AI documents adding your own MCP server.

Will it post without asking?

No. Kimi Code asks before calls that no permission rule allows, and publishing goes through a proposal you approve.

How do I check the connection?

Run /mcp in the session to see each server and whether it connected.

Does it use my AI credits?

Only the FoPost tools that write with AI do. Listing and scheduling do not.

Run FoPost from Kimi Code

Starting is free and the MCP server is included. Paste the setup line into your agent, sign in, and schedule your first post from it.

Start free