portkey-admin-mcp 0.16.1 → 0.16.3

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/COMPATIBILITY.md CHANGED
@@ -5,11 +5,11 @@ protocol revisions are separate compatibility boundaries.
5
5
 
6
6
  ## Release lines
7
7
 
8
- | Package release | MCP SDK | MCP protocol | Support and behavior |
9
- | --- | --- | --- | --- |
10
- | 0.16.0 | server/client 2.4.0, Node adapter 2.1.2 (exact pins) | Native `2026-07-28` plus older clients on the same endpoint | Current release, 194 tools across 22 domains, Node.js 24+, also tested on Node 26, which the Docker image runs. HTTP session and replay stores are retired; obsolete settings warn and are ignored. First warnings and ignored settings start in 0.15.0; session/replay behavior is removed in that release. |
11
- | 0.15.2 | server/client 2.4.0, Node adapter 2.1.2 (exact pins) | Native `2026-07-28` plus older clients on the same endpoint | Previous line, 194 tools across 22 domains, Node.js 24+. HTTP session and replay stores are retired; obsolete settings warn and are ignored. First warnings and ignored settings start in 0.15.0; session/replay behavior is removed in that release. |
12
- | 0.13.0 | v1; dependency floor 1.31.0 | Latest supported revision: `2025-11-25` | Historical release, 184 tools across 20 domains. Upgrade to the latest minor for security fixes. |
8
+ | Package release | MCP SDK | MCP protocol | Support and behavior |
9
+ | --------------- | ---------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
10
+ | 0.16.3 | server/client 2.4.0, Node adapter 2.1.2 (exact pins) | Native `2026-07-28` plus older clients on the same endpoint | Current release, 194 tools across 22 domains, Node.js 24+, also tested on Node 26, which the Docker image runs. HTTP session and replay stores are retired; obsolete settings warn and are ignored. First warnings and ignored settings start in 0.15.0; session/replay behavior is removed in that release. |
11
+ | 0.15.2 | server/client 2.4.0, Node adapter 2.1.2 (exact pins) | Native `2026-07-28` plus older clients on the same endpoint | Previous line, 194 tools across 22 domains, Node.js 24+. HTTP session and replay stores are retired; obsolete settings warn and are ignored. First warnings and ignored settings start in 0.15.0; session/replay behavior is removed in that release. |
12
+ | 0.13.0 | v1; dependency floor 1.31.0 | Latest supported revision: `2025-11-25` | Historical release, 184 tools across 20 domains. Upgrade to the latest minor for security fixes. |
13
13
 
14
14
  Node.js 24 is the supported floor (`engines.node` is `>=24`). The main CI checks and the release build run on Node 24. Node 26 is also tested in CI, and the Docker image runs Node 26 from 0.16.0.
15
15
 
@@ -30,16 +30,16 @@ session/replay behavior is removed. There was no intermediate warning-only
30
30
  release. Obsolete names remain recognized for warnings; this does not retain
31
31
  their former functionality. 0.14.x is unchanged.
32
32
 
33
- | Setting or behavior | 0.14.x | 0.15.0 behavior | First warning / ignored / removal release |
34
- | --- | --- | --- | --- |
35
- | `MCP_SESSION_MODE`, `MCP_SESSION_TIMEOUT` | Active; stateful mode is the default | Ignored with a warning; older clients use stateless requests | 0.15.0 / 0.15.0 / 0.15.0 |
36
- | `MCP_EVENT_STORE`, `MCP_EVENT_TTL_SECONDS`, `MCP_EVENT_STORE_MAX_EVENTS`, `MCP_EVENT_STORE_MAX_BYTES`, `MCP_EVENT_STORE_COMMAND_TIMEOUT_MS` | Active replay configuration | Ignored with a warning; authenticated GET/DELETE return 405 (auth and Origin checks still apply first: 401 without credentials when HTTP authentication is enabled, meaning `MCP_AUTH_MODE` other than `none`; 403 for a disallowed Origin) | 0.15.0 / 0.15.0 / 0.15.0 |
37
- | `MCP_EVENT_ENCRYPTION_KEY`, `MCP_REDIS_KEY_PREFIX` | Active Redis replay configuration | Ignored with a warning | 0.15.0 / 0.15.0 / 0.15.0 |
38
- | HTTP GET stream, `Last-Event-ID` recovery, session identifiers | Active under the configured HTTP mode | No session IDs are returned; authenticated GET/DELETE, including legacy session or `Last-Event-ID` headers, return 405. Unauthenticated requests get 401 when HTTP authentication is enabled (`MCP_AUTH_MODE` other than `none`), and a disallowed Origin gets 403 | 0.15.0 / 0.15.0 / 0.15.0 |
39
- | `RATE_LIMIT_*` | Active rate-limit configuration | Retained, including shared Redis limiting | No removal planned |
40
- | `RATE_LIMIT_REDIS_URL`, `MCP_REDIS_URL`, `REDIS_URL` | Rate limiter uses these URL sources in that order; replay uses the latter two | Documented Redis connection path for rate limiting is preserved now that replay is retired | No removal assigned |
41
- | `MCP_MAX_SESSIONS` | Bounds stateful sessions or active stateless request handlers | Retain the stateless concurrency bound | No removal planned |
42
- | `MCP_TOOL_DOMAINS`, `CORS_ORIGIN` | Supported fallbacks for `PORTKEY_TOOL_DOMAINS`, `ALLOWED_ORIGINS` | No change assigned | No removal planned |
33
+ | Setting or behavior | 0.14.x | 0.15.0 behavior | First warning / ignored / removal release |
34
+ | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------- |
35
+ | `MCP_SESSION_MODE`, `MCP_SESSION_TIMEOUT` | Active; stateful mode is the default | Ignored with a warning; older clients use stateless requests | 0.15.0 / 0.15.0 / 0.15.0 |
36
+ | `MCP_EVENT_STORE`, `MCP_EVENT_TTL_SECONDS`, `MCP_EVENT_STORE_MAX_EVENTS`, `MCP_EVENT_STORE_MAX_BYTES`, `MCP_EVENT_STORE_COMMAND_TIMEOUT_MS` | Active replay configuration | Ignored with a warning; authenticated GET/DELETE return 405 (auth and Origin checks still apply first: 401 without credentials when HTTP authentication is enabled, meaning `MCP_AUTH_MODE` other than `none`; 403 for a disallowed Origin) | 0.15.0 / 0.15.0 / 0.15.0 |
37
+ | `MCP_EVENT_ENCRYPTION_KEY`, `MCP_REDIS_KEY_PREFIX` | Active Redis replay configuration | Ignored with a warning | 0.15.0 / 0.15.0 / 0.15.0 |
38
+ | HTTP GET stream, `Last-Event-ID` recovery, session identifiers | Active under the configured HTTP mode | No session IDs are returned; authenticated GET/DELETE, including legacy session or `Last-Event-ID` headers, return 405. Unauthenticated requests get 401 when HTTP authentication is enabled (`MCP_AUTH_MODE` other than `none`), and a disallowed Origin gets 403 | 0.15.0 / 0.15.0 / 0.15.0 |
39
+ | `RATE_LIMIT_*` | Active rate-limit configuration | Retained, including shared Redis limiting | No removal planned |
40
+ | `RATE_LIMIT_REDIS_URL`, `MCP_REDIS_URL`, `REDIS_URL` | Rate limiter uses these URL sources in that order; replay uses the latter two | Documented Redis connection path for rate limiting is preserved now that replay is retired | No removal assigned |
41
+ | `MCP_MAX_SESSIONS` | Bounds stateful sessions or active stateless request handlers | Retain the stateless concurrency bound | No removal planned |
42
+ | `MCP_TOOL_DOMAINS`, `CORS_ORIGIN` | Supported fallbacks for `PORTKEY_TOOL_DOMAINS`, `ALLOWED_ORIGINS` | No change assigned | No removal planned |
43
43
 
44
44
  Redis rate limiting and Redis replay are separate features. Retiring the replay
45
45
  store does not remove the need for a shared rate limiter in multi-instance or
package/ENDPOINTS.md CHANGED
@@ -138,9 +138,11 @@ Routes:
138
138
 
139
139
  - GET/POST `/configs`; GET/PUT/DELETE `/configs/{slug}`; GET `/configs/{slug}/versions`
140
140
 
141
+ Portkey currently returns the full list from `GET /configs` and ignores `current_page` and `page_size`. `list_configs` keeps those inputs and does not slice client-side.
142
+
141
143
  | Tool | Selection guidance and result |
142
144
  |---|---|
143
- | `list_configs` | List configs in the org with id, slug, name, status, workspace, and timestamps. Use this summary view to find a slug; use get_config for the full routing, cache, retry, and target settings before updating or deleting. |
145
+ | `list_configs` | List configs in the org with id, slug, name, status, workspace, and timestamps. Use this summary view to find a slug; use get_config for the full routing, cache, retry, and target settings before updating or deleting. Portkey currently returns the full list and ignores current_page and page_size. |
144
146
  | `get_config` | Get one config by slug and return its routing, cache, retry, and target settings. Requires a known slug; use list_configs to discover one before editing. |
145
147
  | `create_config` | Create a config that defines routing, cache, retry, and targets for requests; use update_config to modify an existing one and list_config_versions for history. At least one setting is required, new configs become active immediately once referenced by a key or prompt, and the call returns the new id and version_id. |
146
148
  | `update_config` | Update a config by slug; every call creates a new config version rather than overwriting, so earlier versions stay recoverable via list_config_versions. Only provided fields change: name, status, and all routing/cache/retry settings (cache_mode, cache_max_age, retry_attempts, retry_on_status_codes, strategy_mode, targets) are editable, while the slug stays fixed. Changes apply immediately to every API key and prompt referencing the config. Returns the update acknowledgement and new version_id. |
package/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
  <a href="https://securityscorecards.dev/viewer/?uri=github.com/CodesWhat/portkey-admin-mcp"><img src="https://img.shields.io/ossf-scorecard/github.com/CodesWhat/portkey-admin-mcp?label=openssf+scorecard&style=flat" alt="OpenSSF Scorecard"></a>
20
20
  <a href="https://www.bestpractices.dev/projects/14031"><img src="https://www.bestpractices.dev/projects/14031/badge" alt="OpenSSF Best Practices"></a>
21
21
  <a href="https://qlty.sh/gh/CodesWhat/projects/portkey-admin-mcp"><img src="https://qlty.sh/gh/CodesWhat/projects/portkey-admin-mcp/maintainability.svg" alt="Maintainability"></a>
22
- <a href="https://qlty.sh/gh/CodesWhat/projects/portkey-admin-mcp"><img src="https://qlty.sh/gh/CodesWhat/projects/portkey-admin-mcp/coverage.svg" alt="Code Coverage"></a>
22
+ <a href="https://codecov.io/gh/CodesWhat/portkey-admin-mcp"><img src="https://codecov.io/gh/CodesWhat/portkey-admin-mcp/graph/badge.svg" alt="Code Coverage"></a>
23
23
  </p>
24
24
 
25
25
  <p align="center">
@@ -48,6 +48,7 @@
48
48
  - [Development](#development)
49
49
  - [Roadmap](#roadmap)
50
50
  - [Community](#community)
51
+ - [Star History](#star-history)
51
52
  - [Built With](#built-with)
52
53
  - [Contributing](https://github.com/CodesWhat/portkey-admin-mcp/blob/main/CONTRIBUTING.md)
53
54
  - [Governance](https://github.com/CodesWhat/portkey-admin-mcp/blob/main/GOVERNANCE.md)
@@ -400,9 +401,9 @@ line, branch, and function coverage.
400
401
  The [CI workflow](https://github.com/CodesWhat/portkey-admin-mcp/actions/workflows/ci.yml)
401
402
  also runs the standalone Qlty CLI and publishes `quality-reports` artifacts for
402
403
  each analyzed commit, including lint/security results, duplication, complexity,
403
- and metrics. The existing Qlty maintainability and coverage badges remain
404
- Cloud-generated; local analysis does not update those badges. Coverage uploads
405
- and Cloud analysis still consume Qlty analysis minutes.
404
+ and metrics. The Qlty maintainability badge remains Cloud-generated; local
405
+ analysis does not update it. Coverage is reported through Codecov, not Qlty,
406
+ and the Coverage workflow uploads it on every PR and on pushes to `main` and `codex/**`.
406
407
 
407
408
  `npm run dev:http` now requires `MCP_AUTH_MODE=bearer` or `MCP_AUTH_MODE=clerk` by default. For deliberate local-only unauthenticated testing, set `MCP_ALLOW_UNAUTHENTICATED_HTTP=true`.
408
409
 
@@ -431,6 +432,18 @@ The maintained package, registry, marketplace, and directory records are listed
431
432
  in [Distribution and directories](./docs/DISTRIBUTION.md). Treat the generated
432
433
  tool catalog in this repository as authoritative when a third-party index lags.
433
434
 
435
+ <hr>
436
+
437
+ <h2 align="center" id="star-history">Star History</h2>
438
+
439
+ <a href="https://www.star-history.com/#CodesWhat/portkey-admin-mcp&type=date">
440
+ <picture>
441
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=CodesWhat/portkey-admin-mcp&type=date&legend=top-left&theme=dark" />
442
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=CodesWhat/portkey-admin-mcp&type=date&legend=top-left" />
443
+ <img alt="Star History chart for CodesWhat/portkey-admin-mcp" src="https://api.star-history.com/chart?repos=CodesWhat/portkey-admin-mcp&type=date&legend=top-left" />
444
+ </picture>
445
+ </a>
446
+
434
447
  ---
435
448
 
436
449
  <div align="center">
package/build/index.js CHANGED
@@ -1196,7 +1196,8 @@ var HealthService = class extends BaseService {
1196
1196
  const latency_ms = Date.now() - startTime;
1197
1197
  const errorMessage = error instanceof Error ? error.message : "Unknown error";
1198
1198
  const healthError = new Error(
1199
- `Health check failed: ${errorMessage} (${latency_ms}ms)`
1199
+ `Health check failed: ${errorMessage} (${latency_ms}ms)`,
1200
+ { cause: error }
1200
1201
  );
1201
1202
  this.cachedFailure = {
1202
1203
  error: healthError,
@@ -3398,7 +3399,8 @@ function registerCollectionsTools(server, service) {
3398
3399
  inputSchema: COLLECTIONS_TOOL_SCHEMAS.listCollections
3399
3400
  },
3400
3401
  async (params) => {
3401
- const collections = await service.collections.listCollections(params);
3402
+ const effectiveParams = params.page_size !== void 0 && params.current_page === void 0 ? { ...params, current_page: 0 } : params;
3403
+ const collections = await service.collections.listCollections(effectiveParams);
3402
3404
  return jsonResult({
3403
3405
  total: collections.total,
3404
3406
  collections: collections.data.map((collection) => ({
@@ -3570,7 +3572,7 @@ function registerConfigsTools(server, service) {
3570
3572
  server.registerTool(
3571
3573
  "list_configs",
3572
3574
  {
3573
- description: "List configs in the org with id, slug, name, status, workspace, and timestamps. Use this summary view to find a slug; use get_config for the full routing, cache, retry, and target settings before updating or deleting.",
3575
+ description: "List configs in the org with id, slug, name, status, workspace, and timestamps. Use this summary view to find a slug; use get_config for the full routing, cache, retry, and target settings before updating or deleting. Portkey currently returns the full list and ignores current_page and page_size.",
3574
3576
  inputSchema: CONFIGS_TOOL_SCHEMAS.listConfigs
3575
3577
  },
3576
3578
  async (params) => {
package/build/server.js CHANGED
@@ -1209,7 +1209,8 @@ var HealthService = class extends BaseService {
1209
1209
  const latency_ms = Date.now() - startTime;
1210
1210
  const errorMessage = error instanceof Error ? error.message : "Unknown error";
1211
1211
  const healthError = new Error(
1212
- `Health check failed: ${errorMessage} (${latency_ms}ms)`
1212
+ `Health check failed: ${errorMessage} (${latency_ms}ms)`,
1213
+ { cause: error }
1213
1214
  );
1214
1215
  this.cachedFailure = {
1215
1216
  error: healthError,
@@ -3411,7 +3412,8 @@ function registerCollectionsTools(server, service) {
3411
3412
  inputSchema: COLLECTIONS_TOOL_SCHEMAS.listCollections
3412
3413
  },
3413
3414
  async (params) => {
3414
- const collections = await service.collections.listCollections(params);
3415
+ const effectiveParams = params.page_size !== void 0 && params.current_page === void 0 ? { ...params, current_page: 0 } : params;
3416
+ const collections = await service.collections.listCollections(effectiveParams);
3415
3417
  return jsonResult({
3416
3418
  total: collections.total,
3417
3419
  collections: collections.data.map((collection) => ({
@@ -3583,7 +3585,7 @@ function registerConfigsTools(server, service) {
3583
3585
  server.registerTool(
3584
3586
  "list_configs",
3585
3587
  {
3586
- description: "List configs in the org with id, slug, name, status, workspace, and timestamps. Use this summary view to find a slug; use get_config for the full routing, cache, retry, and target settings before updating or deleting.",
3588
+ description: "List configs in the org with id, slug, name, status, workspace, and timestamps. Use this summary view to find a slug; use get_config for the full routing, cache, retry, and target settings before updating or deleting. Portkey currently returns the full list and ignores current_page and page_size.",
3587
3589
  inputSchema: CONFIGS_TOOL_SCHEMAS.listConfigs
3588
3590
  },
3589
3591
  async (params) => {
@@ -71,7 +71,7 @@ open and awaiting maintainer review as of 2026-10-16. Its `source.commit` is the
71
71
  release pin; refresh that pin, the PR release description, and discovery evidence
72
72
  after publication. It is not listed until Docker merges it and the catalog is live.
73
73
 
74
- [Smithery](https://smithery.ai/docs/build/publish) is deferred. Its current
74
+ [Smithery](https://smithery.ai/) is deferred. Its current
75
75
  publishing paths expect a public Streamable HTTP endpoint or an MCPB bundle for a
76
76
  local server. This project intentionally supports npm-based stdio and self-hosted
77
77
  HTTP, and does not publish either Smithery artifact today.
package/package.json CHANGED
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "name": "portkey-admin-mcp",
64
64
  "mcpName": "io.github.CodesWhat/portkey-admin-mcp",
65
- "version": "0.16.1",
65
+ "version": "0.16.3",
66
66
  "main": "build/index.js",
67
67
  "keywords": [
68
68
  "mcp",
@@ -91,13 +91,13 @@
91
91
  "url": "https://github.com/CodesWhat/portkey-admin-mcp/issues"
92
92
  },
93
93
  "devDependencies": {
94
- "@biomejs/biome": "2.5.15",
94
+ "@biomejs/biome": "2.6.3",
95
95
  "@types/cors": "2.8.19",
96
96
  "@types/express": "5.0.6",
97
97
  "@types/node": "24.19.2",
98
- "dotenv": "18.0.8",
98
+ "dotenv": "18.0.9",
99
99
  "esbuild": "0.28.2",
100
- "knip": "6.42.0",
100
+ "knip": "6.43.0",
101
101
  "lefthook": "2.2.2",
102
102
  "tsx": "4.23.15",
103
103
  "typescript": "7.0.2",