OpenCode向けFoPost
オープンソースのコーディングエージェントOpenCodeは、URLでリモートMCPサーバーに接続します。コマンド1つでFoPostを追加し、ブラウザでサインインすれば、OpenCodeが投稿を計画して予約します。
OpenCodeに貼り付けてください
fopost.com/agents/opencodeを参照してFoPostをセットアップしてください- ホスト型MCPサーバー
- 31のネットワーク
- APIキー不要
OpenCodeが下書き。あなたが承認。そして公開。
デフォルトでオン
- X (Twitter)
- TikTok
- YouTube
- Threads
- Bluesky
- Discord
- Mastodon
- Telegram
- Slack
- DEV.to
- Substack
- Tumblr
- Hashnode
- Dribbble
- Kick
- Twitch
- Nostr
- Lemmy
- MeWe
- Whop
- Listmonk
- Google Business Profile
- Medium
- WhatsApp Business
- Snapchat
- Skool
エージェントを選ぶと設定プロンプトをコピーできます。
設定はエージェント自身が書けます。リンクを渡すだけです。
上の1行をOpenCodeに貼り付けてください。このページを読んでサーバーを追加し、FoPostへのサインインはあなた自身が行えるよう、そこで停止します。手動で設定したい場合は、これが設定のすべてです。
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"fopost": {
"type": "remote",
"url": "https://api.fopost.com/mcp"
}
}
}## For AI agents reading this page
You are reading https://fopost.com/agents/opencode. FoPost schedules and publishes social posts on 31 networks, and its hosted MCP server gives OpenCode tools for posts, the calendar, the inbox and analytics. Follow these steps to connect OpenCode 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; OpenCode discovers the sign-in from the server.
### 1. Register the server
Run this command, or add the entry to ~/.config/opencode/opencode.json (every project) or opencode.json in the project, merged into any existing mcp object. No headers and no API key.
Terminal:
```
opencode mcp add fopost --global --url https://api.fopost.com/mcp
```
### 2. Sign in
Run opencode mcp auth fopost, or /mcps inside OpenCode. 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
opencode mcp list shows fopost as connected, and its tools appear as fopost_<tool>. 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:
~/.config/opencode/opencode.json:
```
{
"mcp": {
"fopost": {
"type": "local",
"command": ["npx", "-y", "@fopost/mcp"],
"environment": { "FOPOST_API_KEY": "your-api-key" }
}
}
}
```
### References
- This block as markdown: https://fopost.com/agents/opencode/agent.md
- Every client: https://fopost.com/agents
- Docs: https://fopost.com/docsコマンド1つ
opencode mcp addがエントリを書き込みます。
ブラウザでサインイン
OpenCodeがブラウザでFoPostを開き、アクセスの承認を求めます。
承認が先
公開は、あなたが受け入れる提案を経て行われます。下書きが勝手に公開されることはありません。
サーバーを追加して、サインイン
このコマンドで、OpenCodeのグローバル設定にhttps://api.fopost.com/mcpが追加されます。1つのプロジェクトだけに追加するなら--globalを外します。続いてopencode mcp auth fopostを実行し、FoPostでアクセスを承認します。
無料で始めるopencode mcp add fopost --global --url https://api.fopost.com/mcp
opencode mcp auth fopostグローバルかプロジェクトか
どこでも使うか、1つのリポジトリだけで使うか。
設定にキーは不要
キーを貼り付ける代わりにサインインします。
まず確認
opencode mcp listで接続済みと表示されます。
プロンプト1つで1週間分の投稿
今週の記事をrepurpose_urlで投稿に変え、draft_post_variantsで1つずつ整え、get_queue_slotsで枠に入れるようOpenCodeに頼みます。最後はpropose_publishで、あなたが承認します。
1週間を計画する
repurpose_url
記事が一連の投稿に。
draft_post_variants
ネットワークごとのバージョン。
get_calendar
すでに入っている予定。
> What went out today?
fopost_list_posts shows 2 of 2 published.
fopost_list_inbox has 3 new comments.list_posts
最近の投稿とそのステータス。
get_account_health
再接続が必要なアカウント。
list_inbox
コメント、メンション、メッセージ。
マシンにブラウザがない場合
サーバーやCIには、サインインに使うブラウザがありません。代わりにダッシュボードでAPIキーを作成し、ローカルパッケージをstdioで実行してください。キーはリポジトリに含めないでください。
{
"mcp": {
"fopost": {
"type": "local",
"command": ["npx", "-y", "@fopost/mcp"],
"environment": { "FOPOST_API_KEY": "your-api-key" }
}
}
}OpenCodeに関するよくある質問
APIキーは必要ですか?
認証が必要と表示されます。どうすればいいですか?
確認なしで投稿されることはありますか?
ツール名がfopost_で始まるのはなぜですか?
AIクレジットを使いますか?
ほかのエージェント
- MCP Server
- Claude Code
- Claude
- Claude Desktop
- Claude Cowork
- Cursor
- Codex
- ChatGPT
- Windsurf
- Gemini CLI
- Grok
- Hermes Agent
- OpenClaw
- Muse
- Kimi Code
- DeepSeek Harness
- goose
- VS Code
- Warp
- Amp
- LM Studio
- Gemini
- Perplexity
- Perplexity Computer
- Manus
- Mistral Vibe
- GitHub Copilot
- Cline
- Junie
- Continue
- Zed
- OpenAI dots
- Claude Duet
- Grok Build
- NanoClaw
- Paperclip
- Raycast