Skip to main content

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: 

  1. Confirm you’re in the project directory (/mcp-for-api-documentation) : pwd
  2. Create the MCP config directory:mkdir -p .vscode
  3. Create an mcp.json file: touch .vscode/mcp.json
  4. Copy the JSON from the mcp.json code block, paste into .vscode/mcp.json and save: 
MCP JSON file
{
  "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

To start the MCP server: 

  1. Cmd + Shift + P 
  2. Type and select: MCP: List Servers
  3. Select jpm-pdp
  4. Select Start Server

To stop the MCP server:

  1. Cmd + Shift + P
  2. Type and select: MCP: List Servers
  3. Select jpm-pdp
  4. Select Stop Server

Start/stop the server from the terminal (alternative)

To run the server in the terminal: 

  1. uv run python -m jpmc.mcp_for_api_documentation.server
  2. To stop the MCP server: Ctrl + C

Using MCP tools in Copilot

To use MCP tools: 

  1. Start the MCP server
  2. Open GitHub Copilot Chat:
    Cmd + Shift + P
    Type and select: Chat: Open Chat
  3. In the Copilot chat panel, confirm 'Agent' mode is selected at the bottom of the panel. If not, select Agent.
  4. Run a test query in GitHub Copilot Chat using one of J.P. Morgan MCP tools. For example: search_documentation(‘online payments’, limit=5)