What is this MCP server?
This is a Model Context Protocol (MCP) server. It lets AI assistants — like GitHub Copilot, Claude, or Cursor — read and search your team's robot source code and FRC/WPILib documentation directly, without you having to paste snippets manually.
Once connected, your agent can look up constants, subsystem logic, autonomous routines, WPILib APIs, and vendor library patterns just by asking natural language questions.
Robot Code Context
Indexed Java source files — subsystems, commands, constants, and more.
WPILib Docs
Official FRC documentation.
Vendor Libraries
REV, CTRE, PathPlanner, PhotonVision snippets and config patterns your robot actually uses.
Available MCP Tools
The server exposes three tools that your agent can call automatically:
| Tool | What it does |
|---|---|
| list_frc_sources | Lists all indexed files grouped by directory. Use this first to discover what context is available. |
| search_frc_context | Full-text search across all robot code and docs. Returns ranked snippets with surrounding context. |
| get_frc_file | Reads a complete file or a specific line range. Perfect for examining exact code or configuration details. |
How to use in VS Code
VS Code supports MCP servers natively through GitHub Copilot's agent mode (VS Code 1.99+). Follow these steps:
-
Open (or create) your workspace MCP config
Create the file
.vscode/mcp.jsonin your project root, or open it if it already exists. This file tells VS Code which MCP servers to load. -
Add the frc-mcp-server MCP server entry
Paste the following into
.vscode/mcp.json:{ "servers": { "mcp-frc-server": { "type": "http", "url": "https://frc-mcp-server.vercel.app/mcp" } } }If you already have other servers in the file, add the
"frc-mcp-server"entry alongside them inside the"servers"object. -
Enable agent mode in Copilot Chat
Open the Copilot Chat panel (Ctrl+Alt+I) and switch the chat mode dropdown from Ask to Agent. The server will be listed under the Tools icon in the chat toolbar.
-
Verify the connection
In Agent mode, type the prompt below and confirm the agent calls
list_frc_sourcesand returns a file tree:List the available FRC context sources.
github.copilot.chat.mcp.servers.
How to prompt agents effectively
The agent will automatically decide when to call MCP tools based on your question. Here are proven prompting patterns that get the best results:
🔍 Discovery prompts
Start here when you first connect or want to explore what's available:
💡 Code question prompts
Ask about specific classes, constants, or subsystems:
✍️ Code generation prompts
Ask the agent to write new code that matches your team's existing style:
📖 Docs & reference prompts
Best practices
- Always use Agent mode (not Ask or Edit) so tools are called automatically.
- Mention "using the robot code context" or "using FRC context" to hint the agent to use MCP tools.
- For large files, ask the agent to search first, then read specific sections.
- If the agent doesn't use tools, explicitly ask: "Call list_frc_sources to see what's available."
FAQ
What is an MCP server?
MCP (Model Context Protocol) is an open standard developed by Anthropic that lets AI assistants connect to external tools, databases, and services in a structured way.
Think of it like a plugin system for AI agents. Instead of you copy-pasting code snippets into chat, an MCP server exposes tools the AI can call programmatically — searching files, reading documentation, querying databases, and more.
MCP is now supported by VS Code (Copilot), Claude Desktop, Cursor, Windsurf, and other AI coding tools. Any MCP-compatible agent can connect to any MCP server using a standard HTTP or stdio transport.
Why use an MCP server instead of pasting code into chat?
Pasting code manually is slow, error-prone, and limited by chat window size. An MCP server lets the agent search on demand — it only fetches the snippets relevant to your question, so responses stay focused and accurate.
It also means context is always up-to-date: when the robot code changes and the server is redeployed, every agent automatically sees the latest version.
Which AI tools support MCP?
Tools with MCP support (HTTP transport) include:
- VS Code with GitHub Copilot (v1.99+, Agent mode)
- Claude Desktop (Anthropic)
- Cursor
- Windsurf (Codeium)
- Any tool that implements the MCP client spec
The agent isn't calling MCP tools — what's wrong?
Common fixes:
- Make sure you're in Agent mode (not Ask or Edit) in Copilot Chat.
- Check that
.vscode/mcp.jsonis saved and the URL is correct. - Reload VS Code after changing the MCP config (Ctrl+Shift+P → Reload Window).
- Look for the Tools icon in the chat toolbar — the server should appear there.
- Try explicitly asking: "Use the frc-mcp-server MCP tools to list sources."