MCP Server Installation
Switchyard documentation includes an MCP (Model Context Protocol) server that enables AI-powered assistance directly in your IDE. This allows Claude, Cursor, and other AI tools to access Switchyard documentation context when helping you code.What is MCP?
MCP (Model Context Protocol) is a standard for connecting AI assistants to external data sources. With the Switchyard MCP server, your AI coding assistant can:- Answer questions about Switchyard APIs
- Provide context-aware code suggestions
- Help debug issues with relevant documentation
- Explain order flows, authentication, and architecture
Installation
Cursor IDE
1
Open Cursor Settings
Go to Cursor Settings → Features → MCP Servers
2
Add MCP Server
Click Add MCP Server and enter the following URL:
3
Verify Connection
The server should show as connected. You can now ask Claude questions about Switchyard in your Cursor chat.
VS Code
1
Install MCP Extension
Install an MCP-compatible extension from the VS Code marketplace
2
Configure Server
Add the Switchyard MCP server URL to your extension settings:
3
Restart VS Code
Restart your IDE to activate the connection
Usage Examples
Once connected, you can ask your AI assistant questions like:API Questions
“How do I authenticate with the Switchyard Scanner API?”
“What endpoints are available for inventory management?”
Architecture Questions
“Explain the order flow in Switchyard”
“What’s the difference between sweeps and picking?”
Code Generation
“Write a function to look up a product by barcode using the Scanner API”
“Create a TypeScript client for the Switchyard Admin API”
Troubleshooting
Connection Failed
If the MCP server fails to connect:- Verify you have internet access
- Check that
https://docs.switchyard.runis accessible - Restart your IDE
- Try removing and re-adding the server
Outdated Context
The MCP server automatically syncs with the latest documentation. If you’re getting outdated information:- Disconnect and reconnect the MCP server
- Clear your IDE’s MCP cache if available
- Check if there are recent documentation updates