@ainecto/mcp 0.1.4 → 0.2.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 CHANGED
@@ -1,10 +1,10 @@
1
- # @ainecto/mcp
1
+ # @ai-erd/mcp
2
2
 
3
- Ainecto MCP connector and first-party CLI.
3
+ AI-ERD MCP connector and first-party CLI.
4
4
 
5
5
  This package exposes two entry points:
6
6
 
7
- - `npx -y @ainecto/mcp` or `ainecto mcp`: raw stdio-to-HTTP JSON-RPC proxy for Ainecto MCP.
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://ainecto.com/mcp`
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 @ainecto/mcp
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", "@ainecto/mcp"]
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", "@ainecto/mcp", "--env", "dev"]
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 `@ainecto/mcp`. Registry publication requires the npm package version referenced by `server.json` to include a matching `mcpName` field in `package.json`.
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://ainecto.com/mcp` and `https://dev.ainecto.com/mcp`. Presentation metadata lives separately in `src/core/catalog/enrichments.ts`.
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.ainecto.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
 
@@ -84,9 +84,13 @@ import { URLSearchParams } from "url";
84
84
 
85
85
  // src/core/config/endpoints.ts
86
86
  var DEFAULT_ENDPOINTS = {
87
- prod: "https://ainecto.com/mcp",
88
- dev: "https://dev.ainecto.com/mcp"
87
+ prod: "https://ai-erd.com/mcp",
88
+ dev: "https://dev.ai-erd.com/mcp"
89
89
  };
90
+ var LEGACY_DEFAULT_ENDPOINTS = [
91
+ "https://ainecto.com/mcp",
92
+ "https://dev.ainecto.com/mcp"
93
+ ];
90
94
  function resolveEndpoint(input = {}) {
91
95
  const envVars = input.envVars ?? process.env;
92
96
  const env = input.env ?? "prod";
@@ -106,7 +110,7 @@ function normalizeEndpoint(endpoint) {
106
110
  }
107
111
  function isDefaultEndpoint(endpoint) {
108
112
  const normalized = normalizeEndpoint(endpoint);
109
- return Object.values(DEFAULT_ENDPOINTS).includes(normalized);
113
+ return Object.values(DEFAULT_ENDPOINTS).includes(normalized) || LEGACY_DEFAULT_ENDPOINTS.includes(normalized);
110
114
  }
111
115
  function assertTrustedEndpointUrl(value, label = "URL") {
112
116
  const url = typeof value === "string" ? new URL(value) : value;