Skip to content

Commit b71a115

Browse files
committed
fix(mcp): secure API key handling in Cursor config
- Move .cursor/mcp.json to gitignore (contains API keys) - Add .cursor/mcp.json.example as template for local setup - Users must copy example and add their own API key from .env The MCP client needs PATTERN_API_KEY to match the HTTP API server configured key for authentication to succeed.
1 parent 73ea1f4 commit b71a115

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
"effect-patterns": {
44
"command": "/Users/paul/Projects/Public/Effect-Patterns/packages/mcp-server/start-mcp.sh",
55
"env": {
6+
"PATTERN_API_KEY": "your-api-key-from-packages/mcp-server/.env",
7+
"LOCAL_API_KEY": "your-api-key-from-packages/mcp-server/.env",
68
"EFFECT_PATTERNS_API_URL": "http://localhost:3000",
7-
"NODE_ENV": "development"
9+
"NODE_ENV": "development",
10+
"MCP_ENV": "local"
811
}
912
}
1013
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ content/backups/
5151
content/published/skills/claude/
5252
content/published/skills/gemini/
5353
content/published/skills/openai/
54+
55+
# IDE local config with secrets
56+
.cursor/mcp.json

0 commit comments

Comments
 (0)