kaax-mcp 0.1.1 → 0.1.2
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 +38 -67
- package/dist/index.js +1 -1
- package/package.json +3 -8
package/README.md
CHANGED
|
@@ -82,17 +82,29 @@ The full list:
|
|
|
82
82
|
- `kaax_organize_data` — audit and clean up tags
|
|
83
83
|
- `kaax_import_shapefile` — convert + upload .shp parcels
|
|
84
84
|
|
|
85
|
-
## Install
|
|
85
|
+
## Install (the one-liner)
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
|
-
|
|
89
|
-
cd Kaax-LandingPage/mcp
|
|
90
|
-
npm install
|
|
91
|
-
npm run build
|
|
88
|
+
npx -y kaax-mcp init
|
|
92
89
|
```
|
|
93
90
|
|
|
94
|
-
The
|
|
95
|
-
|
|
91
|
+
That's it. The installer auto-detects every MCP client you have installed
|
|
92
|
+
(Claude Desktop, Claude Code, Cursor, Windsurf), asks which ones to wire
|
|
93
|
+
Kaax into, and edits their config for you — non-destructively, preserving
|
|
94
|
+
every other MCP server you already had configured. A `.bak` is written
|
|
95
|
+
next to each file the first time it's touched.
|
|
96
|
+
|
|
97
|
+
After the installer finishes, **restart your MCP client** and try:
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
"Crea cuenta en Kaax y guíame paso a paso"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
For scripted / CI use, skip the prompts:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
npx -y kaax-mcp init --yes
|
|
107
|
+
```
|
|
96
108
|
|
|
97
109
|
## Configure
|
|
98
110
|
|
|
@@ -108,52 +120,30 @@ The build emits a runnable `dist/index.js` you can invoke directly via
|
|
|
108
120
|
binds it to the session. Save the key from the tool output so you don't
|
|
109
121
|
have to onboard again next time.
|
|
110
122
|
|
|
111
|
-
###
|
|
123
|
+
### Manual config (if you'd rather skip the installer)
|
|
112
124
|
|
|
113
|
-
|
|
114
|
-
macOS or `%APPDATA%\Claude\claude_desktop_config.json` on Windows:
|
|
125
|
+
Paste this block into your MCP client's config and restart:
|
|
115
126
|
|
|
116
127
|
```json
|
|
117
128
|
{
|
|
118
129
|
"mcpServers": {
|
|
119
130
|
"kaax": {
|
|
120
|
-
"command": "
|
|
121
|
-
"args": ["
|
|
131
|
+
"command": "npx",
|
|
132
|
+
"args": ["-y", "kaax-mcp"],
|
|
122
133
|
"env": {
|
|
123
|
-
"KAAX_API_KEY": "
|
|
134
|
+
"KAAX_API_KEY": "",
|
|
135
|
+
"KAAX_LOCALE": "es"
|
|
124
136
|
}
|
|
125
137
|
}
|
|
126
138
|
}
|
|
127
139
|
}
|
|
128
140
|
```
|
|
129
141
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
all projects):
|
|
136
|
-
|
|
137
|
-
```json
|
|
138
|
-
{
|
|
139
|
-
"mcpServers": {
|
|
140
|
-
"kaax": {
|
|
141
|
-
"command": "node",
|
|
142
|
-
"args": ["/absolute/path/to/Kaax-LandingPage/mcp/dist/index.js"],
|
|
143
|
-
"env": { "KAAX_API_KEY": "your_api_key_here" }
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
### Cursor
|
|
150
|
-
|
|
151
|
-
`Settings → MCP → Add new MCP server`. Use the same `command` / `args` /
|
|
152
|
-
`env` shape as above.
|
|
153
|
-
|
|
154
|
-
### Windsurf
|
|
155
|
-
|
|
156
|
-
`Settings → Cascade → MCP Servers → Add new`. Same payload.
|
|
142
|
+
Config file locations:
|
|
143
|
+
- **Claude Desktop**: `%APPDATA%\Claude\claude_desktop_config.json` (Windows) · `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
|
|
144
|
+
- **Claude Code**: `~/.claude.json` (global) or `.mcp.json` (project root)
|
|
145
|
+
- **Cursor**: `~/.cursor/mcp.json`
|
|
146
|
+
- **Windsurf**: `~/.codeium/windsurf/mcp_config.json`
|
|
157
147
|
|
|
158
148
|
### Zed
|
|
159
149
|
|
|
@@ -163,8 +153,8 @@ Add to `~/.config/zed/settings.json`:
|
|
|
163
153
|
{
|
|
164
154
|
"context_servers": {
|
|
165
155
|
"kaax": {
|
|
166
|
-
"command": { "path": "
|
|
167
|
-
"env": { "
|
|
156
|
+
"command": { "path": "npx", "args": ["-y", "kaax-mcp"] },
|
|
157
|
+
"env": { "KAAX_LOCALE": "es" }
|
|
168
158
|
}
|
|
169
159
|
}
|
|
170
160
|
}
|
|
@@ -229,30 +219,6 @@ or the short version below:
|
|
|
229
219
|
- Shapefile conversion is local file I/O — your .shp never leaves your
|
|
230
220
|
machine.
|
|
231
221
|
|
|
232
|
-
## Develop
|
|
233
|
-
|
|
234
|
-
```bash
|
|
235
|
-
npm run dev # tsx watch on src/index.ts
|
|
236
|
-
npm run build # tsc → dist/
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
Type-check only: `npx tsc --noEmit`.
|
|
240
|
-
|
|
241
|
-
## Architecture
|
|
242
|
-
|
|
243
|
-
```
|
|
244
|
-
mcp/src/
|
|
245
|
-
├── index.ts stdio bootstrap — wires tools, resources, prompts
|
|
246
|
-
├── client.ts HTTP wrapper + standalone onboarding helpers
|
|
247
|
-
├── tools.ts 19 callable tools
|
|
248
|
-
├── resources.ts 7 markdown docs served as MCP resources
|
|
249
|
-
├── prompts.ts 5 guided conversation starters
|
|
250
|
-
├── spatial.ts Haversine, KML centroid, cosine, density aggregation
|
|
251
|
-
├── convert.ts shapefile → KML in pure JS (no GDAL)
|
|
252
|
-
├── platform.ts openBrowser + streaming file download (no extra deps)
|
|
253
|
-
└── types.ts shared types for v0, v2 and landing shapes
|
|
254
|
-
```
|
|
255
|
-
|
|
256
222
|
## Performance & resource use
|
|
257
223
|
|
|
258
224
|
The MCP is engineered to stay light:
|
|
@@ -269,6 +235,11 @@ The MCP is engineered to stay light:
|
|
|
269
235
|
- **Detached child processes** — `openBrowser` spawns + `unref`s the
|
|
270
236
|
browser so the MCP exits cleanly even if you leave the browser open.
|
|
271
237
|
|
|
238
|
+
## Support
|
|
239
|
+
|
|
240
|
+
- Email: support@kaax-agritech.com
|
|
241
|
+
- Website: https://www.kaax-agritech.com
|
|
242
|
+
|
|
272
243
|
## License
|
|
273
244
|
|
|
274
|
-
MIT
|
|
245
|
+
MIT.
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import { buildResources } from "./resources.js";
|
|
|
30
30
|
import { buildPrompts } from "./prompts.js";
|
|
31
31
|
import { runInit } from "./init.js";
|
|
32
32
|
const SERVER_NAME = "kaax-mcp";
|
|
33
|
-
const SERVER_VERSION = "0.1.
|
|
33
|
+
const SERVER_VERSION = "0.1.2";
|
|
34
34
|
function bail(msg) {
|
|
35
35
|
// stderr only — MCP clients pipe stdout for protocol traffic.
|
|
36
36
|
process.stderr.write(`[${SERVER_NAME}] ${msg}\n`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kaax-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "MCP server for Kaax — one-liner installer (`npx -y kaax-mcp init`) that wires Kaax into Claude Desktop, Claude Code, Cursor and Windsurf. Onboards new users, queries analyses, suggests configurations, converts shapefiles to KML and guides downloads.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -32,14 +32,9 @@
|
|
|
32
32
|
],
|
|
33
33
|
"author": "Kaax · Ahau-x <support@kaax-agritech.com>",
|
|
34
34
|
"license": "MIT",
|
|
35
|
-
"homepage": "https://
|
|
36
|
-
"repository": {
|
|
37
|
-
"type": "git",
|
|
38
|
-
"url": "git+https://github.com/Ahau-x/Kaax-LandingPage.git",
|
|
39
|
-
"directory": "mcp"
|
|
40
|
-
},
|
|
35
|
+
"homepage": "https://www.kaax-agritech.com",
|
|
41
36
|
"bugs": {
|
|
42
|
-
"
|
|
37
|
+
"email": "support@kaax-agritech.com"
|
|
43
38
|
},
|
|
44
39
|
"engines": {
|
|
45
40
|
"node": ">=18.0.0"
|