id: vscode-mcp-json

info:
  name: Visual Studio Code MCP Configuration ("mcp.json") Exposure
  author: DhiyaneshDk
  severity: low
  description: |
    Detected exposed VS Code MCP (Model Context Protocol) configuration files (mcp.json) which may contain sensitive information including API keys, server endpoints, authentication tokens, and tool configurations for AI assistants and language models.
  reference:
    - https://code.visualstudio.com/docs/copilot/chat/mcp-servers
    - https://modelcontextprotocol.io/
  metadata:
    verified: true
    max-request: 2
    shodan-query: html:"mcp.json"
  tags: exposure,vscode,config,mcp,ai

http:
  - method: GET
    path:
      - "{{BaseURL}}/mcp.json"
      - "{{BaseURL}}/.mcp.json"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"mcpServers": {'
          - '"args":'
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100d139e78b13eef8ccfaa38ef88d3b39f7bf4e9e0240846dc9145adce6eac22814022036009bf34fb3fa892f429e4cd218f1cbd8fbfc67cec26a37031a573454da0988:922c64590222798bb761d5b6d8e72950