FoPost per OpenCode

OpenCode, l'agente di coding open source, si collega ai server MCP remoti tramite URL. Aggiungi FoPost con un comando, accedi dal browser e OpenCode può pianificare e programmare i post per te.

Incolla questo in OpenCode

Configura FoPost da fopost.com/agents/opencode
  • Server MCP in hosting
  • 31 reti
  • Nessuna chiave API
Tutti gli agenti
Come funziona

OpenCode scrive le bozze. Tu approvi. Poi si pubblica.

  • API REST
FoPost
TuApprovaApprovato

Attiva di default

  • X (Twitter)
  • Facebook
  • Instagram
  • LinkedIn
  • TikTok
  • YouTube
  • Threads
  • Bluesky
  • Pinterest
  • Reddit
  • 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

Scegli un agente per copiare il suo prompt di configurazione.

Configurazione

L'agente può scrivere da solo la sua configurazione. Dagli il link.

Incolla la riga qui sopra in OpenCode. Legge questa pagina, aggiunge il server e si ferma per farti accedere a FoPost di persona. Preferisci farlo a mano? Questa è tutta la configurazione.

~/.config/opencode/opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "fopost": {
      "type": "remote",
      "url": "https://api.fopost.com/mcp"
    }
  }
}
Istruzioni per agenti IAVersione in markdown semplice
## 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

Un solo comando

opencode mcp add scrive la voce per te.

Accesso dal browser

OpenCode apre FoPost nel browser per approvare l'accesso.

Prima l'approvazione

La pubblicazione passa da una proposta che accetti. Le bozze non escono mai da sole.

Configurazione

Aggiungi il server, poi accedi

Il comando aggiunge https://api.fopost.com/mcp alla configurazione globale di OpenCode. Ometti --global per aggiungerlo a un solo progetto. Poi esegui opencode mcp auth fopost e approva l'accesso in FoPost.

Inizia gratis
Terminale
opencode mcp add fopost --global --url https://api.fopost.com/mcp
opencode mcp auth fopost

Globale o di progetto

Usalo ovunque o in un solo repository.

Nessuna chiave nella configurazione

Accedi invece di incollare una chiave.

Prima una verifica

opencode mcp list lo mostra come connesso.

Pianifica

Una settimana di post da un solo prompt

Chiedi a OpenCode di trasformare gli articoli della settimana in post con repurpose_url, adattare ciascuno con draft_post_variants e inserirli negli slot con get_queue_slots. Chiude con propose_publish, che accetti tu.

Pianifica la tua settimana
Un mese di post programmati nel calendario di pubblicazione

repurpose_url

Un articolo diventa una serie di post.

draft_post_variants

Una versione per ogni rete.

get_calendar

Cosa è già in programma.

Controlla

Chiedi se è arrivato

Gli strumenti di lettura riferiscono cosa è stato pubblicato, quali account vanno ricollegati e cosa ti aspetta nella posta in arrivo.

Inizia gratis
Sessione
> What went out today?

fopost_list_posts shows 2 of 2 published.
fopost_list_inbox has 3 new comments.

list_posts

I post recenti e il loro stato.

get_account_health

Quali account vanno ricollegati.

list_inbox

Commenti, menzioni e messaggi.

Headless

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.

~/.config/opencode/opencode.json
{
  "mcp": {
    "fopost": {
      "type": "local",
      "command": ["npx", "-y", "@fopost/mcp"],
      "environment": { "FOPOST_API_KEY": "your-api-key" }
    }
  }
}

OpenCode: le risposte alle tue domande

Mi serve una chiave API?

No. OpenCode ti fa accedere a FoPost tramite il browser.

Dice che serve l'autenticazione. E ora?

Esegui opencode mcp auth fopost, oppure /mcps dentro OpenCode, e accedi di nuovo.

Pubblica senza chiedere?

No. La pubblicazione passa da una proposta che approvi prima che venga inviato qualcosa.

Perché gli strumenti iniziano con fopost_?

OpenCode dà a ogni strumento il nome del suo server, così sai da dove arriva.

Usa i miei crediti IA?

Solo gli strumenti di FoPost che scrivono con l'IA. Elencare e programmare non li consumano.

Usa FoPost da OpenCode

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