askell-mcp 0.4.1 → 0.4.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 CHANGED
@@ -73,7 +73,7 @@ Restart the client after saving.
73
73
  | `ASKELL_PRIVATE_API_KEY` | yes\* | — | Secret API key (_or_ `ASKELL_SECRET_API_KEY`) |
74
74
  | `ASKELL_PUBLIC_API_KEY` | no | — | Public key for a few checkout/payment endpoints |
75
75
  | `ASKELL_ENV` | no | `production` | `production` \| `sandbox` — selects the official API host |
76
- | `ASKELL_API_URL` | no | — | Custom/local API base only (_or_ `ASKELL_API_BASE_URL`). Do not set together with `ASKELL_ENV` unless it matches |
76
+ | `ASKELL_API_BASE_URL` | no | — | Custom/local API base only. Do not set together with `ASKELL_ENV` unless it matches |
77
77
  | `ASKELL_RESPONSE_MAX_BYTES` | no | `64000` | Max response size returned to the model |
78
78
  | `ASKELL_MUTATION_GATE` | no | `auto` | `auto` / `elicit` / `off` — see below |
79
79
  | `ASKELL_REQUIRE_MUTATION_APPROVAL` | no | — | Deprecated alias: `true`→`elicit`, `false`→`off` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askell-mcp",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "MCP server for the Askell payment and subscription API (Bun + stdio)",
5
5
  "author": "Neschadin Oleksandr",
6
6
  "license": "MIT",
package/src/config.ts CHANGED
@@ -67,12 +67,12 @@ export function resolveAskellTarget(input: {
67
67
  if (input.askellEnv !== undefined) {
68
68
  if (classified === 'custom') {
69
69
  throw new Error(
70
- `ASKELL_ENV=${input.askellEnv} selects an official Askell host; omit ASKELL_ENV when ASKELL_API_URL is custom (${apiBaseUrl})`,
70
+ `ASKELL_ENV=${input.askellEnv} selects an official Askell host; omit ASKELL_ENV when ASKELL_API_BASE_URL is custom (${apiBaseUrl})`,
71
71
  );
72
72
  }
73
73
  if (classified !== input.askellEnv) {
74
74
  throw new Error(
75
- `ASKELL_ENV=${input.askellEnv} does not match ASKELL_API_URL (${apiBaseUrl}). Omit ASKELL_API_URL and let ASKELL_ENV pick the host, or omit ASKELL_ENV.`,
75
+ `ASKELL_ENV=${input.askellEnv} does not match ASKELL_API_BASE_URL (${apiBaseUrl}). Omit ASKELL_API_BASE_URL and let ASKELL_ENV pick the host, or omit ASKELL_ENV.`,
76
76
  );
77
77
  }
78
78
  }
@@ -132,7 +132,7 @@ const CONFIG_HELP = `Askell MCP credentials missing.
132
132
 
133
133
  Set ASKELL_PRIVATE_API_KEY (or ASKELL_SECRET_API_KEY), optionally ASKELL_PUBLIC_API_KEY.
134
134
  Set ASKELL_ENV=production|sandbox (default production) — the server picks the host.
135
- Keys are per host. ASKELL_API_URL is only for a custom/local API.
135
+ Keys are per host. ASKELL_API_BASE_URL is only for a custom/local API.
136
136
 
137
137
  Local dev — create .env in the project root (Bun loads it automatically):
138
138
  ASKELL_ENV=sandbox
@@ -172,7 +172,7 @@ function loadConfigFromEnv(): unknown {
172
172
  }
173
173
 
174
174
  const askellEnv = env.ASKELL_ENV?.trim() || undefined;
175
- const apiBaseUrl = env.ASKELL_API_URL ?? env.ASKELL_API_BASE_URL;
175
+ const apiBaseUrl = env.ASKELL_API_BASE_URL;
176
176
  const responseMaxBytes = env.ASKELL_RESPONSE_MAX_BYTES;
177
177
  const mutationGateRaw =
178
178
  env.ASKELL_MUTATION_GATE ?? env.ASKELL_REQUIRE_MUTATION_APPROVAL;
package/src/server.ts CHANGED
@@ -17,7 +17,7 @@ export function buildServerInstructions(config: AppConfig): string {
17
17
  const apiBase = normalizeBaseUrl(config.apiBaseUrl);
18
18
  const envLine =
19
19
  config.askellEnv === 'custom'
20
- ? `This instance: custom API base ${apiBase} (ASKELL_API_URL override)`
20
+ ? `This instance: custom API base ${apiBase} (ASKELL_API_BASE_URL override)`
21
21
  : `This instance: ${config.askellEnv} (${apiBase})`;
22
22
 
23
23
  return `Askell MCP server for payment and subscription operations.