Skip to main content
OpenCode is an open-source AI coding assistant that runs in your terminal. You can connect it to TryPost’s MCP server to manage your social media scheduling with natural language.

Prerequisites

  • OpenCode installed
  • A TryPost API key

Setup

1

Open the configuration file

Edit your OpenCode configuration at .opencode.json in your project root (or ~/.opencode.json for global config):
{
  "mcpServers": {
    "trypost": {
      "type": "sse",
      "url": "https://app.trypost.it/mcp/trypost",
      "headers": {
        "Authorization": "Bearer tp_your_api_key_here"
      }
    }
  }
}
Replace tp_your_api_key_here with your actual API key from the TryPost dashboard.
2

Restart OpenCode

Close and reopen OpenCode to load the new MCP configuration.
3

Verify the connection

Ask OpenCode to interact with your TryPost account:
List all my TryPost social accounts
OpenCode currently supports stdio and sse transports. The sse transport is used for remote HTTP servers.

Example prompts

Create a post for tomorrow at 9am
Show me all my hashtag groups
Create a label called "Newsletter" with color #8b5cf6