From 0e6abefc08ceda06b9ed5fc0551a6a462530b1a0 Mon Sep 17 00:00:00 2001 From: Elan Hasson <234704+ElanHasson@users.noreply.github.com> Date: Wed, 20 Aug 2025 23:54:03 -0400 Subject: [PATCH] docs: Add Cursor and Claude Code MCP configuration instructions - Add Cursor configuration for both Docker and dotnet tool installation - Add Claude Code configuration with platform-specific paths - Include CSX_ALLOWED_PATH environment variable examples for security - Reorganize MCP configuration section with Cursor and Claude Code first --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/README.md b/README.md index 13f70b4..68a5556 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,76 @@ The following namespaces are automatically available: ## MCP Configuration +### Cursor + +Add to your Cursor settings (`.cursor/mcp_settings.json` or via Settings UI): + +```json +{ + "mcpServers": { + "csharp-eval": { + "command": "docker", + "args": ["run", "-i", "--rm", "ghcr.io/infinityflowapp/csharp-mcp:latest"], + "env": { + "CSX_ALLOWED_PATH": "/scripts" + } + } + } +} +``` + +Or if installed as a dotnet tool: + +```json +{ + "mcpServers": { + "csharp-eval": { + "command": "infinityflow-csharp-eval", + "env": { + "CSX_ALLOWED_PATH": "${workspaceFolder}/scripts" + } + } + } +} +``` + +### Claude Code + +Add to your Claude Code configuration (`claude_desktop_config.json`): + +- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` +- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json` +- **Linux**: `~/.config/claude/claude_desktop_config.json` + +```json +{ + "mcpServers": { + "csharp-eval": { + "command": "docker", + "args": ["run", "-i", "--rm", "ghcr.io/infinityflowapp/csharp-mcp:latest"], + "env": { + "CSX_ALLOWED_PATH": "/scripts" + } + } + } +} +``` + +Or if installed as a dotnet tool: + +```json +{ + "mcpServers": { + "csharp-eval": { + "command": "infinityflow-csharp-eval", + "env": { + "CSX_ALLOWED_PATH": "/Users/your-username/scripts" + } + } + } +} +``` + ### VS Code Create `.vscode/mcp.json`: