Skip to main content
GitHub Copilot supports MCP servers in agent mode, allowing you to connect TryPost directly to your VS Code workflow.

Prerequisites

  • VS Code with GitHub Copilot extension installed
  • Copilot agent mode enabled
  • A TryPost API key

Setup

1

Create the MCP configuration file

In your project root, create or edit .vscode/mcp.json:
{
  "servers": {
    "trypost": {
      "type": "http",
      "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

Reload VS Code

Reload the window or restart VS Code to load the MCP configuration.
3

Verify the connection

Open Copilot Chat in agent mode and ask:
List all my TryPost posts
You should see Copilot use the TryPost tools to fetch your data.
VS Code uses "servers" as the top-level key (not "mcpServers"). This is different from most other MCP clients.

Global configuration

To make TryPost available across all projects, use the command palette and run MCP: Open User Configuration to add the server to your user-level settings.

Example prompts

Create a new post scheduled for tomorrow
Show me all my hashtag groups
What social accounts are connected to my workspace?