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
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"
}
}
}
}
Restart OpenCode
Close and reopen OpenCode to load the new MCP configuration.
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