portkey-admin-mcp 0.16.1 → 0.16.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/ENDPOINTS.md +3 -1
- package/build/index.js +3 -2
- package/build/server.js +3 -2
- package/package.json +1 -1
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/build/index.js
CHANGED
|
@@ -3398,7 +3398,8 @@ function registerCollectionsTools(server, service) {
|
|
|
3398
3398
|
inputSchema: COLLECTIONS_TOOL_SCHEMAS.listCollections
|
|
3399
3399
|
},
|
|
3400
3400
|
async (params) => {
|
|
3401
|
-
const
|
|
3401
|
+
const effectiveParams = params.page_size !== void 0 && params.current_page === void 0 ? { ...params, current_page: 0 } : params;
|
|
3402
|
+
const collections = await service.collections.listCollections(effectiveParams);
|
|
3402
3403
|
return jsonResult({
|
|
3403
3404
|
total: collections.total,
|
|
3404
3405
|
collections: collections.data.map((collection) => ({
|
|
@@ -3570,7 +3571,7 @@ function registerConfigsTools(server, service) {
|
|
|
3570
3571
|
server.registerTool(
|
|
3571
3572
|
"list_configs",
|
|
3572
3573
|
{
|
|
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.",
|
|
3574
|
+
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
3575
|
inputSchema: CONFIGS_TOOL_SCHEMAS.listConfigs
|
|
3575
3576
|
},
|
|
3576
3577
|
async (params) => {
|
package/build/server.js
CHANGED
|
@@ -3411,7 +3411,8 @@ function registerCollectionsTools(server, service) {
|
|
|
3411
3411
|
inputSchema: COLLECTIONS_TOOL_SCHEMAS.listCollections
|
|
3412
3412
|
},
|
|
3413
3413
|
async (params) => {
|
|
3414
|
-
const
|
|
3414
|
+
const effectiveParams = params.page_size !== void 0 && params.current_page === void 0 ? { ...params, current_page: 0 } : params;
|
|
3415
|
+
const collections = await service.collections.listCollections(effectiveParams);
|
|
3415
3416
|
return jsonResult({
|
|
3416
3417
|
total: collections.total,
|
|
3417
3418
|
collections: collections.data.map((collection) => ({
|
|
@@ -3583,7 +3584,7 @@ function registerConfigsTools(server, service) {
|
|
|
3583
3584
|
server.registerTool(
|
|
3584
3585
|
"list_configs",
|
|
3585
3586
|
{
|
|
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.",
|
|
3587
|
+
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
3588
|
inputSchema: CONFIGS_TOOL_SCHEMAS.listConfigs
|
|
3588
3589
|
},
|
|
3589
3590
|
async (params) => {
|