Kimi Code向けFoPost

Moonshot AIのコーディングエージェントKimi Codeは、URLでリモートMCPサーバーに接続します。FoPostを追加してブラウザで一度サインインすれば、出荷したばかりのコードのローンチ投稿をエージェントが書けます。

Kimi Codeに貼り付けてください

fopost.com/agents/kimiを参照してFoPostをセットアップしてください
  • ホスト型MCPサーバー
  • 33のネットワーク
  • APIキー不要
すべてのエージェント
セットアップ

設定はエージェント自身が書けます。リンクを渡すだけです。

上の1行をKimi Codeに貼り付けてください。このページを読んでサーバーを追加し、FoPostへのサインインはあなた自身が行えるよう、そこで停止します。手動で設定したい場合は、これが設定のすべてです。

~/.kimi-code/mcp.json
{
  "mcpServers": {
    "fopost": {
      "url": "https://api.fopost.com/mcp"
    }
  }
}
AIエージェント向けの手順プレーンなMarkdown版
## 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

エントリは1つ

urlだけ。ファイルにキーは書きません。

ブラウザでサインイン

/mcp-config loginがブラウザでFoPostを開き、アクセスの承認を求めます。

デフォルトで承認制

Kimi Codeは、どの権限ルールにも該当しないツール呼び出しの前に確認します。

セットアップ

サーバーを追加して、ログイン

上のエントリを~/.kimi-code/mcp.json、またはプロジェクト内の.kimi-code/mcp.jsonに追加します。ファイルを編集せず、セッションで/mcp-configを実行して追加することもできます。次に/mcp-config login fopostを実行し、FoPostでアクセスを承認します。/mcpで接続状況を確認できます。

無料で始める
セッション
/mcp-config login fopost
/mcp

プロジェクトごと

リポジトリに.kimi-code/mcp.jsonを置けば、セットアップをコードと一緒に管理できます。

手作業の編集は不要

/mcp-configで、セッション内からサーバーの追加、編集、削除ができます。

まず確認

接続済みアカウントの一覧を出してもらいましょう。

計画

リポジトリからリリースを告知

Kimi Codeに変更履歴を読ませ、告知を下書きさせます。create_draft_postで下書きを、draft_post_variantsでネットワークごとのバージョンを書き、最後にpropose_publishであなたの承認を求めます。

ローンチを計画する
公開カレンダーに並んだ1か月分の予約投稿

draft_post_variants

1つのリリースノートを、ネットワークごとに最適化。

get_queue_slots

次の空き時間。

propose_publish

公開前にあなたが承認する計画。

確認

届いたかどうかを確認

同じセッションで、何が公開されたか、対応が必要なアカウントはどれか、どんな返信が来たかを聞けます。

無料で始める
セッション
> Did the release post go out?

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

list_posts

最近の投稿とそのステータス。

get_account_health

再接続が必要なアカウント。

list_inbox

投稿後の返信とメンション。

ヘッドレス

マシンにブラウザがない場合

サーバーやCIには、サインインに使うブラウザがありません。代わりにダッシュボードでAPIキーを作成し、ローカルパッケージをstdioで実行してください。キーはリポジトリに含めないでください。

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

Kimi Codeに関するよくある質問

APIキーは必要ですか?

いいえ。/mcp-config login fopostを実行し、ブラウザでFoPostにサインインします。

Kimiアプリでも使えますか?

このページで扱うのは、ターミナルで動くコーディングエージェントのKimi Codeです。Moonshot AIが独自のMCPサーバーを追加する方法を文書化しているのは、こちらです。

確認なしで投稿されることはありますか?

いいえ。Kimi Codeはどの権限ルールでも許可されていない呼び出しの前に確認し、公開はあなたが承認する提案を経て行われます。

接続を確認するには?

セッションで/mcpを実行すると、各サーバーと接続状況が表示されます。

AIクレジットは消費されますか?

消費するのは、AIで文章を書くFoPostのツールだけです。一覧表示と予約では消費されません。

Kimi CodeからFoPostを操作

無料で始められ、MCPサーバーも含まれています。セットアップの1行をエージェントに貼り付けてサインインし、そこから最初の投稿を予約しましょう。

無料で始める