@enfyra/mcp-server 0.0.84 → 0.0.85
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 +4 -4
- package/package.json +1 -1
- package/src/lib/config-local.mjs +2 -4
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ npx @enfyra/mcp-server config
|
|
|
14
14
|
|
|
15
15
|
The config command writes project config for Codex, Claude Code, and Cursor. It preserves other MCP servers and replaces only the `enfyra` entry.
|
|
16
16
|
|
|
17
|
-
Interactive setup asks for
|
|
17
|
+
Interactive setup asks for your Enfyra app/admin URL, then guides you to the token page when needed and asks for `ENFYRA_API_TOKEN`.
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
# Non-interactive, all supported clients
|
|
@@ -142,7 +142,7 @@ npx @enfyra/mcp-server config [options]
|
|
|
142
142
|
|
|
143
143
|
| Option | Use |
|
|
144
144
|
|--------|-----|
|
|
145
|
-
| `--app-url` | Set the Enfyra app/admin URL
|
|
145
|
+
| `--app-url` | Set the Enfyra app/admin URL |
|
|
146
146
|
| `--api-token`, `-t` | Set `ENFYRA_API_TOKEN` |
|
|
147
147
|
| `--yes` | Non-interactive mode for CI/scripts |
|
|
148
148
|
| `--global` | Write global/user config instead of project config |
|
|
@@ -158,8 +158,8 @@ Without a target flag, interactive mode asks which client to configure. Non-inte
|
|
|
158
158
|
|
|
159
159
|
| Variable | Description | Default |
|
|
160
160
|
|----------|-------------|---------|
|
|
161
|
-
| `ENFYRA_APP_URL` | App/admin URL used by setup
|
|
162
|
-
| `ENFYRA_API_URL` | Runtime API base written into MCP client config |
|
|
161
|
+
| `ENFYRA_APP_URL` | App/admin URL used by setup | `http://localhost:3000` |
|
|
162
|
+
| `ENFYRA_API_URL` | Runtime API base written into MCP client config | Generated by setup |
|
|
163
163
|
| `ENFYRA_API_TOKEN` | Programmatic token from the Enfyra admin UI `/me` | Required |
|
|
164
164
|
|
|
165
165
|
For normal apps and demos, enter the app/admin URL such as `http://localhost:3000` or `https://demo.enfyra.io`. Treat the direct Enfyra backend host as private infrastructure unless you are debugging Enfyra core/server internals.
|
package/package.json
CHANGED
package/src/lib/config-local.mjs
CHANGED
|
@@ -85,7 +85,6 @@ ${style.bold('Client selection')}
|
|
|
85
85
|
|
|
86
86
|
${style.bold('Interactive mode')}
|
|
87
87
|
Choose Codex, Claude Code, Cursor, or all clients; then enter ENFYRA_APP_URL and ENFYRA_API_TOKEN.
|
|
88
|
-
The API base is inferred by appending /api to the app URL.
|
|
89
88
|
Existing Enfyra config and environment variables are used as defaults. Re-run anytime to update.
|
|
90
89
|
|
|
91
90
|
${style.bold('Examples')}
|
|
@@ -485,7 +484,7 @@ async function promptConfig(opts, existing) {
|
|
|
485
484
|
const defaultAppUrl = resolveDefaultAppUrl(opts, existing);
|
|
486
485
|
if (!appUrl) {
|
|
487
486
|
console.log(`${style.cyan('◆')} ${style.bold('Connect to Enfyra')}`);
|
|
488
|
-
console.log(`${style.dim('│')} Enter the Enfyra app URL
|
|
487
|
+
console.log(`${style.dim('│')} Enter the Enfyra app URL.`);
|
|
489
488
|
const line = (await q(`${style.dim('└')} ENFYRA_APP_URL ${style.dim(`[${defaultAppUrl}]`)}: `)).trim();
|
|
490
489
|
appUrl = normalizeAppUrl(line || defaultAppUrl);
|
|
491
490
|
}
|
|
@@ -497,8 +496,7 @@ async function promptConfig(opts, existing) {
|
|
|
497
496
|
const meUrl = deriveMeUrl(appUrl);
|
|
498
497
|
console.log('');
|
|
499
498
|
console.log(`${style.cyan('◆')} ${style.bold('API token')}`);
|
|
500
|
-
console.log(`${style.dim('│')} If you do not have a token yet,
|
|
501
|
-
console.log(`${style.dim('│')} In the Enfyra admin UI, open ${style.bold('/me')} and create/copy a programmatic API token.`);
|
|
499
|
+
console.log(`${style.dim('│')} If you do not have a token yet, create one here: ${style.cyan(meUrl)}`);
|
|
502
500
|
const line = (await q(`${style.dim('└')} ENFYRA_API_TOKEN${hint}: `)).trim();
|
|
503
501
|
apiToken = line !== '' ? line : defaultApiToken;
|
|
504
502
|
}
|