Integrate with GitHub Copilot
The MCP server is designed to work with MCP-compatible clients including GitHub Copilot in VS Code.
You can find client-specific setup instructions in the respective client providers’ documentation. However, we have provided complete setup instructions for GitHub Copilot
Configure MCP in VS Code
To configure VS Code MCP:
- Confirm you’re in the project directory (
/mcp-for-api-documentation) :pwd - Create the MCP config directory:
mkdir -p .vscode - Create an
mcp.jsonfile:touch .vscode/mcp.json - Copy the JSON from the mcp.json code block, paste into
.vscode/mcp.jsonand save:
MCP JSON file
Json
{
"servers": {
"jpm-pdp": {
"command": "uv",
"args": [
"run",
"python",
"-m",
"jpmc.mcp_for_api_documentation.server"
]
}
}
}Once saved, restart VS Code by pressing Cmd + Shift + P, then type and select: Developer: Reload Window
Start and stop the MCP server (recommended: VS Code)
To start the MCP server:
Cmd + Shift + P- Type and select:
MCP: List Servers - Select
jpm-pdp - Select
Start Server
To stop the MCP server:
Cmd + Shift + P- Type and select:
MCP: List Servers - Select jpm-pdp
- Select
Stop Server
Start/stop the server from the terminal (alternative)
To run the server in the terminal:
uv run python -m jpmc.mcp_for_api_documentation.server- To stop the MCP server:
Ctrl + C
Using MCP tools in Copilot
To use MCP tools:
- Start the MCP server
- Open GitHub Copilot Chat:
Cmd + Shift + P
Type and select:Chat: Open Chat - In the Copilot chat panel, confirm 'Agent' mode is selected at the bottom of the panel. If not, select Agent.
- Run a test query in GitHub Copilot Chat using one of J.P. Morgan MCP tools. For example:
search_documentation(‘online payments’, limit=5)