FoPost für VS Code
Füge den gehosteten FoPost-Server zu GitHub Copilot in Visual Studio Code hinzu, melde dich an, wenn VS Code fragt, und der Agent kann aus dem, was du ausgeliefert hast, Beiträge machen, deine Warteschlange füllen und berichten, was rausgegangen ist, ohne den Editor zu verlassen.
In VS Code einfügen
Richte FoPost anhand von fopost.com/agents/vscode ein- Gehosteter MCP-Server
- 33 Netzwerke
- Kein API-Schlüssel
Der Agent kann seine Konfiguration selbst schreiben. Gib ihm den Link.
Füge die Zeile oben in VS Code ein. Es liest diese Seite, fügt den Server hinzu und hält an, damit du dich selbst bei FoPost anmelden kannst. Lieber von Hand? Das ist die ganze Konfiguration.
{
"mcpServers": {
"fopost": {
"type": "http",
"url": "https://api.fopost.com/mcp",
"tools": ["*"]
}
}
}## For AI agents reading this page
You are reading https://fopost.com/agents/vscode. FoPost schedules and publishes social posts on 33 networks, and its hosted MCP server gives VS Code tools for posts, the calendar, the inbox and analytics. Follow these steps to connect VS 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; VS Code discovers the sign-in from the server.
### 1. Register the server
Add this entry to ~/.copilot/mcp-config.json (every workspace) or .mcp.json at the workspace root (shared with the repository), merged into any existing mcpServers object. Or run "MCP: Add Server" from the Command Palette, choose HTTP, and enter the URL. No headers and no API key.
~/.copilot/mcp-config.json:
```
{
"mcpServers": {
"fopost": {
"type": "http",
"url": "https://api.fopost.com/mcp",
"tools": ["*"]
}
}
}
```
### 2. Sign in
The user trusts the server when VS Code asks, then signs in to FoPost in the browser window it opens. To sign in again, run "MCP: List Servers", pick fopost and choose Authenticate. 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: List Servers" shows fopost as running, and its tools appear in the Copilot chat tools picker. 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:
~/.copilot/mcp-config.json:
```
{
"mcpServers": {
"fopost": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@fopost/mcp"],
"env": { "FOPOST_API_KEY": "your-api-key" }
}
}
}
```
### References
- This block as markdown: https://fopost.com/agents/vscode/agent.md
- Every client: https://fopost.com/agents
- Docs: https://fopost.com/docsEine URL
Ein HTTP-Server-Eintrag mit der Adresse. Kein Schlüssel, nichts zu installieren.
Anmeldung im Browser
VS Code öffnet FoPost in deinem Browser, damit du den Zugriff freigibst, und behält dann die Verbindung.
Vorschläge vor Beiträgen
Das Veröffentlichen wartet auf einen Vorschlag, den du annimmst. Entwürfe gehen nie allein raus.
HTTP-Server hinzufügen, dann einmal anmelden
Wähle in der Chat view Copilot aus, führe dann Chat: Open Customizations über die Command Palette aus und öffne MCP Servers. Wähle Add Server, dann HTTP (HTTP or Server-Sent Events), gib https://api.fopost.com/mcp ein, nenne ihn fopost und wähle Global > Copilot Global. Vertraue dem Server, wenn VS Code fragt, und melde dich dann im geöffneten Browserfenster bei FoPost an.
Kostenlos startenChat: Open Customizations > MCP Servers > Add Server
Type: HTTP (HTTP or Server-Sent Events)
URL: https://api.fopost.com/mcp
ID: fopost
Save: Global > Copilot GlobalMit einem Repository teilen
Lege denselben mcpServers-Eintrag in .mcp.json im Stammverzeichnis des Workspace ab, damit dein Team ihn auch bekommt.
Erneut anmelden
Öffne das Menü des Servers unter MCP Servers oder führe MCP: List Servers aus und wähle Authenticate.
Erst prüfen
Lass Copilot deine verbundenen Konten auflisten und klapp den Tool-Aufruf auf.
Von der gemergten Änderung zum geplanten Beitrag
Bitte Copilot, das Changelog zu lesen und für jedes Netzwerk einen Beitrag zu entwerfen. Es schreibt Entwürfe mit create_draft_post, findet freie Zeiten mit get_queue_slots und übergibt dir ein propose_publish zum Annehmen.
Launch planen
draft_post_variants
Eine Release-Notiz, eine Version pro Netzwerk.
get_queue_slots
Deine nächsten freien Zeiten.
propose_publish
Der Plan, den du freigibst, bevor er rausgeht.
Frag, ob es angekommen ist
Frag im selben Chat, was veröffentlicht wurde, welche Konten neu verbunden werden müssen und was die Leute geantwortet haben.
Kostenlos starten> Did the release post go out everywhere?
Copilot: list_posts shows 3 of 3 published.
get_account_health: all accounts connected.list_posts
Aktuelle Beiträge und ihr Status.
get_account_health
Welche Konten neu verbunden werden müssen.
list_inbox
Antworten und Erwähnungen seit dem Beitrag.
Kein Browser auf dem Rechner?
Auf einem Server oder in CI gibt es keinen Browser zum Anmelden. Erstelle im Dashboard einen API-Schlüssel und führe stattdessen das lokale Paket über stdio aus. Halte den Schlüssel aus deinem Repository heraus.
{
"mcpServers": {
"fopost": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@fopost/mcp"],
"env": { "FOPOST_API_KEY": "your-api-key" }
}
}
}Fragen zu VS Code, beantwortet
Brauche ich einen API-Schlüssel?
Wo liegt die Einstellung?
Ich habe schon eine .vscode/mcp.json. Funktioniert die noch?
Postet es, ohne zu fragen?
Wie prüfe ich die Verbindung?
Steuere FoPost aus VS Code
Der Einstieg ist kostenlos, und der MCP-Server ist inklusive. Füge die Setup-Zeile in deinen Agenten ein, melde dich an und plane von dort deinen ersten Beitrag.
Kostenlos starten