portkey-admin-mcp 0.6.2 → 0.7.0
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/ENDPOINTS.md +638 -0
- package/README.md +14 -11
- package/build/index.js +1537 -684
- package/build/server.js +1537 -684
- package/docs/PRISMA_AIRS_INTEROPERABILITY.md +66 -0
- package/docs/VERCEL_DEPLOYMENT.md +192 -0
- package/package.json +13 -6
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<h1>Portkey Admin MCP Server</h1>
|
|
6
6
|
|
|
7
|
-
**The
|
|
7
|
+
**The [Portkey](https://portkey.ai/) Admin API as an MCP server — 171 tools across prompts, configs, keys, analytics, governance, and more.**
|
|
8
8
|
|
|
9
9
|
</div>
|
|
10
10
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<hr>
|
|
27
27
|
|
|
28
28
|
> [!IMPORTANT]
|
|
29
|
-
> **
|
|
29
|
+
> **Active compatibility development.** Palo Alto Networks completed its Portkey acquisition on 2026‑05‑29 and now presents Portkey as the core of Prisma AIRS AI Gateway. The Portkey Admin API remains live, and its official OpenAPI and product changelog continued adding control-plane surfaces through August 2026; this project has therefore resumed API-coverage work. It targets the Portkey-compatible API (`x-portkey-api-key`), not Prisma AIRS/Strata Cloud Manager directly. Prisma AIRS AI Gateway currently has a different management and authentication surface, so it is not a `PORTKEY_BASE_URL` swap. See the short [Prisma AIRS interoperability guide](./docs/PRISMA_AIRS_INTEROPERABILITY.md) for the supported side-by-side model and adapter criteria.
|
|
30
30
|
|
|
31
31
|
<h2 align="center">📑 Contents</h2>
|
|
32
32
|
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
- [🧰 What You Can Do](#what-you-can-do)
|
|
35
35
|
- [🔑 API Key Scopes](#api-key-scopes)
|
|
36
36
|
- [🌐 HTTP Server (Experimental)](#http-server)
|
|
37
|
+
- [🔄 Prisma AIRS interoperability](./docs/PRISMA_AIRS_INTEROPERABILITY.md)
|
|
37
38
|
- [🛠️ Development](#development)
|
|
38
39
|
- [🧾 Full tool list — ENDPOINTS.md](./ENDPOINTS.md)
|
|
39
40
|
|
|
@@ -122,19 +123,19 @@ Then use this config:
|
|
|
122
123
|
| **Virtual Keys** | 5 | Manage provider access keys |
|
|
123
124
|
| **Collections** | 5 | Group prompts by app or project |
|
|
124
125
|
| **Providers** | 5 | Manage AI provider configurations |
|
|
125
|
-
| **Integrations** |
|
|
126
|
+
| **Integrations** | 11 | Provider integrations, model pricing, models, workspace access |
|
|
126
127
|
| **MCP Integrations** | 10 | External MCP tool integrations |
|
|
127
|
-
| **MCP Servers** |
|
|
128
|
-
| **Guardrails** |
|
|
128
|
+
| **MCP Servers** | 12 | MCP server registry, capabilities, and live connections |
|
|
129
|
+
| **Guardrails** | 11 | Content safety policies, organisation defaults, workspace exclusions |
|
|
129
130
|
| **Usage Limits** | 7 | Cost and token consumption limits |
|
|
130
131
|
| **Rate Limits** | 5 | Request frequency controls |
|
|
131
132
|
| **Analytics** | 20 | Cost, latency, errors, tokens, cache, feedback |
|
|
132
|
-
| **Logging** |
|
|
133
|
+
| **Logging** | 10 | Log retrieval, ingestion, export, and field restrictions |
|
|
133
134
|
| **Tracing** | 2 | Feedback creation and updates on traces |
|
|
134
|
-
| **Users & Workspaces** |
|
|
135
|
+
| **Users & Workspaces** | 24 | User management, invites, workspace members, SCIM group mappings |
|
|
135
136
|
| **Audit** | 1 | Audit log access |
|
|
136
137
|
|
|
137
|
-
**
|
|
138
|
+
**171 tools total.** See [ENDPOINTS.md](./ENDPOINTS.md) for the full list with descriptions.
|
|
138
139
|
|
|
139
140
|
<hr>
|
|
140
141
|
|
|
@@ -142,7 +143,7 @@ Then use this config:
|
|
|
142
143
|
|
|
143
144
|
Most tools work with a **workspace-scoped service key** that has Select All permissions enabled. That covers prompts, configs, virtual/API keys, providers, guardrails, workspace integrations, MCP servers, rate/usage limits, logs, prompt completions, and workspace user management.
|
|
144
145
|
|
|
145
|
-
### Enterprise-gated tools (
|
|
146
|
+
### Enterprise-gated tools (40)
|
|
146
147
|
|
|
147
148
|
The following tools require an **organisation-level scope that is only available on Portkey Enterprise plans**. They return `403 You do not have enough permissions to execute this request` on workspace plans. Their descriptions include an `Enterprise-gated. Returns 403 on non-Enterprise Portkey plans.` suffix so MCP clients know upfront.
|
|
148
149
|
|
|
@@ -152,6 +153,8 @@ The following tools require an **organisation-level scope that is only available
|
|
|
152
153
|
| Audit | `list_audit_logs` | `audit_logs.list` |
|
|
153
154
|
| Org-level integrations | `get_integration`, `list_integration_models`, `list_integration_workspaces` | `organisation_integrations.read` |
|
|
154
155
|
| Org-level users | `list_all_users`, `get_user`, `get_user_stats`, `list_user_invites` | `organisation_users.list` / `organisation_users.read` |
|
|
156
|
+
| Log exports (8) | `create_log_export`, `list_log_exports`, `get_log_export`, `start_log_export`, `cancel_log_export`, `download_log_export`, `update_log_export`, `get_log_export_field_restrictions` | Enterprise Logs Export + `logs.export` |
|
|
157
|
+
| SCIM groups (4) | `list_scim_groups`, `list_scim_workspace_mappings`, `create_scim_workspace_mapping`, `delete_scim_workspace_mapping` | SCIM enabled + organisation admin access |
|
|
155
158
|
|
|
156
159
|
### Other scope requirements
|
|
157
160
|
|
|
@@ -193,7 +196,7 @@ For local-only HTTP use, leave `MCP_HOST` at its default `127.0.0.1`. Set `MCP_H
|
|
|
193
196
|
| Variable | Default | Description |
|
|
194
197
|
|----------|---------|-------------|
|
|
195
198
|
| `PORTKEY_API_KEY` | (required) | Your Portkey API key |
|
|
196
|
-
| `PORTKEY_BASE_URL` | `https://api.portkey.ai/v1` | Portkey Admin API base URL.
|
|
199
|
+
| `PORTKEY_BASE_URL` | `https://api.portkey.ai/v1` | Portkey Admin API base URL. Prisma AIRS/SCM URLs are not compatible; credentialed requests never auto-follow redirects |
|
|
197
200
|
| `PORTKEY_ALLOW_PRIVATE_BASE_URL` | — | Set to `true` to allow a literal loopback/private `PORTKEY_BASE_URL` |
|
|
198
201
|
| `PORTKEY_ALLOW_INSECURE_HTTP` | — | Separately set to `true` only when a trusted self-hosted gateway cannot use HTTPS |
|
|
199
202
|
| `PORTKEY_TOOL_DOMAINS` | — | Server-side tool-domain allowlist. HTTP `?tools=` may narrow this set but cannot expand it |
|
|
@@ -289,7 +292,7 @@ npm run ci # full pipeline (lint + typecheck + test + build + e2e + v
|
|
|
289
292
|
### Built With
|
|
290
293
|
|
|
291
294
|
[](https://www.typescriptlang.org/)
|
|
292
|
-
[](https://github.com/modelcontextprotocol/typescript-sdk)
|
|
293
296
|
[](https://zod.dev/)
|
|
294
297
|
[](https://biomejs.dev/)
|
|
295
298
|
[](https://nodejs.org/)
|