@ainecto/mcp 0.1.4 → 0.3.0
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 +9 -9
- package/dist/bin/ainecto.js +2002 -157
- package/dist/bin/ainecto.js.map +1 -1
- package/dist/bin/mcp.js +66 -19
- package/dist/bin/mcp.js.map +1 -1
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @ai-erd/mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
AI-ERD MCP connector and first-party CLI.
|
|
4
4
|
|
|
5
5
|
This package exposes two entry points:
|
|
6
6
|
|
|
7
|
-
- `npx -y @
|
|
7
|
+
- `npx -y @ai-erd/mcp` or `ainecto mcp`: raw stdio-to-HTTP JSON-RPC proxy for AI-ERD MCP.
|
|
8
8
|
- `ainecto <command>`: human CLI for auth and low-level tool calls.
|
|
9
9
|
|
|
10
10
|
Phase 1 keeps the connector as a raw proxy. File, stdin, and inline JSON parsing are only available in first-party CLI commands.
|
|
@@ -41,14 +41,14 @@ Endpoint resolution priority:
|
|
|
41
41
|
1. `--endpoint <url>`
|
|
42
42
|
2. `AINECTO_MCP_ENDPOINT`
|
|
43
43
|
3. `--env dev`
|
|
44
|
-
4. production default, `https://
|
|
44
|
+
4. production default, `https://ai-erd.com/mcp`
|
|
45
45
|
|
|
46
46
|
Endpoint URLs must use `https:`. Plain `http:` is accepted only for localhost loopback targets such as `127.0.0.1`. When `AINECTO_TOKEN` is set, the CLI only sends it to the default prod/dev endpoints unless `AINECTO_ALLOW_CUSTOM_ENDPOINT_TOKEN=1` is set for an explicitly trusted custom endpoint.
|
|
47
47
|
|
|
48
48
|
## Connector Mode
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
npx -y @
|
|
51
|
+
npx -y @ai-erd/mcp
|
|
52
52
|
ainecto mcp --env dev
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -63,7 +63,7 @@ Use the direct package configuration until the server is published to the offici
|
|
|
63
63
|
"mcpServers": {
|
|
64
64
|
"ainecto": {
|
|
65
65
|
"command": "npx",
|
|
66
|
-
"args": ["-y", "@
|
|
66
|
+
"args": ["-y", "@ai-erd/mcp"]
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -76,13 +76,13 @@ For a non-production endpoint, pass CLI flags through the package args:
|
|
|
76
76
|
"mcpServers": {
|
|
77
77
|
"ainecto-dev": {
|
|
78
78
|
"command": "npx",
|
|
79
|
-
"args": ["-y", "@
|
|
79
|
+
"args": ["-y", "@ai-erd/mcp", "--env", "dev"]
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
The planned official Registry server name is `io.github.codelives/ainecto`, backed by the public npm package `@
|
|
85
|
+
The planned official Registry server name is `io.github.codelives/ainecto`, backed by the public npm package `@ai-erd/mcp`. Registry publication requires the npm package version referenced by `server.json` to include a matching `mcpName` field in `package.json`.
|
|
86
86
|
|
|
87
87
|
## Catalog Sync
|
|
88
88
|
|
|
@@ -94,7 +94,7 @@ AINECTO_CATALOG_SYNC_TOKEN=... npm run sync:tools -- --env prod --check
|
|
|
94
94
|
AINECTO_CATALOG_SYNC_TOKEN=... npm run sync:tools -- --env dev --check
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
The checked-in generated catalogs are deterministic output from `tools/list`. The prod and dev catalogs are live-synced snapshots from `https://
|
|
97
|
+
The checked-in generated catalogs are deterministic output from `tools/list`. The prod and dev catalogs are live-synced snapshots from `https://ai-erd.com/mcp` and `https://dev.ai-erd.com/mcp`. Presentation metadata lives separately in `src/core/catalog/enrichments.ts`.
|
|
98
98
|
|
|
99
99
|
`ainecto tools catalog` prints the local generated catalog. Rerun authenticated `sync:tools` when prod or dev `tools/list` changes.
|
|
100
100
|
|