VS Code & GitHub Copilot
Use MCP with GitHub Copilot in Visual Studio Code
The Model Context Protocol (MCP) is an open-source standard for connecting AI applications to external systems. Topsort provides an MCP server through Mintlify that gives AI assistants direct access to our complete API documentation, enabling them to provide accurate, up-to-date information about our APIs.
By connecting to Topsort’s MCP server, AI assistants can:
Our MCP server is available at:
https://api.docs.topsort.com/mcp
The MCP server is publicly accessible and doesn’t require authentication. However, you’ll need API keys to actually use the Topsort API in your applications.
VS Code & GitHub Copilot
Use MCP with GitHub Copilot in Visual Studio Code
ChatGPT
Connect ChatGPT to access Topsort documentation
Claude Desktop
Configure Claude Desktop for local development
Other Clients
Cursor, Windsurf, Continue, and more
GitHub Copilot supports MCP servers in both the coding agent and the chat interface, allowing you to access Topsort’s API documentation directly within your IDE.
Open VS Code Settings
Press Cmd+,
(Mac) or Ctrl+,
(Windows/Linux) to open Settings, or go to Code > Settings > Settings (Mac) or File > Preferences > Settings (Windows/Linux).
Navigate to MCP Configuration
Search for “MCP” in the settings search bar, or navigate to:
Extensions > GitHub Copilot > MCP
Add Topsort MCP Server
Click Edit in settings.json to add the MCP server configuration. You can configure this at either the user or workspace level.
For User Settings (~/.config/Code/User/settings.json
on Mac/Linux or %APPDATA%\Code\User\settings.json
on Windows):
{ "github.copilot.chat.mcp.servers": { "topsort": { "type": "sse", "url": "https://api.docs.topsort.com/mcp" } }}
For Workspace Settings (.vscode/settings.json
in your project):
{ "github.copilot.chat.mcp.servers": { "topsort": { "type": "sse", "url": "https://api.docs.topsort.com/mcp" } }}
Reload VS Code
After saving the settings, reload VS Code to apply the changes:
Cmd+Shift+P
(Mac) or Ctrl+Shift+P
(Windows/Linux)Verify the Connection
Open the GitHub Copilot Chat panel (click the chat icon in the sidebar or press Cmd+Shift+I
/ Ctrl+Shift+I
), and you should see the Topsort MCP server listed as available.
Once configured, GitHub Copilot can access Topsort’s API documentation in your conversations:
You: How do I create a banner campaign using the Topsort API?
Copilot: [Accesses Topsort MCP server] Based on the Topsort API documentation...
You: What are the required fields for the auctions API?
Copilot: [Retrieves endpoint details] The auctions endpoint requires...
ChatGPT supports remote MCP servers, allowing you to access Topsort’s API documentation during your conversations.
Open ChatGPT Settings
Navigate to chat.openai.com and click your profile icon in the bottom-left corner, then select Settings.
Access Connections
In the settings sidebar, click on Connections or Integrations (the exact menu name may vary).
Add MCP Server
Look for the option to add a new MCP server or integration. Click Add Connection or + New Integration.
Configure Topsort Server
Enter the following details:
Topsort API Documentation
https://api.docs.topsort.com/mcp
SSE
(Server-Sent Events)Save and Enable
Click Save or Connect, then make sure the integration is enabled/toggled on.
Start a new conversation and ask questions about the Topsort API:
You: “Using the Topsort API documentation, how do I implement sponsored listings?”
ChatGPT will query the MCP server and provide detailed implementation instructions based on the latest documentation.
You: “What authentication methods does the Topsort API support?”
ChatGPT will retrieve the authentication section from the API documentation.
You: “Show me a code example for creating a banner ad campaign”
ChatGPT will provide current code examples from the documentation.
Claude Desktop provides comprehensive local MCP support, making it ideal for development workflows.
Open Claude Desktop Settings
Navigate to Developer Tab
In the Settings window, click on the Developer tab in the left sidebar.
Edit MCP Configuration
Click the Edit Config button. This will open the configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
Add Topsort MCP Server
Add the following configuration to the mcpServers
object:
{ "mcpServers": { "topsort-api": { "type": "sse", "url": "https://api.docs.topsort.com/mcp", "description": "Topsort API Documentation" } }}
If you have existing MCP servers configured, add the topsort-api
entry to the existing mcpServers
object.
Save and Restart
Save the configuration file and completely quit and restart Claude Desktop.
Verify Connection
After restarting, you should see a server/tools indicator (🔨) in the bottom-right corner of the chat input. Click it to view available tools and verify that the Topsort server is connected.
Claude can now access Topsort’s API documentation in your conversations:
You: Help me integrate the Topsort auctions API into my e-commerce platform
Claude: [Accesses Topsort documentation] I'll help you integrate the auctions API...
Topsort’s MCP server works with any MCP-compatible client. Here are popular options:
Cursor is an AI-powered code editor with built-in MCP support.
Add to your Cursor settings (.cursor/config.json
or via Settings UI):
{ "mcp": { "servers": { "topsort": { "type": "sse", "url": "https://api.docs.topsort.com/mcp" } } }}
Windsurf is an agentic IDE with MCP support.
Configure in Windsurf settings or ~/.windsurf/mcp.json
:
{ "servers": { "topsort": { "type": "sse", "url": "https://api.docs.topsort.com/mcp" } }}
Continue is an open-source AI code assistant for VS Code and JetBrains.
Add to ~/.continue/config.json
:
{ "mcpServers": { "topsort": { "transport": { "type": "sse", "url": "https://api.docs.topsort.com/mcp" } } }}
Cline is an autonomous coding agent in VS Code.
Configure via the Cline extension settings or in ~/Documents/Cline/MCP/config.json
:
{ "topsort": { "type": "sse", "url": "https://api.docs.topsort.com/mcp" }}
Problem: MCP server not showing up or not connecting
Solutions:
https://api.docs.topsort.com/mcp
Problem: Server appears connected but doesn’t respond to queries
Solutions:
sse
(Server-Sent Events)Different clients store logs in different locations:
View
> Output
)macOS: ~/Library/Logs/Claude/mcp.log
Windows: %APPDATA%\Claude\logs\mcp.log
Linux: ~/.local/state/Claude/logs/mcp.log
Check the client’s documentation for log file locations. Most clients store logs in their application data directory.
Instead of constantly switching between your code editor and browser documentation:
You: How do I authenticate with the Topsort API?
AI: [Retrieves from MCP] Topsort uses API key authentication...
AI assistants with access to current documentation generate more accurate code:
You: Generate a function to run a banner auction
AI: [Uses latest API schema] Here's a function using the current auctions endpoint...
Quickly diagnose issues without leaving your development environment:
You: I'm getting a 400 error when creating a campaign
AI: [Checks error documentation] A 400 error typically indicates...
Explore the API interactively:
You: What ad formats does Topsort support?
AI: [Queries documentation] Topsort supports the following ad formats...
The Topsort MCP server provides the following capabilities:
The MCP server provides access to: