Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: detailed mcp server page

Sheen Capadngan4126f901d4a3
diff --git a/backend/package-lock.json b/backend/package-lock.json
index 808cf3204e..63d4619771 100644
--- a/backend/package-lock.json
+++ b/backend/package-lock.json
@@ -34,6 +34,7 @@
"@gitbeaker/rest": "^42.5.0",
"@google-cloud/kms": "^4.5.0",
"@infisical/quic": "^1.0.8",
+ "@modelcontextprotocol/sdk": "^1.24.3",
"@node-saml/passport-saml": "^5.1.0",
"@octokit/auth-app": "^7.1.1",
"@octokit/core": "^5.2.1",
@@ -9628,6 +9629,411 @@
"@matrixai/errors": "^1.1.7"
}
},
+ "node_modules/@modelcontextprotocol/sdk": {
+ "version": "1.24.3",
+ "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.24.3.tgz",
+ "integrity": "sha512-YgSHW29fuzKKAHTGe9zjNoo+yF8KaQPzDC2W9Pv41E7/57IfY+AMGJ/aDFlgTLcVVELoggKE4syABCE75u3NCw==",
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^8.17.1",
+ "ajv-formats": "^3.0.1",
+ "content-type": "^1.0.5",
+ "cors": "^2.8.5",
+ "cross-spawn": "^7.0.5",
+ "eventsource": "^3.0.2",
+ "eventsource-parser": "^3.0.0",
+ "express": "^5.0.1",
+ "express-rate-limit": "^7.5.0",
+ "jose": "^6.1.1",
+ "pkce-challenge": "^5.0.0",
+ "raw-body": "^3.0.0",
+ "zod": "^3.25 || ^4.0",
+ "zod-to-json-schema": "^3.25.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@cfworker/json-schema": "^4.1.1",
+ "zod": "^3.25 || ^4.0"
+ },
+ "peerDependenciesMeta": {
+ "@cfworker/json-schema": {
+ "optional": true
+ },
+ "zod": {
+ "optional": false
+ }
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/accepts": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "^3.0.0",
+ "negotiator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/ajv-formats": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz",
+ "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ajv": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.1.tgz",
+ "integrity": "sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "^3.1.2",
+ "content-type": "^1.0.5",
+ "debug": "^4.4.3",
+ "http-errors": "^2.0.0",
+ "iconv-lite": "^0.7.0",
+ "on-finished": "^2.4.1",
+ "qs": "^6.14.0",
+ "raw-body": "^3.0.1",
+ "type-is": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz",
+ "integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/eventsource": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz",
+ "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==",
+ "license": "MIT",
+ "dependencies": {
+ "eventsource-parser": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/express": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",
+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "^2.0.0",
+ "body-parser": "^2.2.1",
+ "content-disposition": "^1.0.0",
+ "content-type": "^1.0.5",
+ "cookie": "^0.7.1",
+ "cookie-signature": "^1.2.1",
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "finalhandler": "^2.1.0",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.0",
+ "merge-descriptors": "^2.0.0",
+ "mime-types": "^3.0.0",
+ "on-finished": "^2.4.1",
+ "once": "^1.4.0",
+ "parseurl": "^1.3.3",
+ "proxy-addr": "^2.0.7",
+ "qs": "^6.14.0",
+ "range-parser": "^1.2.1",
+ "router": "^2.2.0",
+ "send": "^1.1.0",
+ "serve-static": "^2.2.0",
+ "statuses": "^2.0.1",
+ "type-is": "^2.0.1",
+ "vary": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",
+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "on-finished": "^2.4.1",
+ "parseurl": "^1.3.3",
+ "statuses": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/fresh": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz",
+ "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/media-typer": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/mime-db": {
+ "version": "1.54.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/mime-types": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "^1.54.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/negotiator": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/qs": {
+ "version": "6.14.0",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz",
+ "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/raw-body": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",
+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.7.0",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/send": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz",
+ "integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.3.5",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.0",
+ "mime-types": "^3.0.1",
+ "ms": "^2.1.3",
+ "on-finished": "^2.4.1",
+ "range-parser": "^1.2.1",
+ "statuses": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/serve-static": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz",
+ "integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "parseurl": "^1.3.3",
+ "send": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/type-is": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",
+ "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",
+ "license": "MIT",
+ "dependencies": {
+ "content-type": "^1.0.5",
+ "media-typer": "^1.1.0",
+ "mime-types": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/zod": {
+ "version": "4.1.13",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.1.13.tgz",
+ "integrity": "sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema": {
+ "version": "3.25.0",
+ "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.0.tgz",
+ "integrity": "sha512-HvWtU2UG41LALjajJrML6uQejQhNJx+JBO9IflpSja4R03iNWfKXrj6W2h7ljuLyc1nKS+9yDyL/9tD1U/yBnQ==",
+ "license": "ISC",
+ "peerDependencies": {
+ "zod": "^3.25 || ^4"
+ }
+ },
"node_modules/@mongodb-js/saslprep": {
"version": "1.1.9",
"resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.9.tgz",
@@ -16764,14 +17170,15 @@
}
},
"node_modules/ajv": {
- "version": "8.12.0",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
- "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
+ "version": "8.17.1",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
+ "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
+ "license": "MIT",
"dependencies": {
- "fast-deep-equal": "^3.1.1",
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
"json-schema-traverse": "^1.0.0",
- "require-from-string": "^2.0.2",
- "uri-js": "^4.2.2"
+ "require-from-string": "^2.0.2"
},
"funding": {
"type": "github",
@@ -16807,6 +17214,22 @@
"ajv": "^8.8.2"
}
},
+ "node_modules/ajv/node_modules/fast-uri": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz",
+ "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
"node_modules/ansi-regex": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",
@@ -18929,7 +19352,6 @@
"version": "2.8.5",
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
"integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
- "dev": true,
"license": "MIT",
"dependencies": {
"object-assign": "^4",
@@ -20680,6 +21102,15 @@
"node": ">=12.0.0"
}
},
+ "node_modules/eventsource-parser": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.6.tgz",
+ "integrity": "sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
"node_modules/expand-template": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
@@ -20763,6 +21194,21 @@
"url": "https://opencollective.com/express"
}
},
+ "node_modules/express-rate-limit": {
+ "version": "7.5.1",
+ "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.1.tgz",
+ "integrity": "sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/express-rate-limit"
+ },
+ "peerDependencies": {
+ "express": ">= 4.11"
+ }
+ },
"node_modules/express-session": {
"version": "1.18.1",
"resolved": "https://registry.npmjs.org/express-session/-/express-session-1.18.1.tgz",
@@ -23099,6 +23545,12 @@
"resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",
"integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ=="
},
+ "node_modules/is-promise": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
+ "license": "MIT"
+ },
"node_modules/is-property": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz",
@@ -23351,9 +23803,9 @@
}
},
"node_modules/jose": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.0.tgz",
- "integrity": "sha512-TTQJyoEoKcC1lscpVDCSsVgYzUDg/0Bt3WE//WiTPK6uOCQC2KZS4MpugbMWt/zyjkopgZoXhZuCi00gLudfUA==",
+ "version": "6.1.3",
+ "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz",
+ "integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/panva"
@@ -25604,9 +26056,13 @@
}
},
"node_modules/object-inspect": {
- "version": "1.13.1",
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
- "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
@@ -28524,6 +28980,15 @@
"node": ">= 6"
}
},
+ "node_modules/pkce-challenge": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz",
+ "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
"node_modules/pkcs11js": {
"version": "2.1.6",
"resolved": "https://registry.npmjs.org/pkcs11js/-/pkcs11js-2.1.6.tgz",
@@ -30429,6 +30894,49 @@
"fsevents": "~2.3.2"
}
},
+ "node_modules/router": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "is-promise": "^4.0.0",
+ "parseurl": "^1.3.3",
+ "path-to-regexp": "^8.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/router/node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/router/node_modules/path-to-regexp": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz",
+ "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
"node_modules/rrweb-cssom": {
"version": "0.8.0",
"resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.8.0.tgz",
@@ -30909,15 +31417,69 @@
"integrity": "sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw=="
},
"node_modules/side-channel": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
- "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
"license": "MIT",
"dependencies": {
- "call-bind": "^1.0.7",
"es-errors": "^1.3.0",
- "get-intrinsic": "^1.2.4",
- "object-inspect": "^1.13.1"
+ "object-inspect": "^1.13.3",
+ "side-channel-list": "^1.0.0",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
},
"engines": {
"node": ">= 0.4"
diff --git a/backend/package.json b/backend/package.json
index 4f9cfdc97a..2eabdbbf0b 100644
--- a/backend/package.json
+++ b/backend/package.json
@@ -165,6 +165,7 @@
"@gitbeaker/rest": "^42.5.0",
"@google-cloud/kms": "^4.5.0",
"@infisical/quic": "^1.0.8",
+ "@modelcontextprotocol/sdk": "^1.24.3",
"@node-saml/passport-saml": "^5.1.0",
"@octokit/auth-app": "^7.1.1",
"@octokit/core": "^5.2.1",
@@ -267,4 +268,4 @@
"zod": "^3.22.4",
"zod-to-json-schema": "^3.24.5"
}
-}
\ No newline at end of file
+}
diff --git a/backend/src/db/migrations/20251204160117_add-ai-mcp-product.ts b/backend/src/db/migrations/20251204160117_add-ai-mcp-product.ts
index be6f7cf5a0..f67d53bd65 100644
--- a/backend/src/db/migrations/20251204160117_add-ai-mcp-product.ts
+++ b/backend/src/db/migrations/20251204160117_add-ai-mcp-product.ts
@@ -26,7 +26,7 @@ export async function up(knex: Knex): Promise<void> {
await knex.schema.createTable(TableName.AiMcpServerTool, (t) => {
t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
t.string("name").notNullable();
- t.string("description");
+ t.text("description");
t.jsonb("inputSchema");
t.uuid("aiMcpServerId").notNullable();
t.foreign("aiMcpServerId").references("id").inTable(TableName.AiMcpServer).onDelete("CASCADE");
diff --git a/backend/src/ee/routes/v1/ai-mcp-server-router.ts b/backend/src/ee/routes/v1/ai-mcp-server-router.ts
index 2980fdb7e4..9535290306 100644
--- a/backend/src/ee/routes/v1/ai-mcp-server-router.ts
+++ b/backend/src/ee/routes/v1/ai-mcp-server-router.ts
@@ -1,5 +1,6 @@
import { z } from "zod";
+import { AiMcpServerToolsSchema } from "@app/db/schemas/ai-mcp-server-tools";
import { AiMcpServersSchema } from "@app/db/schemas/ai-mcp-servers";
import { AiMcpServerAuthMethod, AiMcpServerCredentialMode } from "@app/ee/services/ai-mcp-server/ai-mcp-server-enum";
import { readLimit, writeLimit } from "@app/server/config/rateLimiter";
@@ -177,14 +178,10 @@ export const registerAiMcpServerRouter = async (server: FastifyZodProvider) => {
actorOrgId: req.permission.orgId
});
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- const { encryptedCredentials, ...serverWithoutCredentials } = mcpServer;
-
- return { server: serverWithoutCredentials };
+ return { server: mcpServer };
}
});
- // List MCP Servers
server.route({
url: "/",
method: "GET",
@@ -210,18 +207,122 @@ export const registerAiMcpServerRouter = async (server: FastifyZodProvider) => {
projectId: req.query.projectId
});
- // Remove encrypted credentials from response
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- const serversWithoutCredentials = mcpServers.map(({ encryptedCredentials, ...rest }) => rest);
-
return {
- servers: serversWithoutCredentials,
+ servers: mcpServers,
totalCount: mcpServers.length
};
}
});
- // Delete MCP Server
+ server.route({
+ url: "/:serverId",
+ method: "GET",
+ config: {
+ rateLimit: readLimit
+ },
+ schema: {
+ params: z.object({
+ serverId: z.string().trim().min(1)
+ }),
+ response: {
+ 200: z.object({
+ server: AiMcpServersSchema.omit({ encryptedCredentials: true })
+ })
+ }
+ },
+ onRequest: verifyAuth([AuthMode.JWT]),
+ handler: async (req) => {
+ const mcpServer = await server.services.aiMcpServer.getMcpServerById({
+ serverId: req.params.serverId
+ });
+
+ return { server: mcpServer };
+ }
+ });
+
+ server.route({
+ url: "/:serverId",
+ method: "PATCH",
+ config: {
+ rateLimit: writeLimit
+ },
+ schema: {
+ params: z.object({
+ serverId: z.string().trim().min(1)
+ }),
+ body: z.object({
+ name: z.string().trim().min(1).max(64).optional(),
+ description: z.string().trim().max(256).optional()
+ }),
+ response: {
+ 200: z.object({
+ server: AiMcpServersSchema.omit({ encryptedCredentials: true })
+ })
+ }
+ },
+ onRequest: verifyAuth([AuthMode.JWT]),
+ handler: async (req) => {
+ const mcpServer = await server.services.aiMcpServer.updateMcpServer({
+ serverId: req.params.serverId,
+ ...req.body
+ });
+
+ return { server: mcpServer };
+ }
+ });
+
+ server.route({
+ url: "/:serverId/tools",
+ method: "GET",
+ config: {
+ rateLimit: readLimit
+ },
+ schema: {
+ params: z.object({
+ serverId: z.string().trim().min(1)
+ }),
+ response: {
+ 200: z.object({
+ tools: z.array(AiMcpServerToolsSchema)
+ })
+ }
+ },
+ onRequest: verifyAuth([AuthMode.JWT]),
+ handler: async (req) => {
+ const tools = await server.services.aiMcpServer.listMcpServerTools({
+ serverId: req.params.serverId
+ });
+
+ return { tools };
+ }
+ });
+
+ server.route({
+ url: "/:serverId/tools/sync",
+ method: "POST",
+ config: {
+ rateLimit: writeLimit
+ },
+ schema: {
+ params: z.object({
+ serverId: z.string().trim().min(1)
+ }),
+ response: {
+ 200: z.object({
+ tools: z.array(AiMcpServerToolsSchema)
+ })
+ }
+ },
+ onRequest: verifyAuth([AuthMode.JWT]),
+ handler: async (req) => {
+ const tools = await server.services.aiMcpServer.syncMcpServerTools({
+ serverId: req.params.serverId
+ });
+
+ return { tools };
+ }
+ });
+
server.route({
url: "/:serverId",
method: "DELETE",
@@ -244,10 +345,7 @@ export const registerAiMcpServerRouter = async (server: FastifyZodProvider) => {
serverId: req.params.serverId
});
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- const { encryptedCredentials, ...serverWithoutCredentials } = mcpServer;
-
- return { server: serverWithoutCredentials };
+ return { server: mcpServer };
}
});
};
diff --git a/backend/src/ee/services/ai-mcp-server/ai-mcp-server-service.ts b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-service.ts
index 12abb4fa2e..77c667d30e 100644
--- a/backend/src/ee/services/ai-mcp-server/ai-mcp-server-service.ts
+++ b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-service.ts
@@ -1,14 +1,23 @@
import crypto from "node:crypto";
+// eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// @ts-ignore - MCP SDK uses ESM with .js extensions which don't resolve types with moduleResolution: "Node"
+import { Client } from "@modelcontextprotocol/sdk/client/index.js";
+// eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// @ts-ignore - MCP SDK uses ESM with .js extensions which don't resolve types with moduleResolution: "Node"
+import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
+
import { KeyStorePrefixes, TKeyStoreFactory } from "@app/keystore/keystore";
import { getConfig } from "@app/lib/config/env";
import { request } from "@app/lib/config/request";
import { BadRequestError, NotFoundError } from "@app/lib/errors";
+import { logger } from "@app/lib/logger";
import { TKmsServiceFactory } from "@app/services/kms/kms-service";
import { KmsDataKey } from "@app/services/kms/kms-types";
import { TAiMcpServerDALFactory } from "./ai-mcp-server-dal";
import { AiMcpServerStatus } from "./ai-mcp-server-enum";
+import { TAiMcpServerToolDALFactory } from "./ai-mcp-server-tool-dal";
import {
TAiMcpServerCredentials,
TCreateAiMcpServerDTO,
@@ -18,11 +27,13 @@ import {
TOAuthAuthorizationServerMetadata,
TOAuthDynamicClientMetadata,
TOAuthSession,
- TOAuthTokenResponse
+ TOAuthTokenResponse,
+ TUpdateAiMcpServerDTO
} from "./ai-mcp-server-types";
type TAiMcpServerServiceFactoryDep = {
aiMcpServerDAL: TAiMcpServerDALFactory;
+ aiMcpServerToolDAL: TAiMcpServerToolDALFactory;
kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">;
keyStore: Pick<TKeyStoreFactory, "getItem" | "setItemWithExpiry" | "deleteItem">;
};
@@ -53,7 +64,56 @@ const encryptCredentials = async ({
return cipherTextBlob;
};
-export const aiMcpServerServiceFactory = ({ aiMcpServerDAL, kmsService, keyStore }: TAiMcpServerServiceFactoryDep) => {
+// MCP tool type from the SDK response
+type TMcpTool = {
+ name: string;
+ description?: string;
+ inputSchema?: Record<string, unknown>;
+};
+
+export const aiMcpServerServiceFactory = ({
+ aiMcpServerDAL,
+ aiMcpServerToolDAL,
+ kmsService,
+ keyStore
+}: TAiMcpServerServiceFactoryDep) => {
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-redundant-type-constituents */
+ const fetchMcpTools = async (serverUrl: string, accessToken: string): Promise<TMcpTool[]> => {
+ let client: Client | undefined;
+ try {
+ client = new Client({
+ name: "infisical-mcp-client",
+ version: "1.0.0"
+ });
+
+ const transport = new StreamableHTTPClientTransport(new URL(serverUrl), {
+ requestInit: {
+ headers: {
+ Authorization: `Bearer ${accessToken}`
+ }
+ }
+ });
+
+ await client.connect(transport);
+ const { tools } = await client.listTools();
+
+ return tools.map((tool: { name: string; description?: string; inputSchema?: unknown }) => ({
+ name: tool.name,
+ description: tool.description,
+ inputSchema: tool.inputSchema as Record<string, unknown> | undefined
+ }));
+ } catch (error) {
+ // Log but don't fail - tools can be fetched later
+ logger.error(error, "Failed to fetch tools from MCP server");
+ return [];
+ } finally {
+ if (client) {
+ await client.close();
+ }
+ }
+ };
+ /* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-redundant-type-constituents */
+
/**
* Initiate OAuth flow for MCP server
* Returns the authorization URL and session ID
@@ -252,6 +312,30 @@ export const aiMcpServerServiceFactory = ({ aiMcpServerDAL, kmsService, keyStore
status: AiMcpServerStatus.ACTIVE
});
+ // Fetch and store tools from MCP server
+ // Get access token from credentials (for OAuth or Bearer auth)
+ let accessToken: string | undefined;
+ if ("accessToken" in credentials) {
+ accessToken = credentials.accessToken;
+ } else if ("token" in credentials) {
+ accessToken = credentials.token;
+ }
+
+ if (accessToken) {
+ const tools = await fetchMcpTools(url, accessToken);
+
+ if (tools.length > 0) {
+ await aiMcpServerToolDAL.insertMany(
+ tools.map((tool) => ({
+ aiMcpServerId: server.id,
+ name: tool.name,
+ description: tool.description,
+ inputSchema: tool.inputSchema
+ }))
+ );
+ }
+ }
+
return server;
};
@@ -260,6 +344,31 @@ export const aiMcpServerServiceFactory = ({ aiMcpServerDAL, kmsService, keyStore
return servers;
};
+ const getMcpServerById = async ({ serverId }: { serverId: string }) => {
+ const server = await aiMcpServerDAL.findById(serverId);
+ if (!server) {
+ throw new NotFoundError({ message: `MCP server with ID '${serverId}' not found` });
+ }
+ return server;
+ };
+
+ const updateMcpServer = async (dto: TUpdateAiMcpServerDTO) => {
+ const { serverId, name, description } = dto;
+
+ const server = await aiMcpServerDAL.findById(serverId);
+ if (!server) {
+ throw new NotFoundError({ message: `MCP server with ID '${serverId}' not found` });
+ }
+
+ const updateData: { name?: string; description?: string } = {};
+ if (name !== undefined) updateData.name = name;
+ if (description !== undefined) updateData.description = description;
+
+ const updatedServer = await aiMcpServerDAL.updateById(serverId, updateData);
+
+ return updatedServer;
+ };
+
const deleteMcpServer = async ({ serverId }: { serverId: string }) => {
const server = await aiMcpServerDAL.findById(serverId);
if (!server) {
@@ -270,12 +379,81 @@ export const aiMcpServerServiceFactory = ({ aiMcpServerDAL, kmsService, keyStore
return server;
};
+ const listMcpServerTools = async ({ serverId }: { serverId: string }) => {
+ const server = await aiMcpServerDAL.findById(serverId);
+ if (!server) {
+ throw new NotFoundError({ message: `MCP server with ID '${serverId}' not found` });
+ }
+
+ const tools = await aiMcpServerToolDAL.find({ aiMcpServerId: serverId });
+ return tools;
+ };
+
+ const syncMcpServerTools = async ({ serverId }: { serverId: string }) => {
+ const server = await aiMcpServerDAL.findById(serverId);
+ if (!server) {
+ throw new NotFoundError({ message: `MCP server with ID '${serverId}' not found` });
+ }
+
+ if (!server.encryptedCredentials) {
+ throw new BadRequestError({ message: "Server credentials not found" });
+ }
+
+ // Decrypt credentials to get access token
+ const { decryptor } = await kmsService.createCipherPairWithDataKey({
+ type: KmsDataKey.SecretManager,
+ projectId: server.projectId
+ });
+
+ const decryptedCredentials = JSON.parse(
+ decryptor({ cipherTextBlob: server.encryptedCredentials }).toString()
+ ) as TAiMcpServerCredentials;
+
+ // Get access token from credentials
+ let accessToken: string | undefined;
+ if ("accessToken" in decryptedCredentials) {
+ accessToken = decryptedCredentials.accessToken;
+ } else if ("token" in decryptedCredentials) {
+ accessToken = decryptedCredentials.token;
+ }
+
+ if (!accessToken) {
+ throw new BadRequestError({ message: "No access token available for this server" });
+ }
+
+ // Fetch tools from MCP server
+ const fetchedTools = await fetchMcpTools(server.url, accessToken);
+
+ // Delete existing tools
+ await aiMcpServerToolDAL.delete({ aiMcpServerId: serverId });
+
+ // Insert new tools
+ if (fetchedTools.length > 0) {
+ await aiMcpServerToolDAL.insertMany(
+ fetchedTools.map((tool) => ({
+ aiMcpServerId: serverId,
+ name: tool.name,
+ description: tool.description,
+ inputSchema: tool.inputSchema
+ }))
+ );
+ }
+
+ // Return the newly inserted tools
+ const tools = await aiMcpServerToolDAL.find({ aiMcpServerId: serverId });
+ return tools;
+ };
+
return {
initiateOAuth,
handleOAuthCallback,
getOAuthStatus,
createMcpServer,
+ getMcpServerById,
+ updateMcpServer,
listMcpServers,
- deleteMcpServer
+ deleteMcpServer,
+ listMcpServerTools,
+ syncMcpServerTools
};
};
diff --git a/backend/src/ee/services/ai-mcp-server/ai-mcp-server-types.ts b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-types.ts
index 6f89154d28..c9eba78f82 100644
--- a/backend/src/ee/services/ai-mcp-server/ai-mcp-server-types.ts
+++ b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-types.ts
@@ -102,3 +102,9 @@ export type TCreateAiMcpServerDTO = {
actorAuthMethod: string;
actorOrgId: string;
};
+
+export type TUpdateAiMcpServerDTO = {
+ serverId: string;
+ name?: string;
+ description?: string;
+};
diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.ts
index 7b04eec144..345d7df3a1 100644
--- a/backend/src/server/routes/index.ts
+++ b/backend/src/server/routes/index.ts
@@ -19,6 +19,7 @@ import { accessApprovalRequestReviewerDALFactory } from "@app/ee/services/access
import { accessApprovalRequestServiceFactory } from "@app/ee/services/access-approval-request/access-approval-request-service";
import { aiMcpServerDALFactory } from "@app/ee/services/ai-mcp-server/ai-mcp-server-dal";
import { aiMcpServerServiceFactory } from "@app/ee/services/ai-mcp-server/ai-mcp-server-service";
+import { aiMcpServerToolDALFactory } from "@app/ee/services/ai-mcp-server/ai-mcp-server-tool-dal";
import { assumePrivilegeServiceFactory } from "@app/ee/services/assume-privilege/assume-privilege-service";
import { auditLogDALFactory } from "@app/ee/services/audit-log/audit-log-dal";
import { auditLogQueueServiceFactory } from "@app/ee/services/audit-log/audit-log-queue";
@@ -2400,6 +2401,7 @@ export const registerRoutes = async (
const pamAccountDAL = pamAccountDALFactory(db);
const pamSessionDAL = pamSessionDALFactory(db);
const aiMcpServerDAL = aiMcpServerDALFactory(db);
+ const aiMcpServerToolDAL = aiMcpServerToolDALFactory(db);
const pamFolderService = pamFolderServiceFactory({
pamFolderDAL,
@@ -2444,6 +2446,7 @@ export const registerRoutes = async (
const aiMcpServerService = aiMcpServerServiceFactory({
aiMcpServerDAL,
+ aiMcpServerToolDAL,
kmsService,
keyStore
});
diff --git a/frontend/src/hooks/api/aiMcpServers/index.ts b/frontend/src/hooks/api/aiMcpServers/index.ts
index 23972ce3a8..f69ae91af2 100644
--- a/frontend/src/hooks/api/aiMcpServers/index.ts
+++ b/frontend/src/hooks/api/aiMcpServers/index.ts
@@ -1,8 +1,15 @@
-export { useCreateAiMcpServer, useDeleteAiMcpServer, useInitiateOAuth } from "./mutations";
+export {
+ useCreateAiMcpServer,
+ useDeleteAiMcpServer,
+ useInitiateOAuth,
+ useSyncAiMcpServerTools,
+ useUpdateAiMcpServer
+} from "./mutations";
export {
aiMcpServerKeys,
useGetAiMcpServerById,
useGetOAuthStatus,
- useListAiMcpServers
+ useListAiMcpServers,
+ useListAiMcpServerTools
} from "./queries";
export * from "./types";
diff --git a/frontend/src/hooks/api/aiMcpServers/mutations.tsx b/frontend/src/hooks/api/aiMcpServers/mutations.tsx
index a7e24caf90..f342b530f5 100644
--- a/frontend/src/hooks/api/aiMcpServers/mutations.tsx
+++ b/frontend/src/hooks/api/aiMcpServers/mutations.tsx
@@ -5,10 +5,13 @@ import { apiRequest } from "@app/config/request";
import { aiMcpServerKeys } from "./queries";
import {
TAiMcpServer,
+ TAiMcpServerTool,
TCreateAiMcpServerDTO,
TDeleteAiMcpServerDTO,
TInitiateOAuthDTO,
- TInitiateOAuthResponse
+ TInitiateOAuthResponse,
+ TSyncAiMcpServerToolsDTO,
+ TUpdateAiMcpServerDTO
} from "./types";
export const useCreateAiMcpServer = () => {
@@ -29,6 +32,27 @@ export const useCreateAiMcpServer = () => {
});
};
+export const useUpdateAiMcpServer = () => {
+ const queryClient = useQueryClient();
+
+ return useMutation<TAiMcpServer, object, TUpdateAiMcpServerDTO>({
+ mutationFn: async ({ serverId, ...data }) => {
+ const { data: response } = await apiRequest.patch<{
+ server: TAiMcpServer;
+ }>(`/api/v1/ai/mcp-servers/${serverId}`, data);
+ return response.server;
+ },
+ onSuccess: (server, { serverId }) => {
+ queryClient.invalidateQueries({
+ queryKey: aiMcpServerKeys.list({ projectId: server.projectId })
+ });
+ queryClient.invalidateQueries({
+ queryKey: aiMcpServerKeys.getById(serverId)
+ });
+ }
+ });
+};
+
export const useDeleteAiMcpServer = () => {
const queryClient = useQueryClient();
@@ -61,3 +85,21 @@ export const useInitiateOAuth = () => {
}
});
};
+
+export const useSyncAiMcpServerTools = () => {
+ const queryClient = useQueryClient();
+
+ return useMutation<{ tools: TAiMcpServerTool[] }, object, TSyncAiMcpServerToolsDTO>({
+ mutationFn: async ({ serverId }) => {
+ const { data: response } = await apiRequest.post<{
+ tools: TAiMcpServerTool[];
+ }>(`/api/v1/ai/mcp-servers/${serverId}/tools/sync`);
+ return response;
+ },
+ onSuccess: (_, { serverId }) => {
+ queryClient.invalidateQueries({
+ queryKey: aiMcpServerKeys.tools(serverId)
+ });
+ }
+ });
+};
diff --git a/frontend/src/hooks/api/aiMcpServers/queries.tsx b/frontend/src/hooks/api/aiMcpServers/queries.tsx
index 005043d7a3..4efee8d361 100644
--- a/frontend/src/hooks/api/aiMcpServers/queries.tsx
+++ b/frontend/src/hooks/api/aiMcpServers/queries.tsx
@@ -1,11 +1,13 @@
-import { useQuery } from "@tanstack/react-query";
+import { useQuery, UseQueryOptions } from "@tanstack/react-query";
import { apiRequest } from "@app/config/request";
import {
TAiMcpServer,
+ TAiMcpServerTool,
TGetOAuthStatusDTO,
TListAiMcpServersDTO,
+ TListAiMcpServerToolsDTO,
TOAuthStatusResponse
} from "./types";
@@ -13,7 +15,8 @@ export const aiMcpServerKeys = {
all: ["ai-mcp-servers"] as const,
list: (params: { projectId: string }) => [...aiMcpServerKeys.all, "list", params] as const,
getById: (serverId: string) => [...aiMcpServerKeys.all, "get-by-id", serverId] as const,
- oauthStatus: (sessionId: string) => [...aiMcpServerKeys.all, "oauth-status", sessionId] as const
+ oauthStatus: (sessionId: string) => [...aiMcpServerKeys.all, "oauth-status", sessionId] as const,
+ tools: (serverId: string) => [...aiMcpServerKeys.all, "tools", serverId] as const
};
export const useListAiMcpServers = ({
@@ -36,7 +39,10 @@ export const useListAiMcpServers = ({
});
};
-export const useGetAiMcpServerById = (serverId: string) => {
+export const useGetAiMcpServerById = (
+ serverId: string,
+ options?: Omit<UseQueryOptions<TAiMcpServer>, "queryKey" | "queryFn">
+) => {
return useQuery({
queryKey: aiMcpServerKeys.getById(serverId),
queryFn: async () => {
@@ -45,6 +51,20 @@ export const useGetAiMcpServerById = (serverId: string) => {
}>(`/api/v1/ai/mcp-servers/${serverId}`);
return data.server;
},
+ enabled: Boolean(serverId),
+ ...options
+ });
+};
+
+export const useListAiMcpServerTools = ({ serverId }: TListAiMcpServerToolsDTO) => {
+ return useQuery({
+ queryKey: aiMcpServerKeys.tools(serverId),
+ queryFn: async () => {
+ const { data } = await apiRequest.get<{
+ tools: TAiMcpServerTool[];
+ }>(`/api/v1/ai/mcp-servers/${serverId}/tools`);
+ return data;
+ },
enabled: Boolean(serverId)
});
};
diff --git a/frontend/src/hooks/api/aiMcpServers/types.ts b/frontend/src/hooks/api/aiMcpServers/types.ts
index 1357df334a..377c91a41b 100644
--- a/frontend/src/hooks/api/aiMcpServers/types.ts
+++ b/frontend/src/hooks/api/aiMcpServers/types.ts
@@ -106,3 +106,25 @@ export type TListAiMcpServersDTO = {
export type TDeleteAiMcpServerDTO = {
serverId: string;
};
+
+export type TUpdateAiMcpServerDTO = {
+ serverId: string;
+ name?: string;
+ description?: string;
+};
+
+export type TAiMcpServerTool = {
+ id: string;
+ name: string;
+ description?: string;
+ inputSchema?: Record<string, unknown>;
+ aiMcpServerId: string;
+};
+
+export type TListAiMcpServerToolsDTO = {
+ serverId: string;
+};
+
+export type TSyncAiMcpServerToolsDTO = {
+ serverId: string;
+};
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/EditMCPServerModal.tsx b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/EditMCPServerModal.tsx
new file mode 100644
index 0000000000..463b7fe921
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/EditMCPServerModal.tsx
@@ -0,0 +1,133 @@
+import { useEffect } from "react";
+import { Controller, useForm } from "react-hook-form";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { z } from "zod";
+
+import { createNotification } from "@app/components/notifications";
+import { Button, FormControl, Input, Modal, ModalContent, TextArea } from "@app/components/v2";
+import { TAiMcpServer, useUpdateAiMcpServer } from "@app/hooks/api";
+
+const EditMCPServerFormSchema = z.object({
+ name: z.string().trim().min(1, "Name is required").max(64, "Name must be 64 characters or less"),
+ description: z.string().trim().max(256, "Description must be 256 characters or less").optional()
+});
+
+type TEditMCPServerForm = z.infer<typeof EditMCPServerFormSchema>;
+
+type Props = {
+ isOpen: boolean;
+ onOpenChange: (isOpen: boolean) => void;
+ server: TAiMcpServer | null;
+};
+
+export const EditMCPServerModal = ({ isOpen, onOpenChange, server }: Props) => {
+ const updateMcpServer = useUpdateAiMcpServer();
+
+ const {
+ control,
+ handleSubmit,
+ reset,
+ formState: { isSubmitting }
+ } = useForm<TEditMCPServerForm>({
+ resolver: zodResolver(EditMCPServerFormSchema),
+ defaultValues: {
+ name: "",
+ description: ""
+ }
+ });
+
+ // Reset form when server changes
+ useEffect(() => {
+ if (server) {
+ reset({
+ name: server.name,
+ description: server.description || ""
+ });
+ }
+ }, [server, reset]);
+
+ const handleClose = () => {
+ reset();
+ onOpenChange(false);
+ };
+
+ const onSubmit = async (data: TEditMCPServerForm) => {
+ if (!server) return;
+
+ try {
+ await updateMcpServer.mutateAsync({
+ serverId: server.id,
+ name: data.name,
+ description: data.description || undefined
+ });
+
+ createNotification({
+ text: `Successfully updated MCP server "${data.name}"`,
+ type: "success"
+ });
+
+ handleClose();
+ } catch (error) {
+ console.error("Failed to update MCP server:", error);
+ createNotification({
+ text: "Failed to update MCP server",
+ type: "error"
+ });
+ }
+ };
+
+ return (
+ <Modal isOpen={isOpen} onOpenChange={onOpenChange}>
+ <ModalContent
+ title="Edit MCP Server"
+ subTitle="Update the server details"
+ onClose={handleClose}
+ >
+ <form onSubmit={handleSubmit(onSubmit)}>
+ <Controller
+ control={control}
+ name="name"
+ render={({ field, fieldState: { error } }) => (
+ <FormControl
+ label="Server Name"
+ isRequired
+ isError={Boolean(error)}
+ errorText={error?.message}
+ >
+ <Input {...field} placeholder="My MCP Server" />
+ </FormControl>
+ )}
+ />
+
+ <Controller
+ control={control}
+ name="description"
+ render={({ field, fieldState: { error } }) => (
+ <FormControl label="Description" isError={Boolean(error)} errorText={error?.message}>
+ <TextArea
+ {...field}
+ placeholder="Optional description for this MCP server"
+ rows={3}
+ />
+ </FormControl>
+ )}
+ />
+
+ <div className="mt-6 flex justify-end gap-4">
+ <Button onClick={handleClose} colorSchema="secondary" type="button">
+ Cancel
+ </Button>
+ <Button
+ type="submit"
+ colorSchema="primary"
+ isLoading={isSubmitting || updateMcpServer.isPending}
+ isDisabled={isSubmitting || updateMcpServer.isPending}
+ >
+ Save Changes
+ </Button>
+ </div>
+ </form>
+ </ModalContent>
+ </Modal>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServerRow.tsx b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServerRow.tsx
index 3e4c7f3fd1..fb6a6222d2 100644
--- a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServerRow.tsx
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServerRow.tsx
@@ -1,6 +1,7 @@
import { useCallback } from "react";
import { faCheck, faCopy, faEdit, faEllipsisV, faTrash } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { useNavigate, useParams } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
import {
@@ -22,6 +23,8 @@ interface Props {
}
export const MCPServerRow = ({ server, onEditServer, onDeleteServer }: Props) => {
+ const navigate = useNavigate();
+ const { orgId, projectId } = useParams({ strict: false });
const [isIdCopied, setIsIdCopied] = useToggle(false);
const handleCopyId = useCallback(() => {
@@ -36,6 +39,13 @@ export const MCPServerRow = ({ server, onEditServer, onDeleteServer }: Props) =>
setTimeout(() => setIsIdCopied.off(), 2000);
}, [setIsIdCopied, server.id]);
+ const handleRowClick = () => {
+ navigate({
+ to: "/organizations/$orgId/projects/ai/$projectId/mcp-servers/$serverId",
+ params: { orgId: orgId!, projectId: projectId!, serverId: server.id }
+ });
+ };
+
const getStatusBadge = (status: AiMcpServerStatus) => {
const statusConfig = {
[AiMcpServerStatus.ACTIVE]: {
@@ -63,7 +73,10 @@ export const MCPServerRow = ({ server, onEditServer, onDeleteServer }: Props) =>
};
return (
- <Tr className="h-10 transition-colors duration-100 hover:bg-mineshaft-700">
+ <Tr
+ className="h-10 cursor-pointer transition-colors duration-100 hover:bg-mineshaft-700"
+ onClick={handleRowClick}
+ >
<Td>
<span className="text-mineshaft-300">{server.name}</span>
</Td>
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServersTab.tsx b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServersTab.tsx
index 5ecbdabb71..5f4310713a 100644
--- a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServersTab.tsx
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServersTab.tsx
@@ -7,10 +7,12 @@ import { Button, DeleteActionModal } from "@app/components/v2";
import { TAiMcpServer, useDeleteAiMcpServer } from "@app/hooks/api";
import { AddMCPServerModal } from "./AddMCPServerModal";
+import { EditMCPServerModal } from "./EditMCPServerModal";
import { MCPServerList } from "./MCPServerList";
export const MCPServersTab = () => {
const [isAddModalOpen, setIsAddModalOpen] = useState(false);
+ const [isEditModalOpen, setIsEditModalOpen] = useState(false);
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
const [selectedServer, setSelectedServer] = useState<TAiMcpServer | null>(null);
@@ -22,11 +24,7 @@ export const MCPServersTab = () => {
const handleEditServer = (server: TAiMcpServer) => {
setSelectedServer(server);
- // TODO: Implement edit modal
- createNotification({
- text: `Edit ${server.name} - Coming soon`,
- type: "info"
- });
+ setIsEditModalOpen(true);
};
const handleDeleteServer = (server: TAiMcpServer) => {
@@ -79,6 +77,17 @@ export const MCPServersTab = () => {
<AddMCPServerModal isOpen={isAddModalOpen} onOpenChange={setIsAddModalOpen} />
+ <EditMCPServerModal
+ isOpen={isEditModalOpen}
+ onOpenChange={(isOpen) => {
+ setIsEditModalOpen(isOpen);
+ if (!isOpen) {
+ setSelectedServer(null);
+ }
+ }}
+ server={selectedServer}
+ />
+
{selectedServer && (
<DeleteActionModal
isOpen={isDeleteModalOpen}
diff --git a/frontend/src/pages/ai/MCPServerDetailPage/MCPServerDetailPage.tsx b/frontend/src/pages/ai/MCPServerDetailPage/MCPServerDetailPage.tsx
new file mode 100644
index 0000000000..30def012ee
--- /dev/null
+++ b/frontend/src/pages/ai/MCPServerDetailPage/MCPServerDetailPage.tsx
@@ -0,0 +1,191 @@
+import { useState } from "react";
+import { Helmet } from "react-helmet";
+import { faBan, faChevronLeft, faEllipsisV, faServer } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { useNavigate, useParams } from "@tanstack/react-router";
+
+import { createNotification } from "@app/components/notifications";
+import {
+ Button,
+ ContentLoader,
+ DeleteActionModal,
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuTrigger,
+ EmptyState
+} from "@app/components/v2";
+import { useDeleteAiMcpServer, useGetAiMcpServerById } from "@app/hooks/api";
+
+import { EditMCPServerModal } from "../MCPPage/components/MCPServersTab/EditMCPServerModal";
+import {
+ MCPServerAvailableToolsSection,
+ MCPServerConnectionSection,
+ MCPServerCredentialsSection,
+ MCPServerDetailsSection
+} from "./components";
+
+const MCPServerStatusBadge = ({ status }: { status: string }) => {
+ const statusConfig: Record<string, { color: string; label: string }> = {
+ active: { color: "bg-emerald-500", label: "Active" },
+ inactive: { color: "bg-red-500", label: "Inactive" },
+ uninitialized: { color: "bg-yellow-500", label: "Uninitialized" }
+ };
+
+ const config = statusConfig[status] || statusConfig.uninitialized;
+
+ return (
+ <div className="flex items-center gap-2 rounded-full border border-mineshaft-500 bg-mineshaft-800 px-3 py-1">
+ <div className={`h-2 w-2 rounded-full ${config.color}`} />
+ <span className="text-sm text-mineshaft-200">{config.label}</span>
+ </div>
+ );
+};
+
+const PageContent = () => {
+ const navigate = useNavigate();
+ const params = useParams({
+ strict: false
+ }) as { serverId?: string; projectId?: string; orgId?: string };
+
+ const { serverId, projectId, orgId } = params;
+
+ const [isEditModalOpen, setIsEditModalOpen] = useState(false);
+ const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
+
+ const { data: mcpServer, isPending } = useGetAiMcpServerById(serverId!, {
+ refetchInterval: 30000,
+ enabled: Boolean(serverId)
+ });
+
+ const deleteServer = useDeleteAiMcpServer();
+
+ if (isPending) {
+ return (
+ <div className="flex h-full w-full items-center justify-center">
+ <ContentLoader />
+ </div>
+ );
+ }
+
+ if (!mcpServer) {
+ return (
+ <div className="flex h-full w-full items-center justify-center px-20">
+ <EmptyState
+ className="max-w-2xl rounded-md text-center"
+ icon={faBan}
+ title={`Could not find MCP Server with ID ${serverId}`}
+ />
+ </div>
+ );
+ }
+
+ const handleBack = () => {
+ navigate({
+ to: "/organizations/$orgId/projects/ai/$projectId/overview",
+ params: { orgId: orgId!, projectId: projectId! }
+ });
+ };
+
+ const handleDeleteConfirm = async () => {
+ if (!mcpServer) return;
+
+ try {
+ await deleteServer.mutateAsync({ serverId: mcpServer.id });
+ createNotification({
+ text: `MCP server "${mcpServer.name}" deleted successfully`,
+ type: "success"
+ });
+ handleBack();
+ } catch (error) {
+ console.error("Failed to delete MCP server:", error);
+ createNotification({
+ text: "Failed to delete MCP server",
+ type: "error"
+ });
+ }
+ };
+
+ return (
+ <div className="container mx-auto flex max-w-7xl flex-col px-6 py-6 text-mineshaft-50">
+ <button
+ type="button"
+ onClick={handleBack}
+ className="mb-4 flex items-center gap-1 text-sm text-bunker-300 hover:text-primary-400"
+ >
+ <FontAwesomeIcon icon={faChevronLeft} className="text-xs" />
+ MCP Servers
+ </button>
+
+ <div className="mb-6 flex items-center justify-between">
+ <div className="flex items-center gap-4">
+ <div className="flex h-12 w-12 items-center justify-center rounded-lg bg-mineshaft-700">
+ <FontAwesomeIcon icon={faServer} className="text-xl text-primary" />
+ </div>
+ <div>
+ <h1 className="text-2xl font-semibold text-mineshaft-100">{mcpServer.name}</h1>
+ <p className="text-sm text-bunker-300">MCP Server</p>
+ </div>
+ </div>
+ <div className="flex items-center gap-3">
+ <MCPServerStatusBadge status={mcpServer.status} />
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="outline_bg" size="sm">
+ <FontAwesomeIcon icon={faEllipsisV} />
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuItem onClick={() => setIsEditModalOpen(true)}>
+ Edit Server
+ </DropdownMenuItem>
+ <DropdownMenuItem onClick={() => setIsDeleteModalOpen(true)} className="text-red-500">
+ Delete Server
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </div>
+ </div>
+
+ <div className="flex gap-6">
+ {/* Left Column - Details, Connection, Credentials */}
+ <div className="flex w-80 flex-col gap-4">
+ <MCPServerDetailsSection server={mcpServer} onEdit={() => setIsEditModalOpen(true)} />
+ <MCPServerConnectionSection server={mcpServer} />
+ <MCPServerCredentialsSection server={mcpServer} />
+ </div>
+
+ {/* Right Column - Available Tools */}
+ <div className="flex flex-1 flex-col gap-4">
+ <MCPServerAvailableToolsSection serverId={mcpServer.id} />
+ </div>
+ </div>
+
+ <EditMCPServerModal
+ isOpen={isEditModalOpen}
+ onOpenChange={setIsEditModalOpen}
+ server={mcpServer}
+ />
+
+ <DeleteActionModal
+ isOpen={isDeleteModalOpen}
+ title={`Delete MCP Server ${mcpServer.name}?`}
+ onChange={(isOpen) => setIsDeleteModalOpen(isOpen)}
+ deleteKey={mcpServer.name}
+ onDeleteApproved={handleDeleteConfirm}
+ />
+ </div>
+ );
+};
+
+export const MCPServerDetailPage = () => {
+ return (
+ <>
+ <Helmet>
+ <title>MCP Server | Infisical</title>
+ <link rel="icon" href="/infisical.ico" />
+ </Helmet>
+ <PageContent />
+ </>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerAvailableToolsSection.tsx b/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerAvailableToolsSection.tsx
new file mode 100644
index 0000000000..7022e58b7a
--- /dev/null
+++ b/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerAvailableToolsSection.tsx
@@ -0,0 +1,88 @@
+import { faRefresh } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+
+import {
+ Button,
+ EmptyState,
+ Table,
+ TableContainer,
+ TBody,
+ Td,
+ Th,
+ THead,
+ Tr
+} from "@app/components/v2";
+import { useListAiMcpServerTools, useSyncAiMcpServerTools } from "@app/hooks/api";
+
+type Props = {
+ serverId: string;
+};
+
+export const MCPServerAvailableToolsSection = ({ serverId }: Props) => {
+ const { data: toolsData, isPending } = useListAiMcpServerTools({ serverId });
+ const syncTools = useSyncAiMcpServerTools();
+
+ const tools = toolsData?.tools || [];
+
+ const handleSyncTools = async () => {
+ await syncTools.mutateAsync({ serverId });
+ };
+
+ return (
+ <div className="flex w-full flex-col rounded-lg border border-mineshaft-600 bg-mineshaft-900">
+ <div className="flex items-center justify-between border-b border-mineshaft-600 px-4 py-3">
+ <div>
+ <h3 className="font-medium text-mineshaft-100">Available Tools</h3>
+ <p className="text-sm text-bunker-300">
+ Tools provided by this MCP server that can be enabled in endpoints
+ </p>
+ </div>
+ <Button
+ variant="outline_bg"
+ size="sm"
+ leftIcon={<FontAwesomeIcon icon={faRefresh} />}
+ onClick={handleSyncTools}
+ isLoading={syncTools.isPending}
+ >
+ Sync Tools
+ </Button>
+ </div>
+ <TableContainer>
+ <Table>
+ <THead>
+ <Tr>
+ <Th className="w-1/3">Tool Name</Th>
+ <Th>Description</Th>
+ </Tr>
+ </THead>
+ <TBody>
+ {isPending && (
+ <Tr>
+ <Td colSpan={2} className="text-center text-mineshaft-400">
+ Loading tools...
+ </Td>
+ </Tr>
+ )}
+ {!isPending && tools.length === 0 && (
+ <Tr>
+ <Td colSpan={2}>
+ <EmptyState title="No tools available" className="py-8" />
+ </Td>
+ </Tr>
+ )}
+ {tools.map((tool) => (
+ <Tr key={tool.id} className="hover:bg-mineshaft-700">
+ <Td>
+ <code className="rounded bg-mineshaft-700 px-2 py-1 font-mono text-sm text-mineshaft-200">
+ {tool.name}
+ </code>
+ </Td>
+ <Td className="text-mineshaft-300">{tool.description || "-"}</Td>
+ </Tr>
+ ))}
+ </TBody>
+ </Table>
+ </TableContainer>
+ </div>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerConnectionSection.tsx b/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerConnectionSection.tsx
new file mode 100644
index 0000000000..4f62ed78f6
--- /dev/null
+++ b/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerConnectionSection.tsx
@@ -0,0 +1,33 @@
+import { GenericFieldLabel } from "@app/components/v2";
+import { AiMcpServerAuthMethod, TAiMcpServer } from "@app/hooks/api";
+
+type Props = {
+ server: TAiMcpServer;
+};
+
+const getAuthMethodLabel = (method: AiMcpServerAuthMethod) => {
+ const labels: Record<AiMcpServerAuthMethod, string> = {
+ [AiMcpServerAuthMethod.BASIC]: "Basic Auth",
+ [AiMcpServerAuthMethod.BEARER]: "API Token",
+ [AiMcpServerAuthMethod.OAUTH]: "OAuth"
+ };
+ return labels[method] || "Unknown";
+};
+
+export const MCPServerConnectionSection = ({ server }: Props) => {
+ return (
+ <div className="flex w-full flex-col gap-3 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-4 py-3">
+ <div className="flex items-center justify-between border-b border-mineshaft-400 pb-2">
+ <h3 className="font-medium text-mineshaft-100">Connection</h3>
+ </div>
+ <div className="space-y-3">
+ <GenericFieldLabel label="Endpoint" truncate>
+ {server.url}
+ </GenericFieldLabel>
+ <GenericFieldLabel label="Authentication">
+ {getAuthMethodLabel(server.authMethod)}
+ </GenericFieldLabel>
+ </div>
+ </div>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerCredentialsSection.tsx b/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerCredentialsSection.tsx
new file mode 100644
index 0000000000..54cfe7d9a9
--- /dev/null
+++ b/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerCredentialsSection.tsx
@@ -0,0 +1,29 @@
+import { GenericFieldLabel } from "@app/components/v2";
+import { AiMcpServerCredentialMode, TAiMcpServer } from "@app/hooks/api";
+
+type Props = {
+ server: TAiMcpServer;
+};
+
+const getCredentialModeLabel = (mode: AiMcpServerCredentialMode) => {
+ const labels: Record<AiMcpServerCredentialMode, string> = {
+ [AiMcpServerCredentialMode.SHARED]: "Shared Credentials",
+ [AiMcpServerCredentialMode.PERSONAL]: "Personal Credentials"
+ };
+ return labels[mode] || "Unknown";
+};
+
+export const MCPServerCredentialsSection = ({ server }: Props) => {
+ return (
+ <div className="flex w-full flex-col gap-3 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-4 py-3">
+ <div className="flex items-center justify-between border-b border-mineshaft-400 pb-2">
+ <h3 className="font-medium text-mineshaft-100">Credentials</h3>
+ </div>
+ <div className="space-y-3">
+ <GenericFieldLabel label="Credential Mode">
+ {getCredentialModeLabel(server.credentialMode)}
+ </GenericFieldLabel>
+ </div>
+ </div>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerDetailsSection.tsx b/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerDetailsSection.tsx
new file mode 100644
index 0000000000..bcc828b235
--- /dev/null
+++ b/frontend/src/pages/ai/MCPServerDetailPage/components/MCPServerDetailsSection.tsx
@@ -0,0 +1,60 @@
+import { faEdit } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { format } from "date-fns";
+
+import { GenericFieldLabel, IconButton } from "@app/components/v2";
+import { AiMcpServerStatus, TAiMcpServer } from "@app/hooks/api";
+
+type Props = {
+ server: TAiMcpServer;
+ onEdit: VoidFunction;
+};
+
+const getStatusLabel = (status: AiMcpServerStatus) => {
+ const labels: Record<AiMcpServerStatus, string> = {
+ [AiMcpServerStatus.ACTIVE]: "Active",
+ [AiMcpServerStatus.INACTIVE]: "Inactive",
+ [AiMcpServerStatus.UNINITIALIZED]: "Uninitialized"
+ };
+ return labels[status] || "Unknown";
+};
+
+const getStatusColor = (status: AiMcpServerStatus) => {
+ const colors: Record<AiMcpServerStatus, string> = {
+ [AiMcpServerStatus.ACTIVE]: "bg-emerald-500",
+ [AiMcpServerStatus.INACTIVE]: "bg-red-500",
+ [AiMcpServerStatus.UNINITIALIZED]: "bg-yellow-500"
+ };
+ return colors[status] || "bg-yellow-500";
+};
+
+export const MCPServerDetailsSection = ({ server, onEdit }: Props) => {
+ return (
+ <div className="flex w-full flex-col gap-3 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-4 py-3">
+ <div className="flex items-center justify-between border-b border-mineshaft-400 pb-2">
+ <h3 className="font-medium text-mineshaft-100">Details</h3>
+ <IconButton
+ variant="plain"
+ colorSchema="secondary"
+ ariaLabel="Edit server details"
+ onClick={onEdit}
+ >
+ <FontAwesomeIcon icon={faEdit} />
+ </IconButton>
+ </div>
+ <div className="space-y-3">
+ <GenericFieldLabel label="Name">{server.name}</GenericFieldLabel>
+ <GenericFieldLabel label="Description">{server.description}</GenericFieldLabel>
+ <GenericFieldLabel label="Status">
+ <div className="flex items-center gap-2">
+ <div className={`h-2 w-2 rounded-full ${getStatusColor(server.status)}`} />
+ {getStatusLabel(server.status)}
+ </div>
+ </GenericFieldLabel>
+ <GenericFieldLabel label="Created">
+ {format(new Date(server.createdAt), "yyyy-MM-dd, hh:mm aaa")}
+ </GenericFieldLabel>
+ </div>
+ </div>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPServerDetailPage/components/index.ts b/frontend/src/pages/ai/MCPServerDetailPage/components/index.ts
new file mode 100644
index 0000000000..afe2a8f9a6
--- /dev/null
+++ b/frontend/src/pages/ai/MCPServerDetailPage/components/index.ts
@@ -0,0 +1,4 @@
+export { MCPServerAvailableToolsSection } from "./MCPServerAvailableToolsSection";
+export { MCPServerConnectionSection } from "./MCPServerConnectionSection";
+export { MCPServerCredentialsSection } from "./MCPServerCredentialsSection";
+export { MCPServerDetailsSection } from "./MCPServerDetailsSection";
diff --git a/frontend/src/pages/ai/MCPServerDetailPage/index.ts b/frontend/src/pages/ai/MCPServerDetailPage/index.ts
new file mode 100644
index 0000000000..7eb071aa2d
--- /dev/null
+++ b/frontend/src/pages/ai/MCPServerDetailPage/index.ts
@@ -0,0 +1 @@
+export { MCPServerDetailPage } from "./MCPServerDetailPage";
diff --git a/frontend/src/pages/ai/MCPServerDetailPage/route.tsx b/frontend/src/pages/ai/MCPServerDetailPage/route.tsx
new file mode 100644
index 0000000000..aa42eee6be
--- /dev/null
+++ b/frontend/src/pages/ai/MCPServerDetailPage/route.tsx
@@ -0,0 +1,26 @@
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+
+import { MCPServerDetailPage } from "./MCPServerDetailPage";
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/mcp-servers/$serverId"
+)({
+ component: MCPServerDetailPage,
+ beforeLoad: ({ context, params }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "MCP Servers",
+ link: linkOptions({
+ to: "/organizations/$orgId/projects/ai/$projectId/overview",
+ params: { orgId: params.orgId, projectId: params.projectId }
+ })
+ },
+ {
+ label: "Server Details"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.ts
index 55d8edad30..8ccd6296f3 100644
--- a/frontend/src/routeTree.gen.ts
+++ b/frontend/src/routeTree.gen.ts
@@ -162,6 +162,7 @@ import { Route as pamPamSessionsByIDPageRouteImport } from './pages/pam/PamSessi
import { Route as certManagerPkiSubscriberDetailsByIDPageRouteImport } from './pages/cert-manager/PkiSubscriberDetailsByIDPage/route'
import { Route as certManagerPkiSyncDetailsByIDPageRouteImport } from './pages/cert-manager/PkiSyncDetailsByIDPage/route'
import { Route as certManagerCertAuthDetailsByIDPageRouteImport } from './pages/cert-manager/CertAuthDetailsByIDPage/route'
+import { Route as aiMCPServerDetailPageRouteImport } from './pages/ai/MCPServerDetailPage/route'
import { Route as secretScanningSecretScanningDataSourcesPageRouteImport } from './pages/secret-scanning/SecretScanningDataSourcesPage/route'
import { Route as secretManagerIntegrationsListPageRouteImport } from './pages/secret-manager/IntegrationsListPage/route'
import { Route as pamPamSessionsPageRouteImport } from './pages/pam/PamSessionsPage/route'
@@ -1602,6 +1603,14 @@ const certManagerCertAuthDetailsByIDPageRouteRoute =
getParentRoute: () => certManagerLayoutRoute,
} as any)
+const aiMCPServerDetailPageRouteRoute = aiMCPServerDetailPageRouteImport.update(
+ {
+ id: '/mcp-servers/$serverId',
+ path: '/mcp-servers/$serverId',
+ getParentRoute: () => aiLayoutRoute,
+ } as any,
+)
+
const secretScanningSecretScanningDataSourcesPageRouteRoute =
secretScanningSecretScanningDataSourcesPageRouteImport.update({
id: '/',
@@ -3306,6 +3315,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof secretScanningSecretScanningDataSourcesPageRouteImport
parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretScanningProjectIdSecretScanningLayoutDataSourcesImport
}
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/mcp-servers/$serverId': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/mcp-servers/$serverId'
+ path: '/mcp-servers/$serverId'
+ fullPath: '/organizations/$orgId/projects/ai/$projectId/mcp-servers/$serverId'
+ preLoaderRoute: typeof aiMCPServerDetailPageRouteImport
+ parentRoute: typeof aiLayoutImport
+ }
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/ca/$caId': {
id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/ca/$caId'
path: '/ca/$caId'
@@ -4188,6 +4204,7 @@ interface aiLayoutRouteChildren {
aiSettingsPageRouteRoute: typeof aiSettingsPageRouteRoute
projectAccessControlPageRouteAiRoute: typeof projectAccessControlPageRouteAiRoute
projectAuditLogsPageRouteAiRoute: typeof projectAuditLogsPageRouteAiRoute
+ aiMCPServerDetailPageRouteRoute: typeof aiMCPServerDetailPageRouteRoute
projectGroupDetailsByIDPageRouteAiRoute: typeof projectGroupDetailsByIDPageRouteAiRoute
projectIdentityDetailsByIDPageRouteAiRoute: typeof projectIdentityDetailsByIDPageRouteAiRoute
projectMemberDetailsByIDPageRouteAiRoute: typeof projectMemberDetailsByIDPageRouteAiRoute
@@ -4199,6 +4216,7 @@ const aiLayoutRouteChildren: aiLayoutRouteChildren = {
aiSettingsPageRouteRoute: aiSettingsPageRouteRoute,
projectAccessControlPageRouteAiRoute: projectAccessControlPageRouteAiRoute,
projectAuditLogsPageRouteAiRoute: projectAuditLogsPageRouteAiRoute,
+ aiMCPServerDetailPageRouteRoute: aiMCPServerDetailPageRouteRoute,
projectGroupDetailsByIDPageRouteAiRoute:
projectGroupDetailsByIDPageRouteAiRoute,
projectIdentityDetailsByIDPageRouteAiRoute:
@@ -5403,6 +5421,7 @@ export interface FileRoutesByFullPath {
'/organizations/$orgId/projects/pam/$projectId/sessions/': typeof pamPamSessionsPageRouteRoute
'/organizations/$orgId/projects/secret-management/$projectId/integrations/': typeof secretManagerIntegrationsListPageRouteRoute
'/organizations/$orgId/projects/secret-scanning/$projectId/data-sources/': typeof secretScanningSecretScanningDataSourcesPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId/mcp-servers/$serverId': typeof aiMCPServerDetailPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/ca/$caId': typeof certManagerCertAuthDetailsByIDPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/integrations/$syncId': typeof certManagerPkiSyncDetailsByIDPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/subscribers/$subscriberName': typeof certManagerPkiSubscriberDetailsByIDPageRouteRoute
@@ -5642,6 +5661,7 @@ export interface FileRoutesByTo {
'/organizations/$orgId/projects/pam/$projectId/sessions': typeof pamPamSessionsPageRouteRoute
'/organizations/$orgId/projects/secret-management/$projectId/integrations': typeof secretManagerIntegrationsListPageRouteRoute
'/organizations/$orgId/projects/secret-scanning/$projectId/data-sources': typeof secretScanningSecretScanningDataSourcesPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId/mcp-servers/$serverId': typeof aiMCPServerDetailPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/ca/$caId': typeof certManagerCertAuthDetailsByIDPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/integrations/$syncId': typeof certManagerPkiSyncDetailsByIDPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/subscribers/$subscriberName': typeof certManagerPkiSubscriberDetailsByIDPageRouteRoute
@@ -5905,6 +5925,7 @@ export interface FileRoutesById {
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/': typeof pamPamSessionsPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/': typeof secretManagerIntegrationsListPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/data-sources/': typeof secretScanningSecretScanningDataSourcesPageRouteRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/mcp-servers/$serverId': typeof aiMCPServerDetailPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/ca/$caId': typeof certManagerCertAuthDetailsByIDPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/integrations/$syncId': typeof certManagerPkiSyncDetailsByIDPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/subscribers/$subscriberName': typeof certManagerPkiSubscriberDetailsByIDPageRouteRoute
@@ -6159,6 +6180,7 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/pam/$projectId/sessions/'
| '/organizations/$orgId/projects/secret-management/$projectId/integrations/'
| '/organizations/$orgId/projects/secret-scanning/$projectId/data-sources/'
+ | '/organizations/$orgId/projects/ai/$projectId/mcp-servers/$serverId'
| '/organizations/$orgId/projects/cert-management/$projectId/ca/$caId'
| '/organizations/$orgId/projects/cert-management/$projectId/integrations/$syncId'
| '/organizations/$orgId/projects/cert-management/$projectId/subscribers/$subscriberName'
@@ -6397,6 +6419,7 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/pam/$projectId/sessions'
| '/organizations/$orgId/projects/secret-management/$projectId/integrations'
| '/organizations/$orgId/projects/secret-scanning/$projectId/data-sources'
+ | '/organizations/$orgId/projects/ai/$projectId/mcp-servers/$serverId'
| '/organizations/$orgId/projects/cert-management/$projectId/ca/$caId'
| '/organizations/$orgId/projects/cert-management/$projectId/integrations/$syncId'
| '/organizations/$orgId/projects/cert-management/$projectId/subscribers/$subscriberName'
@@ -6658,6 +6681,7 @@ export interface FileRouteTypes {
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/data-sources/'
+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/mcp-servers/$serverId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/ca/$caId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/integrations/$syncId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/subscribers/$subscriberName'
@@ -7287,6 +7311,7 @@ export const routeTree = rootRoute
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/settings",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/access-management",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs",
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/mcp-servers/$serverId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/groups/$groupId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/identities/$identityId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/members/$membershipId",
@@ -7708,6 +7733,10 @@ export const routeTree = rootRoute
"filePath": "secret-scanning/SecretScanningDataSourcesPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/data-sources"
},
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/mcp-servers/$serverId": {
+ "filePath": "ai/MCPServerDetailPage/route.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout"
+ },
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/ca/$caId": {
"filePath": "cert-manager/CertAuthDetailsByIDPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout"
diff --git a/frontend/src/routes.ts b/frontend/src/routes.ts
index d0f1916dbf..4293a93aa5 100644
--- a/frontend/src/routes.ts
+++ b/frontend/src/routes.ts
@@ -301,6 +301,7 @@ const certManagerRoutes = route("/organizations/$orgId/projects/cert-management/
const aiRoutes = route("/organizations/$orgId/projects/ai/$projectId", [
layout("ai-layout", "ai/layout.tsx", [
+ route("/mcp-servers/$serverId", "ai/MCPServerDetailPage/route.tsx"),
route("/overview", "ai/MCPPage/route.tsx"),
route("/settings", "ai/SettingsPage/route.tsx"),
route("/audit-logs", "project/AuditLogsPage/route-ai.tsx"),