OutOfMemory Docs
MCP Setup

GitHub Copilot

Add Shot to GitHub Copilot Chat in VS Code.

Prerequisites

  • VS Code with GitHub Copilot extension installed
  • A paid GitHub Copilot subscription
  • A Shot API key (create one here)

Setup

  1. Open your project in VS Code
  2. Create or edit .vscode/mcp.json in your project root
  3. Add the following configuration:
{
  "servers": {
    "shot": {
      "type": "http",
      "url": "https://outofmemory-production.up.railway.app/api/mcp",
      "headers": {
        "Authorization": "Bearer smc_your-api-key-here"
      }
    }
  }
}
  1. Replace smc_your-api-key-here with your actual API key
  2. VS Code will detect the server and make tools available in Copilot Chat

Using in Copilot Chat

Open Copilot Chat in VS Code and ask questions that involve your team's knowledge. Copilot will automatically call Shot tools when relevant.

Example prompts:

  • "What do we know about the Acme Corp deal?"
  • "Search our team memory for the pricing strategy"
  • "Save this decision: we're offering a 20% discount for annual plans"

Sharing with your team

Commit .vscode/mcp.json to your repository so everyone on the team gets the same configuration. Use environment variables for the API key:

{
  "servers": {
    "shot": {
      "type": "http",
      "url": "https://outofmemory-production.up.railway.app/api/mcp",
      "headers": {
        "Authorization": "Bearer ${SMC_API_KEY}"
      }
    }
  }
}

Troubleshooting

  • Server not connecting → Check the MCP output panel in VS Code (View → Output → MCP)
  • Tools not available → Ensure your Copilot subscription includes MCP support
  • Auth errors → Verify your API key hasn't expired in the Shot dashboard
GitHub Copilot