FoPost per VS Code
Aggiungi il server ospitato di FoPost a GitHub Copilot in Visual Studio Code, accedi quando VS Code lo chiede e l'agente può trasformare ciò che hai rilasciato in post, riempire la coda e riferire cosa è stato pubblicato senza uscire dall'editor.
Incolla questo in VS Code
Configura FoPost da fopost.com/agents/vscode- Server MCP in hosting
- 33 reti
- Nessuna chiave API
L'agente può scrivere da solo la sua configurazione. Dagli il link.
Incolla la riga qui sopra in VS Code. Legge questa pagina, aggiunge il server e si ferma per farti accedere a FoPost di persona. Preferisci farlo a mano? Questa è tutta la configurazione.
{
"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/docsUn solo URL
Una voce di server HTTP con l'indirizzo. Nessuna chiave e nulla da installare.
Accesso dal browser
VS Code apre FoPost nel browser per approvare l'accesso, poi mantiene la connessione.
Proposte prima dei post
La pubblicazione attende una proposta che accetti. Le bozze non escono mai da sole.
Aggiungi un server HTTP, poi accedi una volta
Nella Chat view seleziona Copilot, poi esegui Chat: Open Customizations dalla Command Palette e apri MCP Servers. Seleziona Add Server, scegli HTTP (HTTP or Server-Sent Events), inserisci https://api.fopost.com/mcp, chiamalo fopost e scegli Global > Copilot Global. Considera attendibile il server quando VS Code lo chiede, poi accedi a FoPost nella finestra del browser che si apre.
Inizia gratisChat: Open Customizations > MCP Servers > Add Server
Type: HTTP (HTTP or Server-Sent Events)
URL: https://api.fopost.com/mcp
ID: fopost
Save: Global > Copilot GlobalCondividi con un repository
Metti la stessa voce mcpServers in .mcp.json nella radice del workspace, così la riceve anche il tuo team.
Accedi di nuovo
Apri il menu del server in MCP Servers, oppure esegui MCP: List Servers, e scegli Authenticate.
Prima una verifica
Chiedi a Copilot di elencare i tuoi account collegati ed espandi la chiamata allo strumento.
Da una modifica unita a un post programmato
Chiedi a Copilot di leggere il changelog e scrivere un post per ogni rete. Crea le bozze con create_draft_post, trova gli orari liberi con get_queue_slots e ti consegna una propose_publish da accettare.
Pianifica il tuo lancio
draft_post_variants
Una nota di rilascio, una versione per rete.
get_queue_slots
I tuoi prossimi orari liberi.
propose_publish
Il piano che approvi prima che esca.
Chiedi se è arrivato
Nella stessa chat, chiedi cosa è stato pubblicato, quali account vanno ricollegati e cosa hanno risposto le persone.
Inizia gratis> Did the release post go out everywhere?
Copilot: list_posts shows 3 of 3 published.
get_account_health: all accounts connected.list_posts
I post recenti e il loro stato.
get_account_health
Quali account vanno ricollegati.
list_inbox
Risposte e menzioni dopo il post.
Nessun browser sulla macchina?
Su un server o in CI non c'è un browser con cui accedere. Crea una chiave API nella dashboard ed esegui invece il pacchetto locale tramite stdio. Tieni la chiave fuori dal tuo repository.
{
"mcpServers": {
"fopost": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@fopost/mcp"],
"env": { "FOPOST_API_KEY": "your-api-key" }
}
}
}VS Code: le risposte alle tue domande
Mi serve una chiave API?
Dove si trova l'impostazione?
Ho già un .vscode/mcp.json. Funziona ancora?
Pubblica senza chiedere?
Come controllo la connessione?
Usa FoPost da VS Code
Iniziare è gratis e il server MCP è incluso. Incolla la riga di configurazione nel tuo agente, accedi e programma da lì il tuo primo post.
Inizia gratis