Using as an MCP Server - dperussina/code-library GitHub Wiki

Using as an MCP Server

This repository can be integrated as an MCP (Multi-Code Provider) server in various development environments using the gitmcp.io service. This allows AI assistants within these tools (like Cursor, VSCode with specific extensions, etc.) to directly access, search, and reference the code snippets and documentation from this library.

Below are the configuration instructions for common tools:

Cursor: Update your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "code-library Docs": {
      "url": "https://gitmcp.io/dperussina/code-library"
    }
  }
}

Claude Desktop: Update your claude_desktop_config.json:

{
  "mcpServers": {
    "code-library Docs": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://gitmcp.io/dperussina/code-library"
      ]
    }
  }
}

Windsurf: Update your ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "code-library Docs": {
      "serverUrl": "https://gitmcp.io/dperussina/code-library"
    }
  }
}

VSCode: Update your .vscode/mcp.json (within your workspace):

{
  "servers": {
    "code-library Docs": {
      "type": "sse",
      "url": "https://gitmcp.io/dperussina/code-library"
    }
  }
}

Cline: Update your ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json:

{
  "mcpServers": {
    "code-library Docs": {
      "url": "https://gitmcp.io/dperussina/code-library",
      "disabled": false,
      "autoApprove": []
    }
  }
}

After adding the configuration, restart your editor or the relevant extension for the changes to take effect. You should then be able to query the "code-library Docs" MCP source.