Skip to main content
Glama
saravmani-kmu

Learn MCP Server

README.md
# Learn MCP Server

This project is a Model Context Protocol (MCP) server for learning and experimentation.

## Setup

1. Install dependencies:
   ```bash
   npm install
   ```

2. Build the project:
   ```bash
   npm run build
   ```

## Running

To run the server:
```bash
npm start
```

## Debugging with MCP Inspector

To run the server with the MCP Inspector for debugging:
```bash
npm run inspector:debug
```

### Manual Inspector Launch (No Auto-Browser)

If you encounter issues with the inspector automatically opening the browser (e.g., `spawn EPERM`), use the following PowerShell command to disable auto-open:

```powershell
$env:MCP_AUTO_OPEN_ENABLED="false"; npx @modelcontextprotocol/inspector node --inspect-brk dist/index.js
```

After running this, copy the URL displayed in the terminal (e.g., `http://localhost:6274/...`) and paste it into your browser.

## Configuration for Claude Desktop

To use this server with Claude Desktop, add the following to your `claude_desktop_config.json`:

### MacOS/Linux
```json
{
  "mcpServers": {
    "learn-mcp-server": {
      "command": "node",
      "args": [
        "/absolute/path/to/learn-vscode-mcp/dist/index.js"
      ]
    }
  }
}
```

### Windows
```json
{
  "mcpServers": {
    "learn-mcp-server": {
      "command": "node",
      "args": [
        "D:\\project_kyog\\git\\project_learn\\learn_vscode_mcp\\dist\\index.js"
      ]
    }
  }
}
```

Replace the path with the actual absolute path to your project's `dist/index.js` file.