FoPost voor VS Code
Voeg de gehoste FoPost-server toe aan GitHub Copilot in Visual Studio Code, log in wanneer VS Code erom vraagt, en de agent kan van wat je hebt opgeleverd posts maken, je wachtrij vullen en rapporteren wat er is uitgegaan, zonder de editor te verlaten.
Plak dit in VS Code
Stel FoPost in via fopost.com/agents/vscode- Gehoste MCP-server
- 33 netwerken
- Geen API-sleutel
De agent kan zijn eigen configuratie schrijven. Geef hem de link.
Plak de regel hierboven in VS Code. Hij leest deze pagina, voegt de server toe en stopt, zodat je je zelf kunt aanmelden bij FoPost. Doe je het liever met de hand? Dit is de hele configuratie.
{
"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/docsEén URL
Een HTTP-serveritem met het adres. Geen sleutel en niets om te installeren.
Inloggen in de browser
VS Code opent FoPost in je browser om toegang te geven en houdt daarna de verbinding vast.
Voorstellen vóór posts
Publiceren wacht op een voorstel dat jij accepteert. Concepten gaan nooit vanzelf de deur uit.
Voeg een HTTP-server toe en log één keer in
Selecteer in de Chat view Copilot, voer daarna Chat: Open Customizations uit vanuit het Command Palette en open MCP Servers. Selecteer Add Server, kies HTTP (HTTP or Server-Sent Events), vul https://api.fopost.com/mcp in, noem hem fopost en kies Global > Copilot Global. Vertrouw de server wanneer VS Code erom vraagt en log daarna in bij FoPost in het browservenster dat opent.
Gratis 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 GlobalDeel met een repository
Zet hetzelfde mcpServers-item in .mcp.json in de hoofdmap van de workspace, zodat je team het ook krijgt.
Opnieuw inloggen
Open het menu van de server onder MCP Servers, of voer MCP: List Servers uit, en kies Authenticate.
Eerst controleren
Vraag Copilot je gekoppelde accounts op te sommen en klap de toolaanroep open.
Van een gemergde wijziging naar een ingeplande post
Vraag Copilot de changelog te lezen en een post per netwerk te schrijven. Het maakt concepten met create_draft_post, zoekt vrije tijden met get_queue_slots en geeft je een propose_publish om te accepteren.
Plan je lancering
draft_post_variants
Eén releasenotitie, een versie per netwerk.
get_queue_slots
Je eerstvolgende vrije tijden.
propose_publish
Het plan dat je goedkeurt voordat het uitgaat.
Vraag of hij is aangekomen
Vraag in dezelfde chat wat er is gepubliceerd, welke accounts opnieuw gekoppeld moeten worden en wat mensen hebben gereageerd.
Gratis starten> Did the release post go out everywhere?
Copilot: list_posts shows 3 of 3 published.
get_account_health: all accounts connected.list_posts
Recente posts en hun status.
get_account_health
Welke accounts opnieuw gekoppeld moeten worden.
list_inbox
Reacties en vermeldingen sinds de post.
Geen browser op de machine?
Op een server of in CI is er geen browser om mee aan te melden. Maak een API-sleutel aan in het dashboard en draai in plaats daarvan het lokale pakket over stdio. Houd de sleutel buiten je repository.
{
"mcpServers": {
"fopost": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@fopost/mcp"],
"env": { "FOPOST_API_KEY": "your-api-key" }
}
}
}Vragen over VS Code, beantwoord
Heb ik een API-sleutel nodig?
Waar staat de instelling?
Ik heb al een .vscode/mcp.json. Werkt die nog?
Post het zonder te vragen?
Hoe controleer ik de verbinding?
Gebruik FoPost vanuit VS Code
Beginnen is gratis en de MCP-server zit erbij. Plak de setupregel in je agent, meld je aan en plan je eerste post vanuit je agent in.
Gratis starten