@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 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 `ENFYRA_APP_URL` first, then asks for `ENFYRA_API_TOKEN`. The MCP API base is inferred as `<app>/api`, and the token page is inferred as `<app>/me`. For example, `https://demo.enfyra.io` becomes API base `https://demo.enfyra.io/api` and token page `https://demo.enfyra.io/me`.
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; setup writes `<app>/api` to MCP config |
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 to derive `ENFYRA_API_URL=<app>/api` and token page `<app>/me` | `http://localhost:3000` |
162
- | `ENFYRA_API_URL` | Runtime API base written into MCP client config | Derived from `ENFYRA_APP_URL` |
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enfyra/mcp-server",
3
- "version": "0.0.84",
3
+ "version": "0.0.85",
4
4
  "description": "MCP server for Enfyra - manage Enfyra instances from MCP-compatible coding tools",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -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. The API base will be inferred as ${style.bold('<app>/api')}.`);
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, open: ${style.cyan(meUrl)}`);
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
  }