Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 47 additions & 22 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -88813,7 +88813,10 @@
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"slug": {
"type": "string"
},
"displayName": {
"type": "string"
},
"version": {
Expand Down Expand Up @@ -89288,7 +89291,8 @@
},
"required": [
"id",
"name",
"slug",
"displayName",
"version",
"description",
"instructions",
Expand Down Expand Up @@ -89550,7 +89554,11 @@
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"slug": {
"type": "string",
"minLength": 1
},
"displayName": {
"type": "string",
"minLength": 1
},
Expand Down Expand Up @@ -89991,7 +89999,8 @@
}
},
"required": [
"name",
"slug",
"displayName",
"serverType"
]
}
Expand All @@ -90012,7 +90021,10 @@
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"slug": {
"type": "string"
},
"displayName": {
"type": "string"
},
"version": {
Expand Down Expand Up @@ -90487,7 +90499,8 @@
},
"required": [
"id",
"name",
"slug",
"displayName",
"version",
"description",
"instructions",
Expand Down Expand Up @@ -90764,7 +90777,10 @@
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"slug": {
"type": "string"
},
"displayName": {
"type": "string"
},
"version": {
Expand Down Expand Up @@ -91239,7 +91255,8 @@
},
"required": [
"id",
"name",
"slug",
"displayName",
"version",
"description",
"instructions",
Expand Down Expand Up @@ -91495,7 +91512,11 @@
"schema": {
"type": "object",
"properties": {
"name": {
"slug": {
"type": "string",
"minLength": 1
},
"displayName": {
"type": "string",
"minLength": 1
},
Expand Down Expand Up @@ -91964,7 +91985,10 @@
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"slug": {
"type": "string"
},
"displayName": {
"type": "string"
},
"version": {
Expand Down Expand Up @@ -92439,7 +92463,8 @@
},
"required": [
"id",
"name",
"slug",
"displayName",
"version",
"description",
"instructions",
Expand Down Expand Up @@ -93232,21 +93257,21 @@
}
}
},
"/api/internal_mcp_catalog/by-name/{name}": {
"/api/internal_mcp_catalog/by-slug/{slug}": {
"delete": {
"operationId": "deleteInternalMcpCatalogItemByName",
"operationId": "deleteInternalMcpCatalogItemBySlug",
"tags": [
"MCP Catalog"
],
"description": "Delete an Internal MCP catalog item by name",
"description": "Delete an Internal MCP catalog item by slug",
"parameters": [
{
"schema": {
"type": "string",
"minLength": 1
},
"in": "path",
"name": "name",
"name": "slug",
"required": true
}
],
Expand Down Expand Up @@ -109701,7 +109726,7 @@
"nullable": true,
"type": "string"
},
"catalogName": {
"catalogSlug": {
"nullable": true,
"type": "string"
},
Expand Down Expand Up @@ -110189,7 +110214,7 @@
"nullable": true,
"type": "string"
},
"catalogName": {
"catalogSlug": {
"nullable": true,
"type": "string"
},
Expand Down Expand Up @@ -110593,7 +110618,7 @@
"nullable": true,
"type": "string"
},
"catalogName": {
"catalogSlug": {
"nullable": true,
"type": "string"
},
Expand Down Expand Up @@ -111281,7 +111306,7 @@
"nullable": true,
"type": "string"
},
"catalogName": {
"catalogSlug": {
"nullable": true,
"type": "string"
},
Expand Down Expand Up @@ -112543,7 +112568,7 @@
"nullable": true,
"type": "string"
},
"catalogName": {
"catalogSlug": {
"nullable": true,
"type": "string"
},
Expand Down Expand Up @@ -130649,13 +130674,13 @@
"id": {
"type": "string"
},
"name": {
"slug": {
"type": "string"
}
},
"required": [
"id",
"name"
"slug"
],
"additionalProperties": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class PolicyConfigurationService {
const catalog = await InternalMcpCatalogModel.findById(tool.catalogId, {
expandSecrets: false,
});
mcpServerName = catalog?.name ?? null;
mcpServerName = catalog?.slug ?? null;
}

logger.debug(
Expand Down
9 changes: 6 additions & 3 deletions platform/backend/src/archestra-mcp-server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ describe("executeArchestraTool", () => {
makeInternalMcpCatalog,
}) => {
await makeInternalMcpCatalog({
name: "Test Server",
slug: "Test Server",
displayName: "Test Server",
version: "1.0.0",
description: "A test server",
serverType: "remote",
Expand Down Expand Up @@ -245,13 +246,15 @@ describe("executeArchestraTool", () => {
makeInternalMcpCatalog,
}) => {
await makeInternalMcpCatalog({
name: "Test Server",
slug: "Test Server",
displayName: "Test Server",
description: "A server for testing",
serverType: "remote",
});

await makeInternalMcpCatalog({
name: "Other Server",
slug: "Other Server",
displayName: "Other Server",
description: "A different server",
serverType: "remote",
});
Expand Down
2 changes: 1 addition & 1 deletion platform/backend/src/archestra-mcp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export async function executeArchestraTool(
// Format the results
const formattedResults = catalogItems
.map((item) => {
let result = `**${item.name}**`;
let result = `**${item.slug}**`;
if (item.version) result += ` (v${item.version})`;
if (item.description) result += `\n ${item.description}`;
result += `\n Type: ${item.serverType}`;
Expand Down
Loading
Loading