@createsomething/ground-mcp 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +125 -12
- package/bin/ground-mcp +0 -0
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
# @createsomething/ground-mcp
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@createsomething/ground-mcp)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
3
6
|
Grounded claims for code. An MCP server that prevents AI hallucination in code analysis.
|
|
4
7
|
|
|
8
|
+
**[View Landing Page →](https://createsomething.agency/products/ground)**
|
|
9
|
+
|
|
5
10
|
## The Problem
|
|
6
11
|
|
|
7
12
|
AI agents are confident. Too confident.
|
|
@@ -19,15 +24,63 @@ Ground is an MCP server that:
|
|
|
19
24
|
- Requires verification before claims
|
|
20
25
|
- Blocks hallucinated analysis
|
|
21
26
|
|
|
22
|
-
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Quick Install
|
|
30
|
+
|
|
31
|
+
### Cursor (One-Click)
|
|
32
|
+
|
|
33
|
+
[**Install in Cursor →**](cursor://anysphere.cursor-deeplink/mcp/install?name=ground&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAY3JlYXRlc29tZXRoaW5nL2dyb3VuZC1tY3AiXX0%3D)
|
|
34
|
+
|
|
35
|
+
### Claude Desktop
|
|
36
|
+
|
|
37
|
+
Add to `claude_desktop_config.json`:
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"mcpServers": {
|
|
42
|
+
"ground": {
|
|
43
|
+
"command": "npx",
|
|
44
|
+
"args": ["@createsomething/ground-mcp"]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Windsurf
|
|
51
|
+
|
|
52
|
+
Settings → MCP → View raw config, add:
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"mcpServers": {
|
|
57
|
+
"ground": {
|
|
58
|
+
"command": "npx",
|
|
59
|
+
"args": ["@createsomething/ground-mcp"]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### VS Code + Copilot
|
|
66
|
+
|
|
67
|
+
1. Open Extensions panel
|
|
68
|
+
2. Filter by "MCP Server"
|
|
69
|
+
3. Search "ground"
|
|
70
|
+
|
|
71
|
+
### Codex CLI
|
|
23
72
|
|
|
24
73
|
```bash
|
|
25
|
-
|
|
74
|
+
codex mcp add ground --command "npx @createsomething/ground-mcp"
|
|
26
75
|
```
|
|
27
76
|
|
|
28
|
-
|
|
77
|
+
### npm (Global Install)
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npm install -g @createsomething/ground-mcp
|
|
81
|
+
```
|
|
29
82
|
|
|
30
|
-
|
|
83
|
+
Then add to your tool's MCP config:
|
|
31
84
|
|
|
32
85
|
```json
|
|
33
86
|
{
|
|
@@ -39,21 +92,57 @@ Add to `.cursor/mcp.json`:
|
|
|
39
92
|
}
|
|
40
93
|
```
|
|
41
94
|
|
|
42
|
-
Restart Cursor. Ground tools are now available.
|
|
43
|
-
|
|
44
95
|
## Available Tools
|
|
45
96
|
|
|
97
|
+
### Core Analysis
|
|
98
|
+
|
|
99
|
+
| Tool | What it does |
|
|
100
|
+
|------|--------------|
|
|
101
|
+
| `ground_compare` | Compare two files for similarity (0.0-1.0 score) |
|
|
102
|
+
| `ground_count_uses` | Count symbol uses; distinguishes runtime vs type-only usages |
|
|
103
|
+
| `ground_check_connections` | Check if module is connected (understands Cloudflare Workers) |
|
|
104
|
+
| `ground_find_duplicate_functions` | Find duplicates across AND within files; supports monorepos |
|
|
105
|
+
|
|
106
|
+
### Verified Claims (Audit Trail)
|
|
107
|
+
|
|
108
|
+
| Tool | What it does |
|
|
109
|
+
|------|--------------|
|
|
110
|
+
| `ground_claim_dead_code` | Claim code is dead — **blocked** until you've counted uses |
|
|
111
|
+
| `ground_claim_orphan` | Claim module is orphaned — **blocked** until you've checked connections |
|
|
112
|
+
|
|
113
|
+
### Discovery Tools
|
|
114
|
+
|
|
46
115
|
| Tool | What it does |
|
|
47
116
|
|------|--------------|
|
|
48
|
-
| `ground_compare` | Compare two files for similarity |
|
|
49
|
-
| `ground_count_uses` | Count symbol uses (distinguishes definitions vs actual uses) |
|
|
50
|
-
| `ground_check_connections` | Check if a module is connected (understands Workers) |
|
|
51
|
-
| `ground_find_duplicate_functions` | Find copied functions across files |
|
|
52
117
|
| `ground_find_orphans` | Find modules nothing imports |
|
|
53
118
|
| `ground_find_dead_exports` | Find exports never imported elsewhere |
|
|
54
119
|
| `ground_check_environment` | Detect Workers/Node.js API leakage |
|
|
55
|
-
| `
|
|
56
|
-
|
|
120
|
+
| `ground_suggest_fix` | Get suggestions for fixing duplications |
|
|
121
|
+
|
|
122
|
+
### Graph-Based Analysis (Fast Repo-Wide Scans)
|
|
123
|
+
|
|
124
|
+
| Tool | What it does |
|
|
125
|
+
|------|--------------|
|
|
126
|
+
| `ground_build_graph` | Build symbol graph for repo-wide analysis |
|
|
127
|
+
| `ground_query_dead` | Query graph for dead exports (filters framework conventions) |
|
|
128
|
+
|
|
129
|
+
### AI-Native Tools
|
|
130
|
+
|
|
131
|
+
| Tool | What it does |
|
|
132
|
+
|------|--------------|
|
|
133
|
+
| `ground_analyze` | Batch analysis: duplicates + dead exports + orphans + environment |
|
|
134
|
+
| `ground_diff` | Incremental analysis vs git baseline (only NEW issues) |
|
|
135
|
+
| `ground_verify_fix` | Verify a fix was applied correctly |
|
|
136
|
+
|
|
137
|
+
### Design System Analysis (v2.1)
|
|
138
|
+
|
|
139
|
+
| Tool | What it does |
|
|
140
|
+
|------|--------------|
|
|
141
|
+
| `ground_find_drift` | Find design token violations (hardcoded colors, spacing, etc.) |
|
|
142
|
+
| `ground_adoption_ratio` | Calculate token adoption percentage with health thresholds |
|
|
143
|
+
| `ground_suggest_pattern` | Suggest tokens to replace hardcoded values |
|
|
144
|
+
| `ground_mine_patterns` | Discover implicit patterns that should become tokens |
|
|
145
|
+
| `ground_explain` | AI-native traceability — explain why files are excluded |
|
|
57
146
|
|
|
58
147
|
## Usage Examples
|
|
59
148
|
|
|
@@ -71,6 +160,20 @@ Check if the old-utils module is still connected to anything
|
|
|
71
160
|
Run ground_analyze on packages/sdk to find dead code
|
|
72
161
|
```
|
|
73
162
|
|
|
163
|
+
```
|
|
164
|
+
What's the CSS token adoption ratio in packages/components?
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
Find design drift in my CSS files only (use extensions: "css")
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## What's New in 0.2.1
|
|
172
|
+
|
|
173
|
+
- **`ground_explain`** — AI-native context traceability. Explains why files are excluded from violation checks (e.g., video-rendering contexts, third-party CSS)
|
|
174
|
+
- **`ground_find_drift` extensions filter** — Analyze specific file types (e.g., `extensions: "css"` for CSS-only analysis)
|
|
175
|
+
- **Context system** — Configure intentional exclusions in `.ground.yml` with full audit trail
|
|
176
|
+
|
|
74
177
|
## Philosophy
|
|
75
178
|
|
|
76
179
|
Ground is based on a simple principle: **no claim without evidence**.
|
|
@@ -81,6 +184,16 @@ Ground is based on a simple principle: **no claim without evidence**.
|
|
|
81
184
|
|
|
82
185
|
This prevents AI hallucination by requiring computation before synthesis.
|
|
83
186
|
|
|
187
|
+
## Configuration
|
|
188
|
+
|
|
189
|
+
Ground loads `.ground.yml` from your project root for:
|
|
190
|
+
- Ignore patterns (functions, files, directories)
|
|
191
|
+
- Known drift exceptions with documented reasons
|
|
192
|
+
- Context declarations for intentional exclusions
|
|
193
|
+
- Similarity thresholds
|
|
194
|
+
|
|
195
|
+
See [Full Documentation](https://github.com/createsomethingtoday/create-something-monorepo/tree/main/packages/ground) for configuration reference.
|
|
196
|
+
|
|
84
197
|
## Links
|
|
85
198
|
|
|
86
199
|
- [Full Documentation](https://github.com/createsomethingtoday/create-something-monorepo/tree/main/packages/ground)
|
package/bin/ground-mcp
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@createsomething/ground-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Grounded claims for code. MCP server that prevents AI hallucination in code analysis.",
|
|
5
5
|
"author": "CREATE SOMETHING <hello@createsomething.io>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
"cursor"
|
|
27
27
|
],
|
|
28
28
|
"bin": {
|
|
29
|
-
"ground-mcp": "bin/ground-mcp"
|
|
30
|
-
"ground": "bin/ground"
|
|
29
|
+
"ground-mcp": "bin/ground-mcp"
|
|
31
30
|
},
|
|
32
31
|
"scripts": {
|
|
33
32
|
"postinstall": "node install.js"
|