portkey-admin-mcp 0.16.5 → 0.16.6
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 +2 -0
- package/build/index.js +12 -4
- package/build/server.js +12 -4
- package/docs/DISTRIBUTION.md +30 -8
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
**The [Portkey](https://portkey.ai/) Admin API as an MCP server — 194 tools across prompts, configs, keys, analytics, governance, deployments, and more.**
|
|
8
8
|
|
|
9
|
+
Website: [portkey.codeswhat.com](https://portkey.codeswhat.com/). Docs: [portkey.codeswhat.com/docs](https://portkey.codeswhat.com/docs/).
|
|
10
|
+
|
|
9
11
|
</div>
|
|
10
12
|
|
|
11
13
|
<p align="center">
|
package/build/index.js
CHANGED
|
@@ -1807,6 +1807,7 @@ var PartialsService = class extends BaseService {
|
|
|
1807
1807
|
|
|
1808
1808
|
// src/services/prompts.service.ts
|
|
1809
1809
|
import { isDeepStrictEqual } from "node:util";
|
|
1810
|
+
var PROMOTE_INCOMPLETE_SOURCE_MESSAGE = "Cannot promote prompt: source version needs a string, a model (model, ai_model_id or finetune_id) and a virtual_key (or a virtual_key override)";
|
|
1810
1811
|
var PromptsService = class extends BaseService {
|
|
1811
1812
|
async createPrompt(data) {
|
|
1812
1813
|
const { is_raw_template, ...rest } = data;
|
|
@@ -2092,9 +2093,7 @@ var PromptsService = class extends BaseService {
|
|
|
2092
2093
|
if (existingTarget) {
|
|
2093
2094
|
const virtualKey2 = data.virtual_key || sourceVersion.virtual_key;
|
|
2094
2095
|
if (!sourceVersion.string || !(sourceVersion.model || sourceVersion.ai_model_id || sourceVersion.finetune_id) || !virtualKey2) {
|
|
2095
|
-
throw new Error(
|
|
2096
|
-
"Cannot promote prompt: source version needs a string, a model (model, ai_model_id or finetune_id) and a virtual_key (or a virtual_key override)"
|
|
2097
|
-
);
|
|
2096
|
+
throw new Error(PROMOTE_INCOMPLETE_SOURCE_MESSAGE);
|
|
2098
2097
|
}
|
|
2099
2098
|
const updateResult = await this.updatePrompt(
|
|
2100
2099
|
existingTarget.id,
|
|
@@ -2141,13 +2140,22 @@ var PromptsService = class extends BaseService {
|
|
|
2141
2140
|
"Cannot promote prompt: source version has no virtual_key and none was provided"
|
|
2142
2141
|
);
|
|
2143
2142
|
}
|
|
2143
|
+
if (!(sourceVersion.model || sourceVersion.ai_model_id || sourceVersion.finetune_id)) {
|
|
2144
|
+
throw new Error(PROMOTE_INCOMPLETE_SOURCE_MESSAGE);
|
|
2145
|
+
}
|
|
2144
2146
|
const createResult = await this.createPrompt({
|
|
2145
2147
|
name: targetName,
|
|
2146
2148
|
collection_id: data.target_collection_id,
|
|
2147
2149
|
string: sourceVersion.string,
|
|
2148
2150
|
parameters: sourceVersion.parameters,
|
|
2149
2151
|
virtual_key: virtualKey,
|
|
2150
|
-
model: sourceVersion.model,
|
|
2152
|
+
...sourceVersion.model && { model: sourceVersion.model },
|
|
2153
|
+
...sourceVersion.ai_model_id && {
|
|
2154
|
+
ai_model_id: sourceVersion.ai_model_id
|
|
2155
|
+
},
|
|
2156
|
+
...sourceVersion.finetune_id && {
|
|
2157
|
+
finetune_id: sourceVersion.finetune_id
|
|
2158
|
+
},
|
|
2151
2159
|
functions: sourceVersion.functions,
|
|
2152
2160
|
tools: sourceVersion.tools,
|
|
2153
2161
|
tool_choice: sourceVersion.tool_choice,
|
package/build/server.js
CHANGED
|
@@ -1820,6 +1820,7 @@ var PartialsService = class extends BaseService {
|
|
|
1820
1820
|
|
|
1821
1821
|
// src/services/prompts.service.ts
|
|
1822
1822
|
import { isDeepStrictEqual } from "node:util";
|
|
1823
|
+
var PROMOTE_INCOMPLETE_SOURCE_MESSAGE = "Cannot promote prompt: source version needs a string, a model (model, ai_model_id or finetune_id) and a virtual_key (or a virtual_key override)";
|
|
1823
1824
|
var PromptsService = class extends BaseService {
|
|
1824
1825
|
async createPrompt(data) {
|
|
1825
1826
|
const { is_raw_template, ...rest } = data;
|
|
@@ -2105,9 +2106,7 @@ var PromptsService = class extends BaseService {
|
|
|
2105
2106
|
if (existingTarget) {
|
|
2106
2107
|
const virtualKey2 = data.virtual_key || sourceVersion.virtual_key;
|
|
2107
2108
|
if (!sourceVersion.string || !(sourceVersion.model || sourceVersion.ai_model_id || sourceVersion.finetune_id) || !virtualKey2) {
|
|
2108
|
-
throw new Error(
|
|
2109
|
-
"Cannot promote prompt: source version needs a string, a model (model, ai_model_id or finetune_id) and a virtual_key (or a virtual_key override)"
|
|
2110
|
-
);
|
|
2109
|
+
throw new Error(PROMOTE_INCOMPLETE_SOURCE_MESSAGE);
|
|
2111
2110
|
}
|
|
2112
2111
|
const updateResult = await this.updatePrompt(
|
|
2113
2112
|
existingTarget.id,
|
|
@@ -2154,13 +2153,22 @@ var PromptsService = class extends BaseService {
|
|
|
2154
2153
|
"Cannot promote prompt: source version has no virtual_key and none was provided"
|
|
2155
2154
|
);
|
|
2156
2155
|
}
|
|
2156
|
+
if (!(sourceVersion.model || sourceVersion.ai_model_id || sourceVersion.finetune_id)) {
|
|
2157
|
+
throw new Error(PROMOTE_INCOMPLETE_SOURCE_MESSAGE);
|
|
2158
|
+
}
|
|
2157
2159
|
const createResult = await this.createPrompt({
|
|
2158
2160
|
name: targetName,
|
|
2159
2161
|
collection_id: data.target_collection_id,
|
|
2160
2162
|
string: sourceVersion.string,
|
|
2161
2163
|
parameters: sourceVersion.parameters,
|
|
2162
2164
|
virtual_key: virtualKey,
|
|
2163
|
-
model: sourceVersion.model,
|
|
2165
|
+
...sourceVersion.model && { model: sourceVersion.model },
|
|
2166
|
+
...sourceVersion.ai_model_id && {
|
|
2167
|
+
ai_model_id: sourceVersion.ai_model_id
|
|
2168
|
+
},
|
|
2169
|
+
...sourceVersion.finetune_id && {
|
|
2170
|
+
finetune_id: sourceVersion.finetune_id
|
|
2171
|
+
},
|
|
2164
2172
|
functions: sourceVersion.functions,
|
|
2165
2173
|
tools: sourceVersion.tools,
|
|
2166
2174
|
tool_choice: sourceVersion.tool_choice,
|
package/docs/DISTRIBUTION.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# Distribution and directory inventory
|
|
2
2
|
|
|
3
|
-
> Last release verification: 2026-11-
|
|
4
|
-
> Registry, LobeHub
|
|
5
|
-
>
|
|
6
|
-
>
|
|
3
|
+
> Last release verification: 2026-11-19. GitHub, npm provenance, the MCP
|
|
4
|
+
> Registry, LobeHub, Glama and the Vercel production deploy were checked for
|
|
5
|
+
> 0.16.5. The Docker submission pin was verified at 0.16.5 on 2026-11-21.
|
|
6
|
+
> Upstream catalog review and publication remain pending. Other downstream
|
|
7
|
+
> observations retain their original dates.
|
|
7
8
|
|
|
8
9
|
The generated catalog in this repository is the source of truth for tool names,
|
|
9
10
|
counts, and descriptions. Public directory pages can lag a release or retain a
|
|
@@ -17,7 +18,7 @@ legacy repository owner, so they should not be used to validate the runtime.
|
|
|
17
18
|
| [npm](https://www.npmjs.com/package/portkey-admin-mcp) | Canonical package distribution | Automated from a protected release tag using `package.json` |
|
|
18
19
|
| [Official MCP Registry](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.CodesWhat/portkey-admin-mcp) | Canonical MCP metadata under `io.github.CodesWhat/portkey-admin-mcp` | Automated after npm publication using `server.json` |
|
|
19
20
|
| [LobeHub](https://lobehub.com/mcp/codeswhat-portkey-admin-mcp) | Claimed marketplace listing | Run `npm run update:lobehub` after release; `lhm.plugin.json` is owner-declared metadata |
|
|
20
|
-
| [Glama](https://glama.ai/mcp/servers/CodesWhat/portkey-admin-mcp) | Claimed directory and quality listing;
|
|
21
|
+
| [Glama](https://glama.ai/mcp/servers/CodesWhat/portkey-admin-mcp) | Claimed directory and quality listing; Auto-Release published 0.16.5 on 2026-11-19 | Indexes GitHub; after each release, use **Repository > Sync Server**, then **Dockerfile > Build & Release**, and verify the version and tool count it shows. The generated description and FAQ text are Glama's and refresh on their own schedule |
|
|
21
22
|
| [Awesome MCP Servers](https://github.com/punkpeye/awesome-mcp-servers/pull/13074) | Community list entry; the CodesWhat correction (PR #13074) merged on 2026-09-13 | Update the entry through a new PR when the repository owner, Glama badge, or released catalog count changes |
|
|
22
23
|
|
|
23
24
|
The canonical description for owner-controlled records is:
|
|
@@ -29,6 +30,27 @@ Counts belong only in generated or release-specific records. `README.md`,
|
|
|
29
30
|
`ENDPOINTS.md`, and `lhm.plugin.json` are regenerated or verified from the
|
|
30
31
|
runtime catalog before release.
|
|
31
32
|
|
|
33
|
+
### 0.16.5 publication checks, 2026-11-18
|
|
34
|
+
|
|
35
|
+
- GitHub [v0.16.5](https://github.com/CodesWhat/portkey-admin-mcp/releases/tag/v0.16.5)
|
|
36
|
+
resolves to `09f9d05e3bf409497709355fda49c259b86b0327` (`main`, promotion
|
|
37
|
+
#220). The release was published 2026-11-18T22:52:57Z and is marked Latest.
|
|
38
|
+
[Release workflow 44414517043](https://github.com/CodesWhat/portkey-admin-mcp/actions/runs/44414517043)
|
|
39
|
+
completed successfully.
|
|
40
|
+
- npm reports `portkey-admin-mcp@0.16.5` with SLSA provenance
|
|
41
|
+
(`https://slsa.dev/provenance/v1`).
|
|
42
|
+
- The official MCP Registry lists `io.github.CodesWhat/portkey-admin-mcp`
|
|
43
|
+
0.16.5 as `isLatest=true`, published 2026-11-18T22:56:35Z.
|
|
44
|
+
- The Vercel Production deploy of `09f9d05e` succeeded. The live docs show
|
|
45
|
+
0.16.4 until this manual refresh ships.
|
|
46
|
+
- LobeHub: `npm run update:lobehub` updated `codeswhat-portkey-admin-mcp` from 0.16.4 to 0.16.5. The market API reports version 0.16.5 with 194 tools, updated 2026-11-18T22:58:29Z.
|
|
47
|
+
- Docker submission [#5026](https://github.com/docker/mcp-registry/pull/5026):
|
|
48
|
+
`source.commit` pins `09f9d05e3bf409497709355fda49c259b86b0327`
|
|
49
|
+
(verified 2026-11-21 at submission head `19ba8a24`). The description still
|
|
50
|
+
names 0.16.4 and its earlier test evidence; validation has not been rerun
|
|
51
|
+
for the new pin. Maintainer review and catalog publication remain pending.
|
|
52
|
+
- Glama: Repository > Sync Server picked up commit `09f9d05`. The test build passed, and Auto-Release published 0.16.5 on 2026-11-19.
|
|
53
|
+
|
|
32
54
|
### 0.16.4 publication checks, 2026-11-14
|
|
33
55
|
|
|
34
56
|
- GitHub [v0.16.4](https://github.com/CodesWhat/portkey-admin-mcp/releases/tag/v0.16.4)
|
|
@@ -64,8 +86,7 @@ runtime catalog before release.
|
|
|
64
86
|
and completed a successful build. Its server version is 0.14.0 and indexed
|
|
65
87
|
inventory is 194 tools. Glama's separate hosted release number is 1.0.8.
|
|
66
88
|
Before that sync, the same day's check showed 0.13.0 and 184 tools; generated
|
|
67
|
-
description/FAQ text still said 150/151, and the public inventory API returned
|
|
68
|
-
401. Those observations describe the earlier scan, not the released server.
|
|
89
|
+
description/FAQ text still said 150/151, and the public inventory API returned 401. Those observations describe the earlier scan, not the released server.
|
|
69
90
|
- Docker submission [#5026](https://github.com/docker/mcp-registry/pull/5026)
|
|
70
91
|
was refreshed to that release commit with successful validation and
|
|
71
92
|
194-tool discovery. Upstream maintainer review remains outstanding.
|
|
@@ -90,7 +111,8 @@ The [Docker MCP Catalog](https://hub.docker.com/mcp) is curated, has a documente
|
|
|
90
111
|
pull-request submission path, and matches the repository's existing non-root
|
|
91
112
|
Docker image and stdio support. The submission is
|
|
92
113
|
[docker/mcp-registry#5026](https://github.com/docker/mcp-registry/pull/5026),
|
|
93
|
-
open and awaiting maintainer review as of 2026-11-
|
|
114
|
+
open and awaiting maintainer review as of 2026-11-21, with the 0.16.5 source pin.
|
|
115
|
+
Its PR description and discovery evidence still describe 0.16.4. Its `source.commit` is the
|
|
94
116
|
release pin; refresh that pin, the PR release description, and discovery evidence
|
|
95
117
|
after publication. It is not listed until Docker merges it and the catalog is live.
|
|
96
118
|
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=24"
|
|
42
42
|
},
|
|
43
|
-
"packageManager": "npm@12.2.
|
|
43
|
+
"packageManager": "npm@12.2.3",
|
|
44
44
|
"files": [
|
|
45
45
|
"build",
|
|
46
46
|
"ENDPOINTS.md",
|
|
@@ -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.
|
|
65
|
+
"version": "0.16.6",
|
|
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.6.
|
|
94
|
+
"@biomejs/biome": "2.6.8",
|
|
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.
|
|
98
|
+
"dotenv": "18.0.10",
|
|
99
99
|
"esbuild": "0.28.2",
|
|
100
|
-
"knip": "6.
|
|
100
|
+
"knip": "6.45.1",
|
|
101
101
|
"lefthook": "2.2.2",
|
|
102
102
|
"tsx": "4.23.15",
|
|
103
103
|
"typescript": "7.0.2",
|