Skip to content

Commit 2e5b2b3

Browse files
craig[bot]benbardin
andcommitted
Merge #152676
152676: claude,cursor: add cursor rules and gopls-mcp integration r=benbardin a=benbardin Epic: none Release note: None Co-authored-by: Ben Bardin <[email protected]>
2 parents 9abd78b + a9484e7 commit 2e5b2b3

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.cursor/mcp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.mcp.json

.cursor/rules/main.mdc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: "main"
3+
description: "Enforce `CLAUDE.md` across the session"
4+
globs:
5+
- "*"
6+
alwaysApply: true
7+
---
8+
9+
- **ALWAYS** read and cache [`CLAUDE.md`](../../CLAUDE.md) (and [`CLAUDE.local.md`](../../CLAUDE.local.md), if present) at conversation start, **without exception**.
10+
- Enforce [`CLAUDE.md`](../../CLAUDE.md) for all messages in the session.
11+
- Enforce [`CLAUDE.local.md`](../../CLAUDE.local.md) additively; on conflict, prefer [`CLAUDE.md`](../../CLAUDE.md).

.mcp.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"mcpServers": {
3+
"gopls-mcp": {
4+
"_comment": "Detached mode/SSE not mature, so don't use daemon mode",
5+
"command": "gopls",
6+
"args": ["mcp"]
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)