Visual Studio Code supports MCP servers natively. You can connect TryPost to VS Code and use it with GitHub Copilot agent mode or other MCP-compatible extensions.
Prerequisites
- VS Code installed
- An MCP-compatible extension (e.g. GitHub Copilot)
- A TryPost API key
Setup
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"
}
}
}
}
Reload VS Code
Reload the window or restart VS Code to load the MCP configuration.
Verify the connection
Open the AI chat in agent mode and ask:List all my TryPost social accounts
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.