Learn MCP Server
This project is a Model Context Protocol (MCP) server for learning and experimentation.
Setup
-
Install dependencies:
npm install -
Build the project:
npm run build
Running
To run the server:
npm start
Debugging with MCP Inspector
To run the server with the MCP Inspector for debugging:
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:
$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
{
"mcpServers": {
"learn-mcp-server": {
"command": "node",
"args": [
"/absolute/path/to/learn-vscode-mcp/dist/index.js"
]
}
}
}
Windows
{
"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.
