Kimi Code向けFoPost
Moonshot AIのコーディングエージェントKimi Codeは、URLでリモートMCPサーバーに接続します。FoPostを追加してブラウザで一度サインインすれば、出荷したばかりのコードのローンチ投稿をエージェントが書けます。
Kimi Codeに貼り付けてください
fopost.com/agents/kimiを参照してFoPostをセットアップしてください- ホスト型MCPサーバー
- 33のネットワーク
- APIキー不要
設定はエージェント自身が書けます。リンクを渡すだけです。
上の1行をKimi Codeに貼り付けてください。このページを読んでサーバーを追加し、FoPostへのサインインはあなた自身が行えるよう、そこで停止します。手動で設定したい場合は、これが設定のすべてです。
{
"mcpServers": {
"fopost": {
"url": "https://api.fopost.com/mcp"
}
}
}## 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であなたの承認を求めます。
ローンチを計画する
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で実行してください。キーはリポジトリに含めないでください。
{
"mcpServers": {
"fopost": {
"command": "npx",
"args": ["-y", "@fopost/mcp"],
"env": { "FOPOST_API_KEY": "your-api-key" }
}
}
}