Skip to content

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

feat: ai project scaffolding + mcp server create

Sheen Capadnganc62158dd18bf
diff --git a/backend/src/@types/fastify.d.ts b/backend/src/@types/fastify.d.ts
index 02394de4df..edfeab0230 100644
--- a/backend/src/@types/fastify.d.ts
+++ b/backend/src/@types/fastify.d.ts
@@ -5,6 +5,7 @@ import { Cluster, Redis } from "ioredis";
import { TUsers } from "@app/db/schemas";
import { TAccessApprovalPolicyServiceFactory } from "@app/ee/services/access-approval-policy/access-approval-policy-types";
import { TAccessApprovalRequestServiceFactory } from "@app/ee/services/access-approval-request/access-approval-request-types";
+import { TAiMcpServerServiceFactory } from "@app/ee/services/ai-mcp-server/ai-mcp-server-service";
import { TAssumePrivilegeServiceFactory } from "@app/ee/services/assume-privilege/assume-privilege-types";
import { TAuditLogServiceFactory, TCreateAuditLogDTO } from "@app/ee/services/audit-log/audit-log-types";
import { TAuditLogStreamServiceFactory } from "@app/ee/services/audit-log-stream/audit-log-stream-service";
@@ -361,6 +362,7 @@ declare module "fastify" {
convertor: TConvertorServiceFactory;
subOrganization: TSubOrgServiceFactory;
pkiAlertV2: TPkiAlertV2ServiceFactory;
+ aiMcpServer: TAiMcpServerServiceFactory;
};
// this is exclusive use for middlewares in which we need to inject data
// everywhere else access using service layer
diff --git a/backend/src/@types/knex.d.ts b/backend/src/@types/knex.d.ts
index 4bdd3849d1..462c2c8e94 100644
--- a/backend/src/@types/knex.d.ts
+++ b/backend/src/@types/knex.d.ts
@@ -20,6 +20,21 @@ import {
TAdditionalPrivileges,
TAdditionalPrivilegesInsert,
TAdditionalPrivilegesUpdate,
+ TAiMcpEndpoints,
+ TAiMcpEndpointServers,
+ TAiMcpEndpointServersInsert,
+ TAiMcpEndpointServersUpdate,
+ TAiMcpEndpointServerTools,
+ TAiMcpEndpointServerToolsInsert,
+ TAiMcpEndpointServerToolsUpdate,
+ TAiMcpEndpointsInsert,
+ TAiMcpEndpointsUpdate,
+ TAiMcpServers,
+ TAiMcpServersInsert,
+ TAiMcpServersUpdate,
+ TAiMcpServerTools,
+ TAiMcpServerToolsInsert,
+ TAiMcpServerToolsUpdate,
TApiKeys,
TApiKeysInsert,
TApiKeysUpdate,
@@ -573,16 +588,16 @@ import {
TWorkflowIntegrationsInsert,
TWorkflowIntegrationsUpdate
} from "@app/db/schemas";
-import {
- TCertificateRequests,
- TCertificateRequestsInsert,
- TCertificateRequestsUpdate
-} from "@app/db/schemas/certificate-requests";
import {
TAccessApprovalPoliciesEnvironments,
TAccessApprovalPoliciesEnvironmentsInsert,
TAccessApprovalPoliciesEnvironmentsUpdate
} from "@app/db/schemas/access-approval-policies-environments";
+import {
+ TCertificateRequests,
+ TCertificateRequestsInsert,
+ TCertificateRequestsUpdate
+} from "@app/db/schemas/certificate-requests";
import {
TIdentityAuthTemplates,
TIdentityAuthTemplatesInsert,
@@ -1475,5 +1490,26 @@ declare module "knex/types/tables" {
TVaultExternalMigrationConfigsInsert,
TVaultExternalMigrationConfigsUpdate
>;
+ [TableName.AiMcpServer]: KnexOriginal.CompositeTableType<TAiMcpServers, TAiMcpServersInsert, TAiMcpServersUpdate>;
+ [TableName.AiMcpServerTool]: KnexOriginal.CompositeTableType<
+ TAiMcpServerTools,
+ TAiMcpServerToolsInsert,
+ TAiMcpServerToolsUpdate
+ >;
+ [TableName.AiMcpEndpoint]: KnexOriginal.CompositeTableType<
+ TAiMcpEndpoints,
+ TAiMcpEndpointsInsert,
+ TAiMcpEndpointsUpdate
+ >;
+ [TableName.AiMcpEndpointServer]: KnexOriginal.CompositeTableType<
+ TAiMcpEndpointServers,
+ TAiMcpEndpointServersInsert,
+ TAiMcpEndpointServersUpdate
+ >;
+ [TableName.AiMcpEndpointServerTool]: KnexOriginal.CompositeTableType<
+ TAiMcpEndpointServerTools,
+ TAiMcpEndpointServerToolsInsert,
+ TAiMcpEndpointServerToolsUpdate
+ >;
}
}
diff --git a/backend/src/db/migrations/20251204160117_add-ai-mcp-product.ts b/backend/src/db/migrations/20251204160117_add-ai-mcp-product.ts
new file mode 100644
index 0000000000..be6f7cf5a0
--- /dev/null
+++ b/backend/src/db/migrations/20251204160117_add-ai-mcp-product.ts
@@ -0,0 +1,85 @@
+import { Knex } from "knex";
+
+import { TableName } from "../schemas";
+import { createOnUpdateTrigger, dropOnUpdateTrigger } from "../utils";
+
+export async function up(knex: Knex): Promise<void> {
+ if (!(await knex.schema.hasTable(TableName.AiMcpServer))) {
+ await knex.schema.createTable(TableName.AiMcpServer, (t) => {
+ t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
+ t.string("name").notNullable();
+ t.string("url").notNullable();
+ t.string("description");
+ t.string("status");
+ t.string("credentialMode");
+ t.string("authMethod");
+ t.binary("encryptedCredentials");
+ t.string("projectId").notNullable();
+ t.foreign("projectId").references("id").inTable(TableName.Project).onDelete("CASCADE");
+ t.timestamps(true, true, true);
+ });
+
+ await createOnUpdateTrigger(knex, TableName.AiMcpServer);
+ }
+
+ if (!(await knex.schema.hasTable(TableName.AiMcpServerTool))) {
+ await knex.schema.createTable(TableName.AiMcpServerTool, (t) => {
+ t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
+ t.string("name").notNullable();
+ t.string("description");
+ t.jsonb("inputSchema");
+ t.uuid("aiMcpServerId").notNullable();
+ t.foreign("aiMcpServerId").references("id").inTable(TableName.AiMcpServer).onDelete("CASCADE");
+ });
+ }
+
+ if (!(await knex.schema.hasTable(TableName.AiMcpEndpoint))) {
+ await knex.schema.createTable(TableName.AiMcpEndpoint, (t) => {
+ t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
+ t.string("name").notNullable();
+ t.string("description");
+ t.string("status");
+ t.string("projectId").notNullable();
+ t.foreign("projectId").references("id").inTable(TableName.Project).onDelete("CASCADE");
+ t.timestamps(true, true, true);
+ });
+
+ await createOnUpdateTrigger(knex, TableName.AiMcpEndpoint);
+ }
+
+ if (!(await knex.schema.hasTable(TableName.AiMcpEndpointServer))) {
+ await knex.schema.createTable(TableName.AiMcpEndpointServer, (t) => {
+ t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
+ t.uuid("aiMcpEndpointId").notNullable();
+ t.foreign("aiMcpEndpointId").references("id").inTable(TableName.AiMcpEndpoint).onDelete("CASCADE");
+ t.uuid("aiMcpServerId").notNullable();
+ t.foreign("aiMcpServerId").references("id").inTable(TableName.AiMcpServer).onDelete("CASCADE");
+ t.unique(["aiMcpEndpointId", "aiMcpServerId"]);
+ });
+ }
+
+ if (!(await knex.schema.hasTable(TableName.AiMcpEndpointServerTool))) {
+ await knex.schema.createTable(TableName.AiMcpEndpointServerTool, (t) => {
+ t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
+ t.uuid("aiMcpEndpointId").notNullable();
+ t.foreign("aiMcpEndpointId").references("id").inTable(TableName.AiMcpEndpoint).onDelete("CASCADE");
+ t.uuid("aiMcpServerToolId").notNullable();
+ t.foreign("aiMcpServerToolId").references("id").inTable(TableName.AiMcpServerTool).onDelete("CASCADE");
+ t.boolean("isEnabled").defaultTo(false).notNullable();
+ t.unique(["aiMcpEndpointId", "aiMcpServerToolId"]);
+ });
+ }
+}
+
+export async function down(knex: Knex): Promise<void> {
+ await knex.schema.dropTableIfExists(TableName.AiMcpEndpointServerTool);
+ await knex.schema.dropTableIfExists(TableName.AiMcpEndpointServer);
+
+ await dropOnUpdateTrigger(knex, TableName.AiMcpEndpoint);
+ await knex.schema.dropTableIfExists(TableName.AiMcpEndpoint);
+
+ await knex.schema.dropTableIfExists(TableName.AiMcpServerTool);
+
+ await dropOnUpdateTrigger(knex, TableName.AiMcpServer);
+ await knex.schema.dropTableIfExists(TableName.AiMcpServer);
+}
diff --git a/backend/src/db/schemas/ai-mcp-endpoint-server-tools.ts b/backend/src/db/schemas/ai-mcp-endpoint-server-tools.ts
new file mode 100644
index 0000000000..273261e692
--- /dev/null
+++ b/backend/src/db/schemas/ai-mcp-endpoint-server-tools.ts
@@ -0,0 +1,21 @@
+// Code generated by automation script, DO NOT EDIT.
+// Automated by pulling database and generating zod schema
+// To update. Just run npm run generate:schema
+// Written by akhilmhdh.
+
+import { z } from "zod";
+
+import { TImmutableDBKeys } from "./models";
+
+export const AiMcpEndpointServerToolsSchema = z.object({
+ id: z.string().uuid(),
+ aiMcpEndpointId: z.string().uuid(),
+ aiMcpServerToolId: z.string().uuid(),
+ isEnabled: z.boolean().default(false)
+});
+
+export type TAiMcpEndpointServerTools = z.infer<typeof AiMcpEndpointServerToolsSchema>;
+export type TAiMcpEndpointServerToolsInsert = Omit<z.input<typeof AiMcpEndpointServerToolsSchema>, TImmutableDBKeys>;
+export type TAiMcpEndpointServerToolsUpdate = Partial<
+ Omit<z.input<typeof AiMcpEndpointServerToolsSchema>, TImmutableDBKeys>
+>;
diff --git a/backend/src/db/schemas/ai-mcp-endpoint-servers.ts b/backend/src/db/schemas/ai-mcp-endpoint-servers.ts
new file mode 100644
index 0000000000..4fd870d0db
--- /dev/null
+++ b/backend/src/db/schemas/ai-mcp-endpoint-servers.ts
@@ -0,0 +1,18 @@
+// Code generated by automation script, DO NOT EDIT.
+// Automated by pulling database and generating zod schema
+// To update. Just run npm run generate:schema
+// Written by akhilmhdh.
+
+import { z } from "zod";
+
+import { TImmutableDBKeys } from "./models";
+
+export const AiMcpEndpointServersSchema = z.object({
+ id: z.string().uuid(),
+ aiMcpEndpointId: z.string().uuid(),
+ aiMcpServerId: z.string().uuid()
+});
+
+export type TAiMcpEndpointServers = z.infer<typeof AiMcpEndpointServersSchema>;
+export type TAiMcpEndpointServersInsert = Omit<z.input<typeof AiMcpEndpointServersSchema>, TImmutableDBKeys>;
+export type TAiMcpEndpointServersUpdate = Partial<Omit<z.input<typeof AiMcpEndpointServersSchema>, TImmutableDBKeys>>;
diff --git a/backend/src/db/schemas/ai-mcp-endpoints.ts b/backend/src/db/schemas/ai-mcp-endpoints.ts
new file mode 100644
index 0000000000..b2c66987fb
--- /dev/null
+++ b/backend/src/db/schemas/ai-mcp-endpoints.ts
@@ -0,0 +1,22 @@
+// Code generated by automation script, DO NOT EDIT.
+// Automated by pulling database and generating zod schema
+// To update. Just run npm run generate:schema
+// Written by akhilmhdh.
+
+import { z } from "zod";
+
+import { TImmutableDBKeys } from "./models";
+
+export const AiMcpEndpointsSchema = z.object({
+ id: z.string().uuid(),
+ name: z.string(),
+ description: z.string().nullable().optional(),
+ status: z.string().nullable().optional(),
+ projectId: z.string(),
+ createdAt: z.date(),
+ updatedAt: z.date()
+});
+
+export type TAiMcpEndpoints = z.infer<typeof AiMcpEndpointsSchema>;
+export type TAiMcpEndpointsInsert = Omit<z.input<typeof AiMcpEndpointsSchema>, TImmutableDBKeys>;
+export type TAiMcpEndpointsUpdate = Partial<Omit<z.input<typeof AiMcpEndpointsSchema>, TImmutableDBKeys>>;
diff --git a/backend/src/db/schemas/ai-mcp-server-tools.ts b/backend/src/db/schemas/ai-mcp-server-tools.ts
new file mode 100644
index 0000000000..d3cd967fd9
--- /dev/null
+++ b/backend/src/db/schemas/ai-mcp-server-tools.ts
@@ -0,0 +1,20 @@
+// Code generated by automation script, DO NOT EDIT.
+// Automated by pulling database and generating zod schema
+// To update. Just run npm run generate:schema
+// Written by akhilmhdh.
+
+import { z } from "zod";
+
+import { TImmutableDBKeys } from "./models";
+
+export const AiMcpServerToolsSchema = z.object({
+ id: z.string().uuid(),
+ name: z.string(),
+ description: z.string().nullable().optional(),
+ inputSchema: z.unknown().nullable().optional(),
+ aiMcpServerId: z.string().uuid()
+});
+
+export type TAiMcpServerTools = z.infer<typeof AiMcpServerToolsSchema>;
+export type TAiMcpServerToolsInsert = Omit<z.input<typeof AiMcpServerToolsSchema>, TImmutableDBKeys>;
+export type TAiMcpServerToolsUpdate = Partial<Omit<z.input<typeof AiMcpServerToolsSchema>, TImmutableDBKeys>>;
diff --git a/backend/src/db/schemas/ai-mcp-servers.ts b/backend/src/db/schemas/ai-mcp-servers.ts
new file mode 100644
index 0000000000..ea92a450d6
--- /dev/null
+++ b/backend/src/db/schemas/ai-mcp-servers.ts
@@ -0,0 +1,28 @@
+// Code generated by automation script, DO NOT EDIT.
+// Automated by pulling database and generating zod schema
+// To update. Just run npm run generate:schema
+// Written by akhilmhdh.
+
+import { z } from "zod";
+
+import { zodBuffer } from "@app/lib/zod";
+
+import { TImmutableDBKeys } from "./models";
+
+export const AiMcpServersSchema = z.object({
+ id: z.string().uuid(),
+ name: z.string(),
+ url: z.string(),
+ description: z.string().nullable().optional(),
+ status: z.string().nullable().optional(),
+ credentialMode: z.string().nullable().optional(),
+ authMethod: z.string().nullable().optional(),
+ encryptedCredentials: zodBuffer.nullable().optional(),
+ projectId: z.string(),
+ createdAt: z.date(),
+ updatedAt: z.date()
+});
+
+export type TAiMcpServers = z.infer<typeof AiMcpServersSchema>;
+export type TAiMcpServersInsert = Omit<z.input<typeof AiMcpServersSchema>, TImmutableDBKeys>;
+export type TAiMcpServersUpdate = Partial<Omit<z.input<typeof AiMcpServersSchema>, TImmutableDBKeys>>;
diff --git a/backend/src/db/schemas/index.ts b/backend/src/db/schemas/index.ts
index 7db6e847d5..4d19832f44 100644
--- a/backend/src/db/schemas/index.ts
+++ b/backend/src/db/schemas/index.ts
@@ -4,6 +4,11 @@ export * from "./access-approval-policies-bypassers";
export * from "./access-approval-requests";
export * from "./access-approval-requests-reviewers";
export * from "./additional-privileges";
+export * from "./ai-mcp-endpoint-server-tools";
+export * from "./ai-mcp-endpoint-servers";
+export * from "./ai-mcp-endpoints";
+export * from "./ai-mcp-server-tools";
+export * from "./ai-mcp-servers";
export * from "./api-keys";
export * from "./app-connections";
export * from "./audit-log-streams";
diff --git a/backend/src/db/schemas/models.ts b/backend/src/db/schemas/models.ts
index 040d6e2785..b4b2b7d2cd 100644
--- a/backend/src/db/schemas/models.ts
+++ b/backend/src/db/schemas/models.ts
@@ -223,7 +223,14 @@ export enum TableName {
PkiAcmeOrder = "pki_acme_orders",
PkiAcmeOrderAuth = "pki_acme_order_auths",
PkiAcmeAuth = "pki_acme_auths",
- PkiAcmeChallenge = "pki_acme_challenges"
+ PkiAcmeChallenge = "pki_acme_challenges",
+
+ // AI
+ AiMcpServer = "ai_mcp_servers",
+ AiMcpServerTool = "ai_mcp_server_tools",
+ AiMcpEndpoint = "ai_mcp_endpoints",
+ AiMcpEndpointServer = "ai_mcp_endpoint_servers",
+ AiMcpEndpointServerTool = "ai_mcp_endpoint_server_tools"
}
export type TImmutableDBKeys = "id" | "createdAt" | "updatedAt" | "commitId";
@@ -316,7 +323,8 @@ export enum ProjectType {
KMS = "kms",
SSH = "ssh",
SecretScanning = "secret-scanning",
- PAM = "pam"
+ PAM = "pam",
+ AI = "ai"
}
export enum ActionProjectType {
diff --git a/backend/src/ee/routes/v1/ai-mcp-server-router.ts b/backend/src/ee/routes/v1/ai-mcp-server-router.ts
new file mode 100644
index 0000000000..2980fdb7e4
--- /dev/null
+++ b/backend/src/ee/routes/v1/ai-mcp-server-router.ts
@@ -0,0 +1,253 @@
+import { z } from "zod";
+
+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";
+import { verifyAuth } from "@app/server/plugins/auth/verify-auth";
+import { AuthMode } from "@app/services/auth/auth-type";
+
+// Common fields for MCP server creation
+const CreateMcpServerBaseSchema = z.object({
+ projectId: z.string().trim().min(1),
+ name: z.string().trim().min(1).max(64),
+ url: z.string().trim().url(),
+ description: z.string().trim().max(256).optional(),
+ credentialMode: z.nativeEnum(AiMcpServerCredentialMode)
+});
+
+const McpServerCredentialsSchema = z.discriminatedUnion("authMethod", [
+ z.object({
+ authMethod: z.literal(AiMcpServerAuthMethod.BASIC),
+ credentials: z.object({
+ username: z.string().min(1),
+ password: z.string().min(1)
+ })
+ }),
+ z.object({
+ authMethod: z.literal(AiMcpServerAuthMethod.BEARER),
+ credentials: z.object({
+ token: z.string().min(1)
+ })
+ }),
+ z.object({
+ authMethod: z.literal(AiMcpServerAuthMethod.OAUTH),
+ credentials: z.object({
+ accessToken: z.string().min(1),
+ refreshToken: z.string().optional(),
+ expiresAt: z.number().optional(),
+ tokenType: z.string().optional()
+ })
+ })
+]);
+
+export const registerAiMcpServerRouter = async (server: FastifyZodProvider) => {
+ server.route({
+ url: "/oauth/initiate",
+ method: "POST",
+ config: {
+ rateLimit: writeLimit
+ },
+ schema: {
+ body: z.object({
+ projectId: z.string().trim().min(1),
+ url: z.string().trim().url()
+ }),
+ response: {
+ 200: z.object({
+ authUrl: z.string(),
+ sessionId: z.string()
+ })
+ }
+ },
+ onRequest: verifyAuth([AuthMode.JWT]),
+ handler: async (req) => {
+ const result = await server.services.aiMcpServer.initiateOAuth({
+ projectId: req.body.projectId,
+ url: req.body.url,
+ actorId: req.permission.id,
+ actor: req.permission.type,
+ actorAuthMethod: req.permission.authMethod!,
+ actorOrgId: req.permission.orgId
+ });
+
+ return result;
+ }
+ });
+
+ // OAuth: Callback (redirect from MCP server)
+ server.route({
+ url: "/oauth/callback",
+ method: "GET",
+ config: {
+ rateLimit: writeLimit
+ },
+ schema: {
+ querystring: z.object({
+ code: z.string(),
+ state: z.string() // session ID
+ })
+ },
+ handler: async (req, res) => {
+ const { code, state: sessionId } = req.query;
+
+ try {
+ await server.services.aiMcpServer.handleOAuthCallback({
+ sessionId,
+ code
+ });
+
+ // Return HTML that closes the popup immediately
+ return await res.type("text/html").send(`
+ <!DOCTYPE html>
+ <html>
+ <head><title>OAuth Complete</title></head>
+ <body>
+ <script>window.close();</script>
+ </body>
+ </html>
+ `);
+ } catch {
+ // Return error HTML that closes immediately
+ return res.type("text/html").send(`
+ <!DOCTYPE html>
+ <html>
+ <head><title>OAuth Error</title></head>
+ <body>
+ <script>window.close();</script>
+ </body>
+ </html>
+ `);
+ }
+ }
+ });
+
+ server.route({
+ url: "/oauth/status/:sessionId",
+ method: "GET",
+ config: {
+ rateLimit: readLimit
+ },
+ schema: {
+ params: z.object({
+ sessionId: z.string()
+ }),
+ response: {
+ 200: z.object({
+ authorized: z.boolean(),
+ accessToken: z.string().optional(),
+ refreshToken: z.string().optional(),
+ expiresAt: z.number().optional(),
+ tokenType: z.string().optional()
+ })
+ }
+ },
+ onRequest: verifyAuth([AuthMode.JWT]),
+ handler: async (req) => {
+ const result = await server.services.aiMcpServer.getOAuthStatus({
+ sessionId: req.params.sessionId,
+ actorId: req.permission.id
+ });
+
+ return result;
+ }
+ });
+
+ // Create MCP Server
+ server.route({
+ url: "/",
+ method: "POST",
+ config: {
+ rateLimit: writeLimit
+ },
+ schema: {
+ body: CreateMcpServerBaseSchema.and(McpServerCredentialsSchema),
+ response: {
+ 200: z.object({
+ server: AiMcpServersSchema.omit({ encryptedCredentials: true })
+ })
+ }
+ },
+ onRequest: verifyAuth([AuthMode.JWT]),
+ handler: async (req) => {
+ const mcpServer = await server.services.aiMcpServer.createMcpServer({
+ ...req.body,
+ actorId: req.permission.id,
+ actor: req.permission.type,
+ actorAuthMethod: req.permission.authMethod!,
+ actorOrgId: req.permission.orgId
+ });
+
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ const { encryptedCredentials, ...serverWithoutCredentials } = mcpServer;
+
+ return { server: serverWithoutCredentials };
+ }
+ });
+
+ // List MCP Servers
+ server.route({
+ url: "/",
+ method: "GET",
+ config: {
+ rateLimit: readLimit
+ },
+ schema: {
+ querystring: z.object({
+ projectId: z.string().trim().min(1),
+ limit: z.coerce.number().min(1).max(100).default(100),
+ offset: z.coerce.number().min(0).default(0)
+ }),
+ response: {
+ 200: z.object({
+ servers: z.array(AiMcpServersSchema.omit({ encryptedCredentials: true })),
+ totalCount: z.number()
+ })
+ }
+ },
+ onRequest: verifyAuth([AuthMode.JWT]),
+ handler: async (req) => {
+ const mcpServers = await server.services.aiMcpServer.listMcpServers({
+ 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,
+ totalCount: mcpServers.length
+ };
+ }
+ });
+
+ // Delete MCP Server
+ server.route({
+ url: "/:serverId",
+ method: "DELETE",
+ config: {
+ rateLimit: writeLimit
+ },
+ 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.deleteMcpServer({
+ serverId: req.params.serverId
+ });
+
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ const { encryptedCredentials, ...serverWithoutCredentials } = mcpServer;
+
+ return { server: serverWithoutCredentials };
+ }
+ });
+};
diff --git a/backend/src/ee/routes/v1/index.ts b/backend/src/ee/routes/v1/index.ts
index 367c2833c9..4e7925e457 100644
--- a/backend/src/ee/routes/v1/index.ts
+++ b/backend/src/ee/routes/v1/index.ts
@@ -2,6 +2,7 @@ import { registerProjectTemplateRouter } from "@app/ee/routes/v1/project-templat
import { registerAccessApprovalPolicyRouter } from "./access-approval-policy-router";
import { registerAccessApprovalRequestRouter } from "./access-approval-request-router";
+import { registerAiMcpServerRouter } from "./ai-mcp-server-router";
import { registerAssumePrivilegeRouter } from "./assume-privilege-router";
import { AUDIT_LOG_STREAM_REGISTER_ROUTER_MAP, registerAuditLogStreamRouter } from "./audit-log-stream-routers";
import { registerCaCrlRouter } from "./certificate-authority-crl-router";
@@ -212,4 +213,11 @@ export const registerV1EERoutes = async (server: FastifyZodProvider) => {
},
{ prefix: "/pam" }
);
+
+ await server.register(
+ async (aiRouter) => {
+ await aiRouter.register(registerAiMcpServerRouter, { prefix: "/mcp-servers" });
+ },
+ { prefix: "/ai" }
+ );
};
diff --git a/backend/src/ee/services/ai-mcp-endpoint/ai-mcp-endpoint-dal.ts b/backend/src/ee/services/ai-mcp-endpoint/ai-mcp-endpoint-dal.ts
new file mode 100644
index 0000000000..63f174a86d
--- /dev/null
+++ b/backend/src/ee/services/ai-mcp-endpoint/ai-mcp-endpoint-dal.ts
@@ -0,0 +1,11 @@
+import { TDbClient } from "@app/db";
+import { TableName } from "@app/db/schemas";
+import { ormify } from "@app/lib/knex";
+
+export type TAiMcpEndpointDALFactory = ReturnType<typeof aiMcpEndpointDALFactory>;
+
+export const aiMcpEndpointDALFactory = (db: TDbClient) => {
+ const aiMcpEndpointOrm = ormify(db, TableName.AiMcpEndpoint);
+
+ return aiMcpEndpointOrm;
+};
diff --git a/backend/src/ee/services/ai-mcp-endpoint/ai-mcp-endpoint-server-dal.ts b/backend/src/ee/services/ai-mcp-endpoint/ai-mcp-endpoint-server-dal.ts
new file mode 100644
index 0000000000..6d6c0f8cca
--- /dev/null
+++ b/backend/src/ee/services/ai-mcp-endpoint/ai-mcp-endpoint-server-dal.ts
@@ -0,0 +1,11 @@
+import { TDbClient } from "@app/db";
+import { TableName } from "@app/db/schemas";
+import { ormify } from "@app/lib/knex";
+
+export type TAiMcpEndpointServerDALFactory = ReturnType<typeof aiMcpEndpointServerDALFactory>;
+
+export const aiMcpEndpointServerDALFactory = (db: TDbClient) => {
+ const aiMcpEndpointServerOrm = ormify(db, TableName.AiMcpEndpointServer);
+
+ return aiMcpEndpointServerOrm;
+};
diff --git a/backend/src/ee/services/ai-mcp-endpoint/ai-mcp-endpoint-server-tool-dal.ts b/backend/src/ee/services/ai-mcp-endpoint/ai-mcp-endpoint-server-tool-dal.ts
new file mode 100644
index 0000000000..48dec64abd
--- /dev/null
+++ b/backend/src/ee/services/ai-mcp-endpoint/ai-mcp-endpoint-server-tool-dal.ts
@@ -0,0 +1,11 @@
+import { TDbClient } from "@app/db";
+import { TableName } from "@app/db/schemas";
+import { ormify } from "@app/lib/knex";
+
+export type TAiMcpEndpointServerToolDALFactory = ReturnType<typeof aiMcpEndpointServerToolDALFactory>;
+
+export const aiMcpEndpointServerToolDALFactory = (db: TDbClient) => {
+ const aiMcpEndpointServerToolOrm = ormify(db, TableName.AiMcpEndpointServerTool);
+
+ return aiMcpEndpointServerToolOrm;
+};
diff --git a/backend/src/ee/services/ai-mcp-server/ai-mcp-server-dal.ts b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-dal.ts
new file mode 100644
index 0000000000..b0798c3ba6
--- /dev/null
+++ b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-dal.ts
@@ -0,0 +1,11 @@
+import { TDbClient } from "@app/db";
+import { TableName } from "@app/db/schemas";
+import { ormify } from "@app/lib/knex";
+
+export type TAiMcpServerDALFactory = ReturnType<typeof aiMcpServerDALFactory>;
+
+export const aiMcpServerDALFactory = (db: TDbClient) => {
+ const aiMcpServerOrm = ormify(db, TableName.AiMcpServer);
+
+ return aiMcpServerOrm;
+};
diff --git a/backend/src/ee/services/ai-mcp-server/ai-mcp-server-enum.ts b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-enum.ts
new file mode 100644
index 0000000000..9cc6f75125
--- /dev/null
+++ b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-enum.ts
@@ -0,0 +1,16 @@
+export enum AiMcpServerCredentialMode {
+ SHARED = "shared",
+ PERSONAL = "personal"
+}
+
+export enum AiMcpServerAuthMethod {
+ BASIC = "basic",
+ BEARER = "bearer",
+ OAUTH = "oauth"
+}
+
+export enum AiMcpServerStatus {
+ ACTIVE = "active",
+ DISABLED = "disabled",
+ UNINITIALIZED = "uninitialized"
+}
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
new file mode 100644
index 0000000000..12abb4fa2e
--- /dev/null
+++ b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-service.ts
@@ -0,0 +1,281 @@
+import crypto from "node:crypto";
+
+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 { 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 {
+ TAiMcpServerCredentials,
+ TCreateAiMcpServerDTO,
+ TGetOAuthStatusDTO,
+ THandleOAuthCallbackDTO,
+ TInitiateOAuthDTO,
+ TOAuthAuthorizationServerMetadata,
+ TOAuthDynamicClientMetadata,
+ TOAuthSession,
+ TOAuthTokenResponse
+} from "./ai-mcp-server-types";
+
+type TAiMcpServerServiceFactoryDep = {
+ aiMcpServerDAL: TAiMcpServerDALFactory;
+ kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">;
+ keyStore: Pick<TKeyStoreFactory, "getItem" | "setItemWithExpiry" | "deleteItem">;
+};
+
+export type TAiMcpServerServiceFactory = ReturnType<typeof aiMcpServerServiceFactory>;
+
+const OAUTH_SESSION_TTL_SECONDS = 10 * 60; // 10 minutes
+
+// Helper to encrypt credentials
+const encryptCredentials = async ({
+ projectId,
+ credentials,
+ kmsService
+}: {
+ projectId: string;
+ credentials: TAiMcpServerCredentials;
+ kmsService: Pick<TKmsServiceFactory, "createCipherPairWithDataKey">;
+}) => {
+ const { encryptor } = await kmsService.createCipherPairWithDataKey({
+ type: KmsDataKey.SecretManager,
+ projectId
+ });
+
+ const { cipherTextBlob } = encryptor({
+ plainText: Buffer.from(JSON.stringify(credentials))
+ });
+
+ return cipherTextBlob;
+};
+
+export const aiMcpServerServiceFactory = ({ aiMcpServerDAL, kmsService, keyStore }: TAiMcpServerServiceFactoryDep) => {
+ /**
+ * Initiate OAuth flow for MCP server
+ * Returns the authorization URL and session ID
+ */
+ const initiateOAuth = async ({ projectId, url, actorId }: TInitiateOAuthDTO) => {
+ const appCfg = getConfig();
+ const issuer = new URL(url).origin;
+
+ // 1. Get OAuth metadata from the MCP server
+ const { data: serverMetadata } = await request.get<TOAuthAuthorizationServerMetadata>(
+ `${issuer}/.well-known/oauth-authorization-server`
+ );
+
+ if (!serverMetadata.registration_endpoint) {
+ throw new BadRequestError({
+ message: "MCP server does not support Dynamic Client Registration"
+ });
+ }
+
+ // 2. Generate session ID
+ const sessionId = crypto.randomUUID();
+
+ // 3. Build redirect URI
+ const redirectUri = `${appCfg.SITE_URL}/api/v1/ai/mcp-servers/oauth/callback`;
+
+ // 4. Register client via DCR
+ const { data: clientMetadata } = await request.post<TOAuthDynamicClientMetadata>(
+ serverMetadata.registration_endpoint,
+ {
+ redirect_uris: [redirectUri],
+ token_endpoint_auth_method: "none",
+ grant_types: ["authorization_code"],
+ response_types: ["code"],
+ client_name: `Infisical MCP Client - ${actorId}`
+ },
+ {
+ headers: {
+ "Content-Type": "application/json"
+ }
+ }
+ );
+
+ // 5. Generate PKCE code verifier and challenge
+ const codeVerifier = crypto.randomBytes(32).toString("base64url");
+ const codeChallenge = crypto.createHash("sha256").update(codeVerifier).digest("base64url");
+
+ // 6. Store session data in keystore
+ const sessionData: TOAuthSession = {
+ actorId,
+ codeVerifier,
+ codeChallenge,
+ clientId: clientMetadata.client_id,
+ projectId,
+ serverUrl: url,
+ redirectUri,
+ authorized: false
+ };
+
+ await keyStore.setItemWithExpiry(
+ KeyStorePrefixes.AiMcpServerOAuth(sessionId),
+ OAUTH_SESSION_TTL_SECONDS,
+ JSON.stringify(sessionData)
+ );
+
+ // 7. Build authorization URL
+ const authUrl = new URL(serverMetadata.authorization_endpoint);
+ authUrl.searchParams.set("client_id", clientMetadata.client_id);
+ authUrl.searchParams.set("redirect_uri", redirectUri);
+ authUrl.searchParams.set("response_type", "code");
+ authUrl.searchParams.set("scope", "read write");
+ authUrl.searchParams.set("code_challenge", codeChallenge);
+ authUrl.searchParams.set("code_challenge_method", "S256");
+ authUrl.searchParams.set("state", sessionId);
+
+ return {
+ authUrl: authUrl.toString(),
+ sessionId
+ };
+ };
+
+ /**
+ * Handle OAuth callback from MCP server
+ * Exchanges authorization code for tokens
+ */
+ const handleOAuthCallback = async ({ sessionId, code }: THandleOAuthCallbackDTO) => {
+ // 1. Get session data from keystore
+ const sessionDataStr = await keyStore.getItem(KeyStorePrefixes.AiMcpServerOAuth(sessionId));
+ if (!sessionDataStr) {
+ throw new BadRequestError({
+ message: "OAuth session not found or expired. Please try again."
+ });
+ }
+
+ const sessionData = JSON.parse(sessionDataStr) as TOAuthSession;
+
+ if (sessionData.authorized) {
+ throw new BadRequestError({
+ message: "OAuth session already authorized"
+ });
+ }
+
+ // 2. Get OAuth metadata again
+ const issuer = new URL(sessionData.serverUrl).origin;
+ const { data: serverMetadata } = await request.get<TOAuthAuthorizationServerMetadata>(
+ `${issuer}/.well-known/oauth-authorization-server`
+ );
+
+ // 3. Exchange code for tokens
+ const { data: tokenResponse } = await request.post<TOAuthTokenResponse>(
+ serverMetadata.token_endpoint,
+ new URLSearchParams({
+ grant_type: "authorization_code",
+ code,
+ redirect_uri: sessionData.redirectUri,
+ client_id: sessionData.clientId,
+ code_verifier: sessionData.codeVerifier
+ }).toString(),
+ {
+ headers: {
+ "Content-Type": "application/x-www-form-urlencoded"
+ }
+ }
+ );
+
+ // 4. Update session with tokens
+ const updatedSession: TOAuthSession = {
+ ...sessionData,
+ accessToken: tokenResponse.access_token,
+ refreshToken: tokenResponse.refresh_token,
+ expiresAt: tokenResponse.expires_in ? Date.now() + tokenResponse.expires_in * 1000 : undefined,
+ tokenType: tokenResponse.token_type,
+ authorized: true
+ };
+
+ await keyStore.setItemWithExpiry(
+ KeyStorePrefixes.AiMcpServerOAuth(sessionId),
+ OAUTH_SESSION_TTL_SECONDS,
+ JSON.stringify(updatedSession)
+ );
+
+ return { success: true, projectId: sessionData.projectId };
+ };
+
+ /**
+ * Get OAuth status for a session
+ */
+ const getOAuthStatus = async ({ sessionId, actorId }: TGetOAuthStatusDTO) => {
+ const sessionDataStr = await keyStore.getItem(KeyStorePrefixes.AiMcpServerOAuth(sessionId));
+ if (!sessionDataStr) {
+ return { authorized: false };
+ }
+
+ const sessionData = JSON.parse(sessionDataStr) as TOAuthSession;
+
+ // Verify the actor matches who initiated the OAuth flow
+ if (sessionData.actorId !== actorId) {
+ throw new BadRequestError({ message: "Unauthorized to access this OAuth session" });
+ }
+
+ if (!sessionData.authorized) {
+ return { authorized: false };
+ }
+
+ return {
+ authorized: true,
+ accessToken: sessionData.accessToken,
+ refreshToken: sessionData.refreshToken,
+ expiresAt: sessionData.expiresAt,
+ tokenType: sessionData.tokenType
+ };
+ };
+
+ const createMcpServer = async ({
+ projectId,
+ name,
+ url,
+ description,
+ credentialMode,
+ authMethod,
+ credentials
+ }: TCreateAiMcpServerDTO) => {
+ const encryptedCredentials = await encryptCredentials({
+ projectId,
+ credentials,
+ kmsService
+ });
+
+ const server = await aiMcpServerDAL.create({
+ projectId,
+ name,
+ url,
+ description,
+ credentialMode,
+ authMethod,
+ encryptedCredentials,
+ status: AiMcpServerStatus.ACTIVE
+ });
+
+ return server;
+ };
+
+ const listMcpServers = async ({ projectId }: { projectId: string }) => {
+ const servers = await aiMcpServerDAL.find({ projectId });
+ return servers;
+ };
+
+ const deleteMcpServer = async ({ serverId }: { serverId: string }) => {
+ const server = await aiMcpServerDAL.findById(serverId);
+ if (!server) {
+ throw new NotFoundError({ message: `MCP server with ID '${serverId}' not found` });
+ }
+
+ await aiMcpServerDAL.deleteById(serverId);
+ return server;
+ };
+
+ return {
+ initiateOAuth,
+ handleOAuthCallback,
+ getOAuthStatus,
+ createMcpServer,
+ listMcpServers,
+ deleteMcpServer
+ };
+};
diff --git a/backend/src/ee/services/ai-mcp-server/ai-mcp-server-tool-dal.ts b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-tool-dal.ts
new file mode 100644
index 0000000000..c121200861
--- /dev/null
+++ b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-tool-dal.ts
@@ -0,0 +1,11 @@
+import { TDbClient } from "@app/db";
+import { TableName } from "@app/db/schemas";
+import { ormify } from "@app/lib/knex";
+
+export type TAiMcpServerToolDALFactory = ReturnType<typeof aiMcpServerToolDALFactory>;
+
+export const aiMcpServerToolDALFactory = (db: TDbClient) => {
+ const aiMcpServerToolOrm = ormify(db, TableName.AiMcpServerTool);
+
+ return aiMcpServerToolOrm;
+};
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
new file mode 100644
index 0000000000..6f89154d28
--- /dev/null
+++ b/backend/src/ee/services/ai-mcp-server/ai-mcp-server-types.ts
@@ -0,0 +1,104 @@
+import { AiMcpServerAuthMethod, AiMcpServerCredentialMode } from "./ai-mcp-server-enum";
+
+// OAuth types from MCP server
+export type TOAuthAuthorizationServerMetadata = {
+ issuer: string;
+ authorization_endpoint: string;
+ token_endpoint: string;
+ registration_endpoint: string;
+ scopes_supported?: string[];
+ response_types_supported: string[];
+ grant_types_supported?: string[];
+ token_endpoint_auth_methods_supported?: string[];
+ code_challenge_methods_supported?: string[];
+};
+
+export type TOAuthDynamicClientMetadata = {
+ client_id: string;
+ client_secret?: string;
+ client_id_issued_at?: number;
+ client_secret_expires_at?: number;
+ redirect_uris: string[];
+ token_endpoint_auth_method: string;
+ grant_types: string[];
+ response_types: string[];
+ client_name?: string;
+};
+
+export type TOAuthTokenResponse = {
+ access_token: string;
+ token_type: string;
+ expires_in?: number;
+ refresh_token?: string;
+ scope?: string;
+};
+
+// Credential types
+export type TBasicCredentials = {
+ username: string;
+ password: string;
+};
+
+export type TBearerCredentials = {
+ token: string;
+};
+
+export type TOAuthCredentials = {
+ accessToken: string;
+ refreshToken?: string;
+ expiresAt?: number;
+ tokenType?: string;
+};
+
+export type TAiMcpServerCredentials = TBasicCredentials | TBearerCredentials | TOAuthCredentials;
+
+// OAuth session stored in keystore
+export type TOAuthSession = {
+ actorId: string;
+ codeVerifier: string;
+ codeChallenge: string;
+ clientId: string;
+ projectId: string;
+ serverUrl: string;
+ redirectUri: string;
+ // Set after callback
+ accessToken?: string;
+ refreshToken?: string;
+ expiresAt?: number;
+ tokenType?: string;
+ authorized?: boolean;
+};
+
+// DTO types
+export type TInitiateOAuthDTO = {
+ projectId: string;
+ url: string;
+ actorId: string;
+ actor: string;
+ actorAuthMethod: string;
+ actorOrgId: string;
+};
+
+export type THandleOAuthCallbackDTO = {
+ sessionId: string;
+ code: string;
+};
+
+export type TGetOAuthStatusDTO = {
+ sessionId: string;
+ actorId: string;
+};
+
+export type TCreateAiMcpServerDTO = {
+ projectId: string;
+ name: string;
+ url: string;
+ description?: string;
+ credentialMode: AiMcpServerCredentialMode;
+ authMethod: AiMcpServerAuthMethod;
+ credentials: TBasicCredentials | TBearerCredentials | TOAuthCredentials;
+ actorId: string;
+ actor: string;
+ actorAuthMethod: string;
+ actorOrgId: string;
+};
diff --git a/backend/src/keystore/keystore.ts b/backend/src/keystore/keystore.ts
index 204952a92d..e5cf702499 100644
--- a/backend/src/keystore/keystore.ts
+++ b/backend/src/keystore/keystore.ts
@@ -79,7 +79,9 @@ export const KeyStorePrefixes = {
GroupMemberProjectPermissionPattern: (projectId: string, groupId: string) =>
`group-member-project-permission:${projectId}:${groupId}:*` as const,
- PkiAcmeNonce: (nonce: string) => `pki-acme-nonce:${nonce}` as const
+ PkiAcmeNonce: (nonce: string) => `pki-acme-nonce:${nonce}` as const,
+
+ AiMcpServerOAuth: (sessionId: string) => `ai-mcp-server-oauth:${sessionId}` as const
};
export const KeyStoreTtls = {
diff --git a/backend/src/server/plugins/auth/inject-identity.ts b/backend/src/server/plugins/auth/inject-identity.ts
index 8008855c6c..74257f4327 100644
--- a/backend/src/server/plugins/auth/inject-identity.ts
+++ b/backend/src/server/plugins/auth/inject-identity.ts
@@ -133,6 +133,10 @@ export const injectIdentity = fp(
return;
}
+ if (req.url === "/api/v1/ai/mcp-servers/oauth/callback") {
+ return;
+ }
+
// Authentication is handled on a route-level
if (req.url === "/api/v1/relays/register-instance-relay") {
return;
diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.ts
index 914491d3c3..7b04eec144 100644
--- a/backend/src/server/routes/index.ts
+++ b/backend/src/server/routes/index.ts
@@ -17,6 +17,8 @@ import { accessApprovalPolicyServiceFactory } from "@app/ee/services/access-appr
import { accessApprovalRequestDALFactory } from "@app/ee/services/access-approval-request/access-approval-request-dal";
import { accessApprovalRequestReviewerDALFactory } from "@app/ee/services/access-approval-request/access-approval-request-reviewer-dal";
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 { 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";
@@ -2397,6 +2399,7 @@ export const registerRoutes = async (
const pamResourceDAL = pamResourceDALFactory(db);
const pamAccountDAL = pamAccountDALFactory(db);
const pamSessionDAL = pamSessionDALFactory(db);
+ const aiMcpServerDAL = aiMcpServerDALFactory(db);
const pamFolderService = pamFolderServiceFactory({
pamFolderDAL,
@@ -2439,6 +2442,12 @@ export const registerRoutes = async (
kmsService
});
+ const aiMcpServerService = aiMcpServerServiceFactory({
+ aiMcpServerDAL,
+ kmsService,
+ keyStore
+ });
+
const migrationService = externalMigrationServiceFactory({
externalMigrationQueue,
userDAL,
@@ -2630,7 +2639,8 @@ export const registerRoutes = async (
additionalPrivilege: additionalPrivilegeService,
identityProject: identityProjectService,
convertor: convertorService,
- pkiAlertV2: pkiAlertV2Service
+ pkiAlertV2: pkiAlertV2Service,
+ aiMcpServer: aiMcpServerService
});
const cronJobs: CronJob[] = [];
diff --git a/frontend/src/components/projects/NewProjectModal.tsx b/frontend/src/components/projects/NewProjectModal.tsx
index d9887a929e..50c30fb080 100644
--- a/frontend/src/components/projects/NewProjectModal.tsx
+++ b/frontend/src/components/projects/NewProjectModal.tsx
@@ -84,6 +84,10 @@ const PROJECT_TYPE_MENU_ITEMS = [
{
label: "PAM",
value: ProjectType.PAM
+ },
+ {
+ label: "AI",
+ value: ProjectType.AI
}
];
diff --git a/frontend/src/components/v2/PageHeader/PageHeader.tsx b/frontend/src/components/v2/PageHeader/PageHeader.tsx
index 5a2ba2e123..8959809032 100644
--- a/frontend/src/components/v2/PageHeader/PageHeader.tsx
+++ b/frontend/src/components/v2/PageHeader/PageHeader.tsx
@@ -22,6 +22,7 @@ const SCOPE_BADGE: Record<NonNullable<Props["scope"]>, { icon: LucideIcon; class
[ProjectType.KMS]: { className: "text-project", icon: ProjectIcon },
[ProjectType.PAM]: { className: "text-project", icon: ProjectIcon },
[ProjectType.SecretScanning]: { className: "text-project", icon: ProjectIcon },
+ [ProjectType.AI]: { className: "text-project", icon: ProjectIcon },
namespace: { className: "text-sub-org", icon: SubOrgIcon },
instance: { className: "text-neutral", icon: InstanceIcon }
};
diff --git a/frontend/src/helpers/project.ts b/frontend/src/helpers/project.ts
index 128dd31cea..ec2c2dbfdf 100644
--- a/frontend/src/helpers/project.ts
+++ b/frontend/src/helpers/project.ts
@@ -79,6 +79,8 @@ export const getProjectHomePage = (type: ProjectType, environments: ProjectEnv[]
return `/organizations/$orgId/projects/${type}/$projectId/data-sources` as const;
case ProjectType.PAM:
return `/organizations/$orgId/projects/${type}/$projectId/accounts` as const;
+ case ProjectType.AI:
+ return `/organizations/$orgId/projects/${type}/$projectId/overview` as const;
default:
return `/organizations/$orgId/projects/${type}/$projectId/overview` as const;
}
@@ -91,7 +93,8 @@ export const getProjectTitle = (type: ProjectType) => {
[ProjectType.CertificateManager]: "Cert Management",
[ProjectType.SSH]: "SSH",
[ProjectType.SecretScanning]: "Secret Scanning",
- [ProjectType.PAM]: "PAM"
+ [ProjectType.PAM]: "PAM",
+ [ProjectType.AI]: "AI"
};
return titleConvert[type];
};
@@ -103,7 +106,8 @@ export const getProjectLottieIcon = (type: ProjectType) => {
[ProjectType.CertificateManager]: "note",
[ProjectType.SSH]: "terminal",
[ProjectType.SecretScanning]: "secret-scan",
- [ProjectType.PAM]: "groups"
+ [ProjectType.PAM]: "groups",
+ [ProjectType.AI]: "user"
};
return titleConvert[type];
};
diff --git a/frontend/src/hooks/api/aiMcpServers/index.ts b/frontend/src/hooks/api/aiMcpServers/index.ts
new file mode 100644
index 0000000000..23972ce3a8
--- /dev/null
+++ b/frontend/src/hooks/api/aiMcpServers/index.ts
@@ -0,0 +1,8 @@
+export { useCreateAiMcpServer, useDeleteAiMcpServer, useInitiateOAuth } from "./mutations";
+export {
+ aiMcpServerKeys,
+ useGetAiMcpServerById,
+ useGetOAuthStatus,
+ useListAiMcpServers
+} from "./queries";
+export * from "./types";
diff --git a/frontend/src/hooks/api/aiMcpServers/mutations.tsx b/frontend/src/hooks/api/aiMcpServers/mutations.tsx
new file mode 100644
index 0000000000..a7e24caf90
--- /dev/null
+++ b/frontend/src/hooks/api/aiMcpServers/mutations.tsx
@@ -0,0 +1,63 @@
+import { useMutation, useQueryClient } from "@tanstack/react-query";
+
+import { apiRequest } from "@app/config/request";
+
+import { aiMcpServerKeys } from "./queries";
+import {
+ TAiMcpServer,
+ TCreateAiMcpServerDTO,
+ TDeleteAiMcpServerDTO,
+ TInitiateOAuthDTO,
+ TInitiateOAuthResponse
+} from "./types";
+
+export const useCreateAiMcpServer = () => {
+ const queryClient = useQueryClient();
+
+ return useMutation<TAiMcpServer, object, TCreateAiMcpServerDTO>({
+ mutationFn: async (data) => {
+ const { data: response } = await apiRequest.post<{
+ server: TAiMcpServer;
+ }>("/api/v1/ai/mcp-servers", data);
+ return response.server;
+ },
+ onSuccess: (_, { projectId }) => {
+ queryClient.invalidateQueries({
+ queryKey: aiMcpServerKeys.list({ projectId })
+ });
+ }
+ });
+};
+
+export const useDeleteAiMcpServer = () => {
+ const queryClient = useQueryClient();
+
+ return useMutation<TAiMcpServer, object, TDeleteAiMcpServerDTO>({
+ mutationFn: async ({ serverId }) => {
+ const { data: response } = await apiRequest.delete<{
+ server: TAiMcpServer;
+ }>(`/api/v1/ai/mcp-servers/${serverId}`);
+ return response.server;
+ },
+ onSuccess: (server, { serverId }) => {
+ queryClient.invalidateQueries({
+ queryKey: aiMcpServerKeys.list({ projectId: server.projectId })
+ });
+ queryClient.removeQueries({
+ queryKey: aiMcpServerKeys.getById(serverId)
+ });
+ }
+ });
+};
+
+export const useInitiateOAuth = () => {
+ return useMutation<TInitiateOAuthResponse, object, TInitiateOAuthDTO>({
+ mutationFn: async (data) => {
+ const { data: response } = await apiRequest.post<TInitiateOAuthResponse>(
+ "/api/v1/ai/mcp-servers/oauth/initiate",
+ data
+ );
+ return response;
+ }
+ });
+};
diff --git a/frontend/src/hooks/api/aiMcpServers/queries.tsx b/frontend/src/hooks/api/aiMcpServers/queries.tsx
new file mode 100644
index 0000000000..005043d7a3
--- /dev/null
+++ b/frontend/src/hooks/api/aiMcpServers/queries.tsx
@@ -0,0 +1,67 @@
+import { useQuery } from "@tanstack/react-query";
+
+import { apiRequest } from "@app/config/request";
+
+import {
+ TAiMcpServer,
+ TGetOAuthStatusDTO,
+ TListAiMcpServersDTO,
+ TOAuthStatusResponse
+} from "./types";
+
+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
+};
+
+export const useListAiMcpServers = ({
+ projectId,
+ limit = 100,
+ offset = 0
+}: TListAiMcpServersDTO) => {
+ return useQuery({
+ queryKey: aiMcpServerKeys.list({ projectId }),
+ queryFn: async () => {
+ const { data } = await apiRequest.get<{
+ servers: TAiMcpServer[];
+ totalCount: number;
+ }>("/api/v1/ai/mcp-servers", {
+ params: { projectId, limit, offset }
+ });
+ return data;
+ },
+ enabled: Boolean(projectId)
+ });
+};
+
+export const useGetAiMcpServerById = (serverId: string) => {
+ return useQuery({
+ queryKey: aiMcpServerKeys.getById(serverId),
+ queryFn: async () => {
+ const { data } = await apiRequest.get<{
+ server: TAiMcpServer;
+ }>(`/api/v1/ai/mcp-servers/${serverId}`);
+ return data.server;
+ },
+ enabled: Boolean(serverId)
+ });
+};
+
+export const useGetOAuthStatus = (
+ { sessionId }: TGetOAuthStatusDTO,
+ { enabled = true, refetchInterval }: { enabled?: boolean; refetchInterval?: number | false }
+) => {
+ return useQuery({
+ queryKey: aiMcpServerKeys.oauthStatus(sessionId),
+ queryFn: async () => {
+ const { data } = await apiRequest.get<TOAuthStatusResponse>(
+ `/api/v1/ai/mcp-servers/oauth/status/${sessionId}`
+ );
+ return data;
+ },
+ enabled: Boolean(sessionId) && enabled,
+ refetchInterval
+ });
+};
diff --git a/frontend/src/hooks/api/aiMcpServers/types.ts b/frontend/src/hooks/api/aiMcpServers/types.ts
new file mode 100644
index 0000000000..1357df334a
--- /dev/null
+++ b/frontend/src/hooks/api/aiMcpServers/types.ts
@@ -0,0 +1,108 @@
+export enum AiMcpServerCredentialMode {
+ SHARED = "shared",
+ PERSONAL = "personal"
+}
+
+export enum AiMcpServerAuthMethod {
+ BASIC = "basic",
+ BEARER = "bearer",
+ OAUTH = "oauth"
+}
+
+export enum AiMcpServerStatus {
+ ACTIVE = "active",
+ INACTIVE = "inactive",
+ UNINITIALIZED = "uninitialized"
+}
+
+// Basic auth credentials
+export type TBasicAuthCredentials = {
+ authMethod: AiMcpServerAuthMethod.BASIC;
+ credentials: {
+ username: string;
+ password: string;
+ };
+};
+
+// Bearer token credentials
+export type TBearerAuthCredentials = {
+ authMethod: AiMcpServerAuthMethod.BEARER;
+ credentials: {
+ token: string;
+ };
+};
+
+// OAuth credentials (obtained after OAuth flow)
+export type TOAuthCredentials = {
+ authMethod: AiMcpServerAuthMethod.OAUTH;
+ credentials: {
+ accessToken: string;
+ refreshToken?: string;
+ expiresAt?: number;
+ tokenType?: string;
+ };
+};
+
+export type TAiMcpServerCredentials =
+ | TBasicAuthCredentials
+ | TBearerAuthCredentials
+ | TOAuthCredentials;
+
+export type TAiMcpServer = {
+ id: string;
+ name: string;
+ url: string;
+ description?: string;
+ status: AiMcpServerStatus;
+ credentialMode: AiMcpServerCredentialMode;
+ authMethod: AiMcpServerAuthMethod;
+ projectId: string;
+ toolsCount?: number;
+ createdAt: string;
+ updatedAt: string;
+};
+
+// Create MCP Server DTOs
+export type TCreateAiMcpServerDTO = {
+ projectId: string;
+ name: string;
+ url: string;
+ description?: string;
+ credentialMode: AiMcpServerCredentialMode;
+} & TAiMcpServerCredentials;
+
+// OAuth initiate DTO
+export type TInitiateOAuthDTO = {
+ projectId: string;
+ url: string;
+};
+
+export type TInitiateOAuthResponse = {
+ authUrl: string;
+ sessionId: string;
+};
+
+// OAuth status DTO
+export type TGetOAuthStatusDTO = {
+ sessionId: string;
+};
+
+export type TOAuthStatusResponse = {
+ authorized: boolean;
+ accessToken?: string;
+ refreshToken?: string;
+ expiresAt?: number;
+ tokenType?: string;
+};
+
+// List MCP Servers DTO
+export type TListAiMcpServersDTO = {
+ projectId: string;
+ limit?: number;
+ offset?: number;
+};
+
+// Delete MCP Server DTO
+export type TDeleteAiMcpServerDTO = {
+ serverId: string;
+};
diff --git a/frontend/src/hooks/api/index.tsx b/frontend/src/hooks/api/index.tsx
index 33eacd18d6..e0f541590e 100644
--- a/frontend/src/hooks/api/index.tsx
+++ b/frontend/src/hooks/api/index.tsx
@@ -1,5 +1,6 @@
export * from "./accessApproval";
export * from "./admin";
+export * from "./aiMcpServers";
export * from "./apiKeys";
export * from "./assumePrivileges";
export * from "./auditLogs";
diff --git a/frontend/src/hooks/api/projects/types.ts b/frontend/src/hooks/api/projects/types.ts
index b477201062..8d60768a63 100644
--- a/frontend/src/hooks/api/projects/types.ts
+++ b/frontend/src/hooks/api/projects/types.ts
@@ -14,7 +14,8 @@ export enum ProjectType {
KMS = "kms",
SSH = "ssh",
SecretScanning = "secret-scanning",
- PAM = "pam"
+ PAM = "pam",
+ AI = "ai"
}
export enum ProjectUserMembershipTemporaryMode {
diff --git a/frontend/src/layouts/AILayout/AILayout.tsx b/frontend/src/layouts/AILayout/AILayout.tsx
new file mode 100644
index 0000000000..49fd71bab6
--- /dev/null
+++ b/frontend/src/layouts/AILayout/AILayout.tsx
@@ -0,0 +1,87 @@
+import { Link, Outlet, useLocation } from "@tanstack/react-router";
+import { motion } from "framer-motion";
+
+import { Tab, TabList, Tabs } from "@app/components/v2";
+import { useOrganization, useProject, useProjectPermission } from "@app/context";
+
+import { AssumePrivilegeModeBanner } from "../ProjectLayout/components/AssumePrivilegeModeBanner";
+
+export const AILayout = () => {
+ const { currentOrg } = useOrganization();
+ const { currentProject } = useProject();
+ const { assumedPrivilegeDetails } = useProjectPermission();
+
+ const location = useLocation();
+ return (
+ <div className="dark flex h-full w-full flex-col overflow-x-hidden bg-mineshaft-900">
+ <div className="border-y border-t-project/10 border-b-project/5 bg-gradient-to-b from-project/[0.075] to-project/[0.025] px-4 pt-0.5">
+ <motion.div
+ key="menu-project-items"
+ initial={{ x: -150 }}
+ animate={{ x: 0 }}
+ exit={{ x: -150 }}
+ transition={{ duration: 0.2 }}
+ className="px-4"
+ >
+ <nav className="w-full">
+ <Tabs value="selected">
+ <TabList className="border-b-0">
+ <Link
+ to="/organizations/$orgId/projects/ai/$projectId/overview"
+ params={{
+ orgId: currentOrg.id,
+ projectId: currentProject.id
+ }}
+ >
+ {({ isActive }) => <Tab value={isActive ? "selected" : ""}>MCP</Tab>}
+ </Link>
+ <Link
+ to="/organizations/$orgId/projects/ai/$projectId/access-management"
+ params={{
+ orgId: currentOrg.id,
+ projectId: currentProject.id
+ }}
+ >
+ {({ isActive }) => (
+ <Tab
+ value={
+ isActive ||
+ location.pathname.match(/\/groups\/|\/identities\/|\/members\/|\/roles\//)
+ ? "selected"
+ : ""
+ }
+ >
+ Access Control
+ </Tab>
+ )}
+ </Link>
+ <Link
+ to="/organizations/$orgId/projects/ai/$projectId/audit-logs"
+ params={{
+ orgId: currentOrg.id,
+ projectId: currentProject.id
+ }}
+ >
+ {({ isActive }) => <Tab value={isActive ? "selected" : ""}>Audit Logs</Tab>}
+ </Link>
+ <Link
+ to="/organizations/$orgId/projects/ai/$projectId/settings"
+ params={{
+ orgId: currentOrg.id,
+ projectId: currentProject.id
+ }}
+ >
+ {({ isActive }) => <Tab value={isActive ? "selected" : ""}>Settings</Tab>}
+ </Link>
+ </TabList>
+ </Tabs>
+ </nav>
+ </motion.div>
+ </div>
+ {assumedPrivilegeDetails && <AssumePrivilegeModeBanner />}
+ <div className="flex-1 overflow-x-hidden overflow-y-auto bg-bunker-800 px-12 pt-10 pb-4">
+ <Outlet />
+ </div>
+ </div>
+ );
+};
diff --git a/frontend/src/layouts/AILayout/index.ts b/frontend/src/layouts/AILayout/index.ts
new file mode 100644
index 0000000000..9d881930c3
--- /dev/null
+++ b/frontend/src/layouts/AILayout/index.ts
@@ -0,0 +1 @@
+export { AILayout } from "./AILayout";
diff --git a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
index e701863eba..c2ab8cdec1 100644
--- a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
+++ b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
@@ -43,7 +43,8 @@ const PROJECT_TYPE_NAME: Record<ProjectType, string> = {
[ProjectType.SSH]: "SSH",
[ProjectType.KMS]: "KMS",
[ProjectType.PAM]: "PAM",
- [ProjectType.SecretScanning]: "Secret Scanning"
+ [ProjectType.SecretScanning]: "Secret Scanning",
+ [ProjectType.AI]: "AI"
};
const ProjectSelectInner = () => {
diff --git a/frontend/src/pages/ai/MCPPage/MCPPage.tsx b/frontend/src/pages/ai/MCPPage/MCPPage.tsx
new file mode 100644
index 0000000000..b4ae3b7ad6
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/MCPPage.tsx
@@ -0,0 +1,61 @@
+import { useState } from "react";
+import { Helmet } from "react-helmet";
+import { useTranslation } from "react-i18next";
+
+import { ContentLoader, PageHeader, Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
+import { useProject } from "@app/context";
+import { ProjectType } from "@app/hooks/api/projects/types";
+
+import { MCPServersTab } from "./components/MCPServersTab";
+
+enum TabSections {
+ MCPEndpoints = "mcp-endpoints",
+ MCPServers = "mcp-servers"
+}
+
+export const MCPPage = () => {
+ const { t } = useTranslation();
+ const { currentProject } = useProject();
+ const [activeTab, setActiveTab] = useState(TabSections.MCPEndpoints);
+
+ if (!currentProject) {
+ return <ContentLoader />;
+ }
+
+ return (
+ <div className="mx-auto flex h-full flex-col justify-between bg-bunker-800 text-white">
+ <Helmet>
+ <title>{t("common.head-title", { title: "MCP Management" })}</title>
+ </Helmet>
+ <div className="mx-auto mb-6 w-full max-w-8xl">
+ <PageHeader
+ scope={ProjectType.AI}
+ title="MCP Management"
+ description="Manage MCP endpoints, connect MCP servers, and configure tools with governance"
+ />
+ <Tabs
+ orientation="vertical"
+ value={activeTab}
+ onValueChange={(value) => setActiveTab(value as TabSections)}
+ >
+ <TabList>
+ <Tab variant="project" value={TabSections.MCPEndpoints}>
+ MCP Endpoints
+ </Tab>
+ <Tab variant="project" value={TabSections.MCPServers}>
+ MCP Servers
+ </Tab>
+ </TabList>
+
+ <TabPanel value={TabSections.MCPEndpoints}>
+ <div>MCP Endpoints - Coming soon</div>
+ </TabPanel>
+
+ <TabPanel value={TabSections.MCPServers}>
+ <MCPServersTab />
+ </TabPanel>
+ </Tabs>
+ </div>
+ </div>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/AddMCPServerForm.schema.ts b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/AddMCPServerForm.schema.ts
new file mode 100644
index 0000000000..bea2d4b841
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/AddMCPServerForm.schema.ts
@@ -0,0 +1,55 @@
+import { z } from "zod";
+
+export enum MCPServerCredentialMode {
+ SHARED = "shared",
+ PERSONAL = "personal"
+}
+
+export enum MCPServerAuthMethod {
+ BASIC = "basic",
+ BEARER = "bearer",
+ OAUTH = "oauth"
+}
+
+const BasicAuthCredentialsSchema = z.object({
+ authMethod: z.literal(MCPServerAuthMethod.BASIC),
+ credentials: z.object({
+ username: z.string().min(1, "Username is required"),
+ password: z.string().min(1, "Password is required")
+ })
+});
+
+const BearerAuthCredentialsSchema = z.object({
+ authMethod: z.literal(MCPServerAuthMethod.BEARER),
+ credentials: z.object({
+ token: z.string().min(1, "Bearer token is required")
+ })
+});
+
+// OAuth credentials obtained after completing OAuth flow (DCR)
+const OAuthCredentialsSchema = z.object({
+ authMethod: z.literal(MCPServerAuthMethod.OAUTH),
+ credentials: z.object({
+ accessToken: z.string().min(1, "Access token is required"),
+ refreshToken: z.string().optional(),
+ expiresAt: z.number().optional(),
+ tokenType: z.string().optional()
+ })
+});
+
+const MCPServerCredentialsSchema = z.discriminatedUnion("authMethod", [
+ BasicAuthCredentialsSchema,
+ BearerAuthCredentialsSchema,
+ OAuthCredentialsSchema
+]);
+
+export const AddMCPServerFormSchema = z
+ .object({
+ name: z.string().trim().min(1, "Name is required").max(64, "Name cannot exceed 64 characters"),
+ description: z.string().trim().max(256, "Description cannot exceed 256 characters").optional(),
+ url: z.string().trim().min(1, "Endpoint URL is required").url("Must be a valid URL"),
+ credentialMode: z.nativeEnum(MCPServerCredentialMode)
+ })
+ .and(MCPServerCredentialsSchema);
+
+export type TAddMCPServerForm = z.infer<typeof AddMCPServerFormSchema>;
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/AddMCPServerModal.tsx b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/AddMCPServerModal.tsx
new file mode 100644
index 0000000000..f887b043ed
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/AddMCPServerModal.tsx
@@ -0,0 +1,209 @@
+import { useState } from "react";
+import { FormProvider, useForm } from "react-hook-form";
+import { Tab } from "@headlessui/react";
+import { zodResolver } from "@hookform/resolvers/zod";
+
+import { createNotification } from "@app/components/notifications";
+import { Button, Modal, ModalContent } from "@app/components/v2";
+import { useProject } from "@app/context";
+import {
+ AiMcpServerAuthMethod,
+ AiMcpServerCredentialMode,
+ TCreateAiMcpServerDTO,
+ useCreateAiMcpServer
+} from "@app/hooks/api";
+
+import {
+ AddMCPServerFormSchema,
+ MCPServerAuthMethod,
+ MCPServerCredentialMode,
+ TAddMCPServerForm
+} from "./AddMCPServerForm.schema";
+import { AuthenticationStep } from "./AuthenticationStep";
+import { BasicInfoStep } from "./BasicInfoStep";
+
+type Props = {
+ isOpen: boolean;
+ onOpenChange: (isOpen: boolean) => void;
+};
+
+const FORM_TABS = [
+ { name: "Basic Info", key: "basic-info", fields: ["name", "url", "credentialMode"] as const },
+ {
+ name: "Authentication",
+ key: "authentication",
+ fields: ["authMethod", "credentials"] as const
+ }
+];
+
+export const AddMCPServerModal = ({ isOpen, onOpenChange }: Props) => {
+ const { currentProject } = useProject();
+ const [selectedTabIndex, setSelectedTabIndex] = useState(0);
+
+ const createMcpServer = useCreateAiMcpServer();
+
+ const formMethods = useForm<TAddMCPServerForm>({
+ resolver: zodResolver(AddMCPServerFormSchema),
+ defaultValues: {
+ name: "",
+ description: "",
+ url: "",
+ credentialMode: MCPServerCredentialMode.SHARED,
+ authMethod: MCPServerAuthMethod.OAUTH,
+ credentials: {
+ accessToken: "",
+ refreshToken: "",
+ tokenType: "Bearer"
+ }
+ } as TAddMCPServerForm
+ });
+
+ const { handleSubmit, trigger, reset, watch } = formMethods;
+
+ const isFinalStep = selectedTabIndex === FORM_TABS.length - 1;
+
+ // Check if OAuth is completed (has access token)
+ const authMethod = watch("authMethod");
+ const credentials = watch("credentials");
+ const isOAuthCompleted =
+ authMethod === MCPServerAuthMethod.OAUTH &&
+ "accessToken" in credentials &&
+ Boolean(credentials.accessToken);
+
+ const isStepValid = async (index: number) => {
+ const { fields } = FORM_TABS[index];
+ return trigger(fields as unknown as (keyof TAddMCPServerForm)[]);
+ };
+
+ const handleClose = () => {
+ reset();
+ setSelectedTabIndex(0);
+ onOpenChange(false);
+ };
+
+ const onSubmit = async (data: TAddMCPServerForm) => {
+ if (!currentProject?.id) {
+ createNotification({
+ text: "No project selected",
+ type: "error"
+ });
+ return;
+ }
+
+ try {
+ await createMcpServer.mutateAsync({
+ projectId: currentProject.id,
+ name: data.name,
+ url: data.url,
+ description: data.description || undefined,
+ credentialMode: data.credentialMode as unknown as AiMcpServerCredentialMode,
+ authMethod: data.authMethod as unknown as AiMcpServerAuthMethod,
+ credentials: data.credentials
+ } as TCreateAiMcpServerDTO);
+
+ createNotification({
+ text: `Successfully added MCP server "${data.name}"`,
+ type: "success"
+ });
+
+ handleClose();
+ } catch (error) {
+ console.error("Failed to create MCP server:", error);
+ createNotification({
+ text: "Failed to create MCP server",
+ type: "error"
+ });
+ }
+ };
+
+ const handleNext = async () => {
+ const isValid = await isStepValid(selectedTabIndex);
+ if (!isValid) return;
+
+ if (isFinalStep) {
+ handleSubmit(onSubmit)();
+ return;
+ }
+
+ setSelectedTabIndex((prev) => prev + 1);
+ };
+
+ const handleBack = () => {
+ setSelectedTabIndex((prev) => prev - 1);
+ };
+
+ const isTabEnabled = async (index: number) => {
+ let isEnabled = true;
+ for (let i = index - 1; i >= 0; i -= 1) {
+ // eslint-disable-next-line no-await-in-loop
+ isEnabled = isEnabled && (await isStepValid(i));
+ }
+ return isEnabled;
+ };
+
+ return (
+ <Modal isOpen={isOpen} onOpenChange={onOpenChange}>
+ <ModalContent
+ title="Add MCP Server"
+ subTitle="Configure connection details and authentication for a new MCP server"
+ className="max-w-2xl"
+ bodyClassName="overflow-visible"
+ onClose={handleClose}
+ >
+ <FormProvider {...formMethods}>
+ <form>
+ <Tab.Group selectedIndex={selectedTabIndex} onChange={setSelectedTabIndex}>
+ <Tab.List className="-pb-1 mb-6 w-full border-b-2 border-mineshaft-600">
+ {FORM_TABS.map((tab, index) => (
+ <Tab
+ key={tab.key}
+ onClick={async (e) => {
+ e.preventDefault();
+ const isEnabled = await isTabEnabled(index);
+ setSelectedTabIndex((prev) => (isEnabled ? index : prev));
+ }}
+ className={({ selected }) =>
+ `-mb-[0.14rem] whitespace-nowrap ${index > selectedTabIndex ? "opacity-30" : ""} px-4 py-2 text-sm font-medium outline-hidden disabled:opacity-60 ${
+ selected
+ ? "border-b-2 border-mineshaft-300 text-mineshaft-200"
+ : "text-bunker-300"
+ }`
+ }
+ >
+ {index + 1}. {tab.name}
+ </Tab>
+ ))}
+ </Tab.List>
+ <Tab.Panels>
+ <Tab.Panel>
+ <BasicInfoStep />
+ </Tab.Panel>
+ <Tab.Panel>
+ <AuthenticationStep />
+ </Tab.Panel>
+ </Tab.Panels>
+ </Tab.Group>
+
+ <div className="mt-6 flex w-full justify-between gap-4">
+ {selectedTabIndex > 0 ? (
+ <Button onClick={handleBack} colorSchema="secondary">
+ Back
+ </Button>
+ ) : (
+ <div />
+ )}
+ <Button
+ onClick={handleNext}
+ colorSchema="primary"
+ isLoading={createMcpServer.isPending}
+ isDisabled={createMcpServer.isPending || (isFinalStep && !isOAuthCompleted)}
+ >
+ {isFinalStep ? "Add MCP Server" : "Next"}
+ </Button>
+ </div>
+ </form>
+ </FormProvider>
+ </ModalContent>
+ </Modal>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/AuthenticationStep.tsx b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/AuthenticationStep.tsx
new file mode 100644
index 0000000000..28df3ae7b6
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/AuthenticationStep.tsx
@@ -0,0 +1,341 @@
+import { useCallback, useEffect, useRef, useState } from "react";
+import { Controller, useFormContext } from "react-hook-form";
+import { faCheck, faSpinner } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+
+import { createNotification } from "@app/components/notifications";
+import { Button, FormControl, Input, Select, SelectItem } from "@app/components/v2";
+import { useProject } from "@app/context";
+import { useGetOAuthStatus, useInitiateOAuth } from "@app/hooks/api";
+
+import { MCPServerAuthMethod, TAddMCPServerForm } from "./AddMCPServerForm.schema";
+
+// Only OAuth is supported for now - other methods are defined in schema for future use
+const AUTH_METHOD_OPTIONS = [{ value: MCPServerAuthMethod.OAUTH, label: "OAuth" }];
+
+const OAUTH_POPUP_WIDTH = 600;
+const OAUTH_POPUP_HEIGHT = 700;
+const OAUTH_POLL_INTERVAL = 2000; // Poll every 2 seconds
+
+export const AuthenticationStep = () => {
+ const { currentProject } = useProject();
+ const { control, watch, setValue, getValues } = useFormContext<TAddMCPServerForm>();
+ const authMethod = watch("authMethod");
+
+ // OAuth state
+ const [oauthSessionId, setOauthSessionId] = useState<string | null>(null);
+ const [isOAuthPending, setIsOAuthPending] = useState(false);
+ const popupRef = useRef<Window | null>(null);
+ const pollIntervalRef = useRef<NodeJS.Timeout | null>(null);
+ const oauthSucceededRef = useRef(false);
+
+ // Check if OAuth is already authorized (has access token)
+ const oauthCredentials = authMethod === MCPServerAuthMethod.OAUTH ? watch("credentials") : null;
+ const isOAuthAuthorized =
+ oauthCredentials && "accessToken" in oauthCredentials && Boolean(oauthCredentials.accessToken);
+
+ // Hooks
+ const initiateOAuth = useInitiateOAuth();
+ const { data: oauthStatus } = useGetOAuthStatus(
+ { sessionId: oauthSessionId || "" },
+ {
+ enabled: Boolean(oauthSessionId) && isOAuthPending,
+ refetchInterval: isOAuthPending ? OAUTH_POLL_INTERVAL : false
+ }
+ );
+
+ // Handle OAuth status updates
+ useEffect(() => {
+ if (oauthStatus?.authorized && oauthStatus.accessToken) {
+ // Mark OAuth as succeeded (for popup close detection)
+ oauthSucceededRef.current = true;
+
+ // OAuth completed successfully
+ setValue("credentials", {
+ accessToken: oauthStatus.accessToken,
+ refreshToken: oauthStatus.refreshToken,
+ expiresAt: oauthStatus.expiresAt,
+ tokenType: oauthStatus.tokenType || "Bearer"
+ });
+
+ setIsOAuthPending(false);
+ setOauthSessionId(null);
+
+ // Clear polling interval
+ if (pollIntervalRef.current) {
+ clearInterval(pollIntervalRef.current);
+ pollIntervalRef.current = null;
+ }
+
+ createNotification({
+ text: "OAuth authorization successful",
+ type: "success"
+ });
+ }
+ }, [oauthStatus, setValue]);
+
+ // Cleanup on unmount
+ useEffect(() => {
+ return () => {
+ if (pollIntervalRef.current) {
+ clearInterval(pollIntervalRef.current);
+ }
+ if (popupRef.current && !popupRef.current.closed) {
+ popupRef.current.close();
+ }
+ };
+ }, []);
+
+ // Check if popup was closed manually
+ useEffect(() => {
+ let checkPopupClosed: NodeJS.Timeout | null = null;
+
+ if (isOAuthPending) {
+ // Reset the success ref when starting a new OAuth flow
+ oauthSucceededRef.current = false;
+
+ checkPopupClosed = setInterval(() => {
+ if (popupRef.current?.closed) {
+ if (checkPopupClosed) {
+ clearInterval(checkPopupClosed);
+ }
+ // Don't immediately cancel - give a few more seconds for callback to process
+ setTimeout(() => {
+ // Use ref to check if OAuth succeeded (avoids stale closure)
+ if (!oauthSucceededRef.current) {
+ setIsOAuthPending(false);
+ createNotification({
+ text: "OAuth authorization was cancelled",
+ type: "info"
+ });
+ }
+ }, 3000);
+ }
+ }, 500);
+ }
+
+ return () => {
+ if (checkPopupClosed) {
+ clearInterval(checkPopupClosed);
+ }
+ };
+ }, [isOAuthPending]);
+
+ const handleAuthMethodChange = useCallback(
+ (value: MCPServerAuthMethod) => {
+ setValue("authMethod", value);
+ // Reset credentials when auth method changes
+ if (value === MCPServerAuthMethod.BASIC) {
+ setValue("credentials", { username: "", password: "" });
+ } else if (value === MCPServerAuthMethod.BEARER) {
+ setValue("credentials", { token: "" });
+ } else if (value === MCPServerAuthMethod.OAUTH) {
+ setValue("credentials", { accessToken: "", refreshToken: "", tokenType: "Bearer" });
+ }
+
+ // Reset OAuth state
+ setOauthSessionId(null);
+ setIsOAuthPending(false);
+ oauthSucceededRef.current = false;
+ },
+ [setValue]
+ );
+
+ const handleOAuthAuthorize = async () => {
+ const serverUrl = getValues("url");
+ if (!serverUrl) {
+ createNotification({
+ text: "Please enter the server URL first",
+ type: "error"
+ });
+ return;
+ }
+
+ if (!currentProject?.id) {
+ createNotification({
+ text: "No project selected",
+ type: "error"
+ });
+ return;
+ }
+
+ try {
+ setIsOAuthPending(true);
+
+ // 1. Call backend to initiate OAuth and get auth URL
+ const { authUrl, sessionId } = await initiateOAuth.mutateAsync({
+ url: serverUrl,
+ projectId: currentProject.id
+ });
+
+ setOauthSessionId(sessionId);
+
+ // 2. Calculate popup position (centered)
+ const left = window.screenX + (window.outerWidth - OAUTH_POPUP_WIDTH) / 2;
+ const top = window.screenY + (window.outerHeight - OAUTH_POPUP_HEIGHT) / 2;
+
+ // 3. Open popup for OAuth
+ popupRef.current = window.open(
+ authUrl,
+ "MCP OAuth Authorization",
+ `width=${OAUTH_POPUP_WIDTH},height=${OAUTH_POPUP_HEIGHT},left=${left},top=${top},scrollbars=yes,resizable=yes`
+ );
+
+ if (!popupRef.current) {
+ createNotification({
+ text: "Failed to open OAuth popup. Please allow popups for this site.",
+ type: "error"
+ });
+ setIsOAuthPending(false);
+ setOauthSessionId(null);
+ }
+ } catch (error) {
+ console.error("Failed to initiate OAuth:", error);
+ createNotification({
+ text: "Failed to initiate OAuth authorization",
+ type: "error"
+ });
+ setIsOAuthPending(false);
+ setOauthSessionId(null);
+ }
+ };
+
+ const handleCancelOAuth = () => {
+ setIsOAuthPending(false);
+ setOauthSessionId(null);
+
+ if (popupRef.current && !popupRef.current.closed) {
+ popupRef.current.close();
+ }
+
+ if (pollIntervalRef.current) {
+ clearInterval(pollIntervalRef.current);
+ pollIntervalRef.current = null;
+ }
+ };
+
+ return (
+ <>
+ <p className="mb-4 text-sm text-bunker-300">
+ Configure shared authentication credentials for the MCP server.
+ </p>
+
+ <Controller
+ control={control}
+ name="authMethod"
+ render={({ field: { value }, fieldState: { error } }) => (
+ <FormControl
+ label="Authentication Type"
+ isRequired
+ isError={Boolean(error)}
+ errorText={error?.message}
+ >
+ <Select
+ value={value}
+ onValueChange={(val) => handleAuthMethodChange(val as MCPServerAuthMethod)}
+ className="w-full"
+ placeholder="Select authentication type..."
+ isDisabled={isOAuthPending}
+ >
+ {AUTH_METHOD_OPTIONS.map((option) => (
+ <SelectItem key={option.value} value={option.value}>
+ {option.label}
+ </SelectItem>
+ ))}
+ </Select>
+ </FormControl>
+ )}
+ />
+
+ {authMethod === MCPServerAuthMethod.BEARER && (
+ <Controller
+ control={control}
+ name="credentials.token"
+ render={({ field, fieldState: { error } }) => (
+ <FormControl
+ label="Bearer Token"
+ isRequired
+ isError={Boolean(error)}
+ errorText={error?.message}
+ helperText="This credential will be securely stored in Infisical"
+ >
+ <Input {...field} type="password" placeholder="Enter bearer token" />
+ </FormControl>
+ )}
+ />
+ )}
+
+ {authMethod === MCPServerAuthMethod.BASIC && (
+ <>
+ <Controller
+ control={control}
+ name="credentials.username"
+ render={({ field, fieldState: { error } }) => (
+ <FormControl
+ label="Username"
+ isRequired
+ isError={Boolean(error)}
+ errorText={error?.message}
+ >
+ <Input {...field} placeholder="Enter username" />
+ </FormControl>
+ )}
+ />
+ <Controller
+ control={control}
+ name="credentials.password"
+ render={({ field, fieldState: { error } }) => (
+ <FormControl
+ label="Password"
+ isRequired
+ isError={Boolean(error)}
+ errorText={error?.message}
+ helperText="This credential will be securely stored in Infisical"
+ >
+ <Input {...field} type="password" placeholder="Enter password" />
+ </FormControl>
+ )}
+ />
+ </>
+ )}
+
+ {authMethod === MCPServerAuthMethod.OAUTH && (
+ <div className="mt-2 space-y-4">
+ {isOAuthAuthorized && (
+ <div className="flex items-center gap-2 rounded-md border border-green/30 bg-green/10 p-3">
+ <FontAwesomeIcon icon={faCheck} className="text-green" />
+ <span className="text-sm text-green">OAuth authorization successful</span>
+ </div>
+ )}
+ {!isOAuthAuthorized && isOAuthPending && (
+ <div className="space-y-3">
+ <div className="flex items-center gap-2 rounded-md border border-yellow-500/30 bg-yellow-500/10 p-3">
+ <FontAwesomeIcon icon={faSpinner} className="animate-spin text-yellow-500" />
+ <span className="text-sm text-yellow-500">Waiting for OAuth authorization...</span>
+ </div>
+ <Button
+ onClick={handleCancelOAuth}
+ colorSchema="secondary"
+ variant="outline"
+ className="w-full"
+ >
+ Cancel
+ </Button>
+ </div>
+ )}
+ {!isOAuthAuthorized && !isOAuthPending && (
+ <Button
+ onClick={handleOAuthAuthorize}
+ colorSchema="secondary"
+ className="w-full"
+ isLoading={initiateOAuth.isPending}
+ isDisabled={initiateOAuth.isPending}
+ >
+ Authorize with OAuth
+ </Button>
+ )}
+ </div>
+ )}
+ </>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/BasicInfoStep.tsx b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/BasicInfoStep.tsx
new file mode 100644
index 0000000000..7a8df9bbd3
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/BasicInfoStep.tsx
@@ -0,0 +1,107 @@
+import { Controller, useFormContext } from "react-hook-form";
+
+import { FormControl, Input, Select, SelectItem, TextArea } from "@app/components/v2";
+
+import { MCPServerCredentialMode, TAddMCPServerForm } from "./AddMCPServerForm.schema";
+
+const CREDENTIAL_MODE_OPTIONS = [
+ {
+ value: MCPServerCredentialMode.SHARED,
+ label: "Shared Credentials",
+ description: "All users will authenticate as the same shared account"
+ },
+ {
+ value: MCPServerCredentialMode.PERSONAL,
+ label: "Personal Credentials",
+ description: "Each user will authenticate with their own credentials"
+ }
+];
+
+export const BasicInfoStep = () => {
+ const { control, watch } = useFormContext<TAddMCPServerForm>();
+ const credentialMode = watch("credentialMode");
+
+ const selectedModeOption = CREDENTIAL_MODE_OPTIONS.find(
+ (option) => option.value === credentialMode
+ );
+
+ return (
+ <>
+ <p className="mb-4 text-sm text-bunker-300">
+ Configure the basic information and credential mode for the MCP server.
+ </p>
+
+ <Controller
+ control={control}
+ name="name"
+ render={({ field, fieldState: { error } }) => (
+ <FormControl label="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"
+ isOptional
+ isError={Boolean(error)}
+ errorText={error?.message}
+ >
+ <TextArea
+ {...field}
+ placeholder="Enter server description"
+ className="resize-none!"
+ rows={3}
+ />
+ </FormControl>
+ )}
+ />
+
+ <Controller
+ control={control}
+ name="url"
+ render={({ field, fieldState: { error } }) => (
+ <FormControl
+ label="Endpoint URL"
+ isRequired
+ isError={Boolean(error)}
+ errorText={error?.message}
+ >
+ <Input {...field} placeholder="https://mcp-server.example.com" />
+ </FormControl>
+ )}
+ />
+
+ <Controller
+ control={control}
+ name="credentialMode"
+ render={({ field: { value, onChange }, fieldState: { error } }) => (
+ <FormControl
+ label="Credential Mode"
+ isRequired
+ isError={Boolean(error)}
+ errorText={error?.message}
+ helperText={selectedModeOption?.description}
+ >
+ <Select
+ value={value}
+ onValueChange={onChange}
+ className="w-full"
+ placeholder="Select credential mode..."
+ >
+ {CREDENTIAL_MODE_OPTIONS.map((option) => (
+ <SelectItem key={option.value} value={option.value}>
+ {option.label}
+ </SelectItem>
+ ))}
+ </Select>
+ </FormControl>
+ )}
+ />
+ </>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/index.ts b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/index.ts
new file mode 100644
index 0000000000..a9535c8276
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/AddMCPServerModal/index.ts
@@ -0,0 +1 @@
+export { AddMCPServerModal } from "./AddMCPServerModal";
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServerList.tsx b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServerList.tsx
new file mode 100644
index 0000000000..abeefd66b5
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServerList.tsx
@@ -0,0 +1,90 @@
+import {
+ EmptyState,
+ Table,
+ TableContainer,
+ TableSkeleton,
+ TBody,
+ Td,
+ Th,
+ THead,
+ Tr
+} from "@app/components/v2";
+import { useProject } from "@app/context";
+import { TAiMcpServer, useListAiMcpServers } from "@app/hooks/api";
+
+import { MCPServerRow } from "./MCPServerRow";
+
+interface Props {
+ onEditServer: (server: TAiMcpServer) => void;
+ onDeleteServer: (server: TAiMcpServer) => void;
+}
+
+export const MCPServerList = ({ onEditServer, onDeleteServer }: Props) => {
+ const { currentProject } = useProject();
+
+ const { data, isLoading } = useListAiMcpServers({
+ projectId: currentProject?.id || ""
+ });
+
+ const servers = data?.servers;
+
+ if (!currentProject?.id) {
+ return (
+ <TableContainer>
+ <Table>
+ <THead>
+ <Tr>
+ <Th>Name</Th>
+ <Th>Status</Th>
+ <Th>Available Tools</Th>
+ <Th className="w-16" />
+ </Tr>
+ </THead>
+ <TBody>
+ <Tr>
+ <Td colSpan={4}>
+ <EmptyState title="No Project Selected" />
+ </Td>
+ </Tr>
+ </TBody>
+ </Table>
+ </TableContainer>
+ );
+ }
+
+ return (
+ <TableContainer>
+ <Table>
+ <THead>
+ <Tr>
+ <Th>Name</Th>
+ <Th>Status</Th>
+ <Th>Available Tools</Th>
+ <Th className="w-16" />
+ </Tr>
+ </THead>
+ <TBody>
+ {isLoading && <TableSkeleton columns={4} innerKey="mcp-servers" />}
+ {!isLoading && (!servers || servers.length === 0) && (
+ <Tr>
+ <Td colSpan={4}>
+ <EmptyState title="No MCP Servers" />
+ </Td>
+ </Tr>
+ )}
+ {!isLoading &&
+ servers &&
+ servers.length > 0 &&
+ servers.map((server) => (
+ <MCPServerRow
+ key={server.id}
+ server={server}
+ onEditServer={onEditServer}
+ onDeleteServer={onDeleteServer}
+ />
+ ))}
+ </TBody>
+ </Table>
+ </TableContainer>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServerRow.tsx b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServerRow.tsx
new file mode 100644
index 0000000000..3e4c7f3fd1
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServerRow.tsx
@@ -0,0 +1,114 @@
+import { useCallback } from "react";
+import { faCheck, faCopy, faEdit, faEllipsisV, faTrash } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+
+import { createNotification } from "@app/components/notifications";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuTrigger,
+ Td,
+ Tooltip,
+ Tr
+} from "@app/components/v2";
+import { useToggle } from "@app/hooks";
+import { AiMcpServerStatus, TAiMcpServer } from "@app/hooks/api";
+
+interface Props {
+ server: TAiMcpServer;
+ onEditServer: (server: TAiMcpServer) => void;
+ onDeleteServer: (server: TAiMcpServer) => void;
+}
+
+export const MCPServerRow = ({ server, onEditServer, onDeleteServer }: Props) => {
+ const [isIdCopied, setIsIdCopied] = useToggle(false);
+
+ const handleCopyId = useCallback(() => {
+ setIsIdCopied.on();
+ navigator.clipboard.writeText(server.id);
+
+ createNotification({
+ text: "Server ID copied to clipboard",
+ type: "info"
+ });
+
+ setTimeout(() => setIsIdCopied.off(), 2000);
+ }, [setIsIdCopied, server.id]);
+
+ const getStatusBadge = (status: AiMcpServerStatus) => {
+ const statusConfig = {
+ [AiMcpServerStatus.ACTIVE]: {
+ color: "bg-emerald-500",
+ label: "Active"
+ },
+ [AiMcpServerStatus.INACTIVE]: {
+ color: "bg-red-500",
+ label: "Inactive"
+ },
+ [AiMcpServerStatus.UNINITIALIZED]: {
+ color: "bg-yellow-500",
+ label: "Uninitialized"
+ }
+ };
+
+ const config = statusConfig[status] || statusConfig[AiMcpServerStatus.UNINITIALIZED];
+
+ return (
+ <div className="flex items-center gap-2">
+ <div className={`h-2 w-2 rounded-full ${config.color}`} />
+ <span className="text-sm text-mineshaft-300">{config.label}</span>
+ </div>
+ );
+ };
+
+ return (
+ <Tr className="h-10 transition-colors duration-100 hover:bg-mineshaft-700">
+ <Td>
+ <span className="text-mineshaft-300">{server.name}</span>
+ </Td>
+ <Td>{getStatusBadge(server.status)}</Td>
+ <Td>
+ <span className="text-sm text-mineshaft-300">{server.toolsCount ?? 0}</span>
+ </Td>
+ <Td className="text-right">
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild className="rounded-lg">
+ <div className="flex cursor-pointer justify-end hover:text-primary-400 data-[state=open]:text-primary-400">
+ <Tooltip content="More options">
+ <FontAwesomeIcon size="lg" icon={faEllipsisV} />
+ </Tooltip>
+ </div>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end" className="p-1">
+ <DropdownMenuItem
+ icon={<FontAwesomeIcon icon={isIdCopied ? faCheck : faCopy} className="w-3" />}
+ onClick={() => handleCopyId()}
+ >
+ Copy Server ID
+ </DropdownMenuItem>
+ <DropdownMenuItem
+ onClick={(e) => {
+ e.stopPropagation();
+ onEditServer(server);
+ }}
+ icon={<FontAwesomeIcon icon={faEdit} className="w-3" />}
+ >
+ Edit Server
+ </DropdownMenuItem>
+ <DropdownMenuItem
+ onClick={(e) => {
+ e.stopPropagation();
+ onDeleteServer(server);
+ }}
+ icon={<FontAwesomeIcon icon={faTrash} className="w-3" />}
+ className="text-red-500 hover:text-red-400"
+ >
+ Delete Server
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </Td>
+ </Tr>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServersTab.tsx b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServersTab.tsx
new file mode 100644
index 0000000000..5ecbdabb71
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/MCPServersTab.tsx
@@ -0,0 +1,98 @@
+import { useState } from "react";
+import { faPlus } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+
+import { createNotification } from "@app/components/notifications";
+import { Button, DeleteActionModal } from "@app/components/v2";
+import { TAiMcpServer, useDeleteAiMcpServer } from "@app/hooks/api";
+
+import { AddMCPServerModal } from "./AddMCPServerModal";
+import { MCPServerList } from "./MCPServerList";
+
+export const MCPServersTab = () => {
+ const [isAddModalOpen, setIsAddModalOpen] = useState(false);
+ const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
+ const [selectedServer, setSelectedServer] = useState<TAiMcpServer | null>(null);
+
+ const deleteServer = useDeleteAiMcpServer();
+
+ const handleAddServer = () => {
+ setIsAddModalOpen(true);
+ };
+
+ const handleEditServer = (server: TAiMcpServer) => {
+ setSelectedServer(server);
+ // TODO: Implement edit modal
+ createNotification({
+ text: `Edit ${server.name} - Coming soon`,
+ type: "info"
+ });
+ };
+
+ const handleDeleteServer = (server: TAiMcpServer) => {
+ setSelectedServer(server);
+ setIsDeleteModalOpen(true);
+ };
+
+ const handleDeleteConfirm = async () => {
+ if (!selectedServer) return;
+
+ try {
+ await deleteServer.mutateAsync({ serverId: selectedServer.id });
+ createNotification({
+ text: `MCP server "${selectedServer.name}" deleted successfully`,
+ type: "success"
+ });
+ } catch (error) {
+ console.error("Failed to delete MCP server:", error);
+ createNotification({
+ text: "Failed to delete MCP server",
+ type: "error"
+ });
+ } finally {
+ setIsDeleteModalOpen(false);
+ setSelectedServer(null);
+ }
+ };
+
+ return (
+ <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
+ <div className="mb-4 flex items-center justify-between">
+ <div>
+ <h2 className="text-xl font-semibold text-mineshaft-100">MCP Servers</h2>
+ <p className="text-sm text-bunker-300">
+ Manage MCP servers to be used within the project
+ </p>
+ </div>
+
+ <Button
+ colorSchema="primary"
+ type="button"
+ leftIcon={<FontAwesomeIcon icon={faPlus} />}
+ onClick={handleAddServer}
+ >
+ Add MCP Server
+ </Button>
+ </div>
+
+ <MCPServerList onEditServer={handleEditServer} onDeleteServer={handleDeleteServer} />
+
+ <AddMCPServerModal isOpen={isAddModalOpen} onOpenChange={setIsAddModalOpen} />
+
+ {selectedServer && (
+ <DeleteActionModal
+ isOpen={isDeleteModalOpen}
+ title={`Delete MCP Server ${selectedServer.name}?`}
+ onChange={(isOpen) => {
+ setIsDeleteModalOpen(isOpen);
+ if (!isOpen) {
+ setSelectedServer(null);
+ }
+ }}
+ deleteKey={selectedServer.name}
+ onDeleteApproved={handleDeleteConfirm}
+ />
+ )}
+ </div>
+ );
+};
diff --git a/frontend/src/pages/ai/MCPPage/components/MCPServersTab/index.ts b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/index.ts
new file mode 100644
index 0000000000..1c7fdb8aab
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/components/MCPServersTab/index.ts
@@ -0,0 +1 @@
+export { MCPServersTab } from "./MCPServersTab";
diff --git a/frontend/src/pages/ai/MCPPage/index.ts b/frontend/src/pages/ai/MCPPage/index.ts
new file mode 100644
index 0000000000..6cf4ba33f5
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/index.ts
@@ -0,0 +1 @@
+export { MCPPage } from "./MCPPage";
diff --git a/frontend/src/pages/ai/MCPPage/route.tsx b/frontend/src/pages/ai/MCPPage/route.tsx
new file mode 100644
index 0000000000..78ad5b06f0
--- /dev/null
+++ b/frontend/src/pages/ai/MCPPage/route.tsx
@@ -0,0 +1,19 @@
+import { createFileRoute } from "@tanstack/react-router";
+
+import { MCPPage } from "./MCPPage";
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/overview"
+)({
+ component: MCPPage,
+ beforeLoad: ({ context }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "MCP"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/ai/SettingsPage/SettingsPage.tsx b/frontend/src/pages/ai/SettingsPage/SettingsPage.tsx
new file mode 100644
index 0000000000..7a1d83cf31
--- /dev/null
+++ b/frontend/src/pages/ai/SettingsPage/SettingsPage.tsx
@@ -0,0 +1,57 @@
+import { Helmet } from "react-helmet";
+import { useTranslation } from "react-i18next";
+import { Link } from "@tanstack/react-router";
+import { InfoIcon } from "lucide-react";
+
+import { PageHeader, Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
+import { useOrganization } from "@app/context";
+import { ProjectType } from "@app/hooks/api/projects/types";
+import { ProjectGeneralTab } from "@app/pages/project/SettingsPage/components/ProjectGeneralTab";
+
+const tabs = [
+ {
+ name: "General",
+ key: "tab-project-general",
+ Component: ProjectGeneralTab
+ }
+];
+
+export const SettingsPage = () => {
+ const { t } = useTranslation();
+ const { currentOrg } = useOrganization();
+
+ return (
+ <div className="flex h-full w-full justify-center bg-bunker-800 text-white">
+ <Helmet>
+ <title>{t("common.head-title", { title: t("settings.project.title") })}</title>
+ </Helmet>
+ <div className="w-full max-w-8xl">
+ <PageHeader scope={ProjectType.AI} title={t("settings.project.title")}>
+ <Link
+ to="/organizations/$orgId/settings"
+ params={{
+ orgId: currentOrg.id
+ }}
+ className="flex items-center gap-x-1.5 text-xs whitespace-nowrap text-neutral hover:underline"
+ >
+ <InfoIcon size={12} /> Looking for organization settings?
+ </Link>
+ </PageHeader>
+ <Tabs orientation="vertical" defaultValue={tabs[0].key}>
+ <TabList>
+ {tabs.map((tab) => (
+ <Tab value={tab.key} variant="project" key={tab.key}>
+ {tab.name}
+ </Tab>
+ ))}
+ </TabList>
+ {tabs.map(({ key, Component }) => (
+ <TabPanel value={key} key={key}>
+ <Component />
+ </TabPanel>
+ ))}
+ </Tabs>
+ </div>
+ </div>
+ );
+};
diff --git a/frontend/src/pages/ai/SettingsPage/route.tsx b/frontend/src/pages/ai/SettingsPage/route.tsx
new file mode 100644
index 0000000000..e2d8f8c9f4
--- /dev/null
+++ b/frontend/src/pages/ai/SettingsPage/route.tsx
@@ -0,0 +1,19 @@
+import { createFileRoute } from "@tanstack/react-router";
+
+import { SettingsPage } from "./SettingsPage";
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/settings"
+)({
+ component: SettingsPage,
+ beforeLoad: ({ context }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "Settings"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/ai/layout.tsx b/frontend/src/pages/ai/layout.tsx
new file mode 100644
index 0000000000..ed09ea701b
--- /dev/null
+++ b/frontend/src/pages/ai/layout.tsx
@@ -0,0 +1,37 @@
+import { createFileRoute } from "@tanstack/react-router";
+
+import { BreadcrumbTypes } from "@app/components/v2";
+import { projectKeys } from "@app/hooks/api";
+import { fetchProjectById } from "@app/hooks/api/projects/queries";
+import { fetchUserProjectPermissions, roleQueryKeys } from "@app/hooks/api/roles/queries";
+import { AILayout } from "@app/layouts/AILayout";
+import { ProjectSelect } from "@app/layouts/ProjectLayout/components/ProjectSelect";
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout"
+)({
+ component: AILayout,
+ beforeLoad: async ({ params, context }) => {
+ const project = await context.queryClient.ensureQueryData({
+ queryKey: projectKeys.getProjectById(params.projectId),
+ queryFn: () => fetchProjectById(params.projectId)
+ });
+
+ await context.queryClient.ensureQueryData({
+ queryKey: roleQueryKeys.getUserProjectPermissions({
+ projectId: params.projectId
+ }),
+ queryFn: () => fetchUserProjectPermissions({ projectId: params.projectId })
+ });
+
+ return {
+ project,
+ breadcrumbs: [
+ {
+ type: BreadcrumbTypes.Component,
+ component: ProjectSelect
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx b/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx
index c0117b758d..25cb159a0c 100644
--- a/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx
+++ b/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx
@@ -37,7 +37,8 @@ export const ProjectsPage = () => {
match.pathname.includes("/kms/") ||
match.pathname.includes("/pam/") ||
match.pathname.includes("/ssh/") ||
- match.pathname.includes("/secret-scanning/")
+ match.pathname.includes("/secret-scanning/") ||
+ match.pathname.includes("/ai/")
);
const [projectListView, setProjectListView] = useState<ProjectListView>(() => {
diff --git a/frontend/src/pages/project/AccessControlPage/route-ai.tsx b/frontend/src/pages/project/AccessControlPage/route-ai.tsx
new file mode 100644
index 0000000000..5cc4a5d363
--- /dev/null
+++ b/frontend/src/pages/project/AccessControlPage/route-ai.tsx
@@ -0,0 +1,32 @@
+import { createFileRoute, stripSearchParams } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
+
+import { ProjectAccessControlTabs } from "@app/types/project";
+
+import { AccessControlPage } from "./AccessControlPage";
+
+const AccessControlPageQuerySchema = z.object({
+ selectedTab: z.nativeEnum(ProjectAccessControlTabs).catch(ProjectAccessControlTabs.Member),
+ requesterEmail: z.string().catch("")
+});
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/access-management"
+)({
+ component: AccessControlPage,
+ validateSearch: zodValidator(AccessControlPageQuerySchema),
+ search: {
+ middlewares: [stripSearchParams({ requesterEmail: "" })]
+ },
+ beforeLoad: ({ context }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "Access Control"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/project/AuditLogsPage/route-ai.tsx b/frontend/src/pages/project/AuditLogsPage/route-ai.tsx
new file mode 100644
index 0000000000..4ef7102cdf
--- /dev/null
+++ b/frontend/src/pages/project/AuditLogsPage/route-ai.tsx
@@ -0,0 +1,19 @@
+import { createFileRoute } from "@tanstack/react-router";
+
+import { AuditLogsPage } from "./AuditLogsPage";
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs"
+)({
+ component: AuditLogsPage,
+ beforeLoad: ({ context }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "Audit Logs"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/route-ai.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/route-ai.tsx
new file mode 100644
index 0000000000..1067316de2
--- /dev/null
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/route-ai.tsx
@@ -0,0 +1,34 @@
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+
+import { ProjectAccessControlTabs } from "@app/types/project";
+
+import { GroupDetailsByIDPage } from "./GroupDetailsByIDPage";
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/groups/$groupId"
+)({
+ component: GroupDetailsByIDPage,
+ beforeLoad: ({ context, params }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "Access Control",
+ link: linkOptions({
+ to: "/organizations/$orgId/projects/cert-management/$projectId/access-management",
+ params: {
+ orgId: params.orgId,
+ projectId: params.projectId
+ },
+ search: {
+ selectedTab: ProjectAccessControlTabs.Groups
+ }
+ })
+ },
+ {
+ label: "Group"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/route-ai.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/route-ai.tsx
new file mode 100644
index 0000000000..a91b929429
--- /dev/null
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/route-ai.tsx
@@ -0,0 +1,34 @@
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+
+import { ProjectAccessControlTabs } from "@app/types/project";
+
+import { IdentityDetailsByIDPage } from "./IdentityDetailsByIDPage";
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/identities/$identityId"
+)({
+ component: IdentityDetailsByIDPage,
+ beforeLoad: ({ context, params }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "Access Control",
+ link: linkOptions({
+ to: "/organizations/$orgId/projects/cert-management/$projectId/access-management",
+ params: {
+ orgId: params.orgId,
+ projectId: params.projectId
+ },
+ search: {
+ selectedTab: ProjectAccessControlTabs.Identities
+ }
+ })
+ },
+ {
+ label: "Machine Identity"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/route-ai.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/route-ai.tsx
new file mode 100644
index 0000000000..2ea704fcfb
--- /dev/null
+++ b/frontend/src/pages/project/MemberDetailsByIDPage/route-ai.tsx
@@ -0,0 +1,34 @@
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+
+import { ProjectAccessControlTabs } from "@app/types/project";
+
+import { MemberDetailsByIDPage } from "./MemberDetailsByIDPage";
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/members/$membershipId"
+)({
+ component: MemberDetailsByIDPage,
+ beforeLoad: ({ context, params }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "Access Control",
+ link: linkOptions({
+ to: "/organizations/$orgId/projects/cert-management/$projectId/access-management",
+ params: {
+ orgId: params.orgId,
+ projectId: params.projectId
+ },
+ search: {
+ selectedTab: ProjectAccessControlTabs.Member
+ }
+ })
+ },
+ {
+ label: "User"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/route-ai.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/route-ai.tsx
new file mode 100644
index 0000000000..1fefbec080
--- /dev/null
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/route-ai.tsx
@@ -0,0 +1,34 @@
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+
+import { ProjectAccessControlTabs } from "@app/types/project";
+
+import { RoleDetailsBySlugPage } from "./RoleDetailsBySlugPage";
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/roles/$roleSlug"
+)({
+ component: RoleDetailsBySlugPage,
+ beforeLoad: ({ context, params }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "Access Control",
+ link: linkOptions({
+ to: "/organizations/$orgId/projects/cert-management/$projectId/access-management",
+ params: {
+ orgId: params.orgId,
+ projectId: params.projectId
+ },
+ search: {
+ selectedTab: ProjectAccessControlTabs.Roles
+ }
+ })
+ },
+ {
+ label: "Roles"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.ts
index ca413ef21d..55d8edad30 100644
--- a/frontend/src/routeTree.gen.ts
+++ b/frontend/src/routeTree.gen.ts
@@ -82,6 +82,7 @@ import { Route as secretManagerLayoutImport } from './pages/secret-manager/layou
import { Route as pamLayoutImport } from './pages/pam/layout'
import { Route as kmsLayoutImport } from './pages/kms/layout'
import { Route as certManagerLayoutImport } from './pages/cert-manager/layout'
+import { Route as aiLayoutImport } from './pages/ai/layout'
import { Route as organizationAppConnectionsOauthCallbackPageRouteImport } from './pages/organization/AppConnections/OauthCallbackPage/route'
import { Route as projectAuditLogsPageRouteSshImport } from './pages/project/AuditLogsPage/route-ssh'
import { Route as projectAccessControlPageRouteSshImport } from './pages/project/AccessControlPage/route-ssh'
@@ -98,6 +99,8 @@ import { Route as projectAccessControlPageRouteKmsImport } from './pages/project
import { Route as projectAuditLogsPageRouteCertManagerImport } from './pages/project/AuditLogsPage/route-cert-manager'
import { Route as projectAppConnectionsPageRouteCertManagerImport } from './pages/project/AppConnectionsPage/route-cert-manager'
import { Route as projectAccessControlPageRouteCertManagerImport } from './pages/project/AccessControlPage/route-cert-manager'
+import { Route as projectAuditLogsPageRouteAiImport } from './pages/project/AuditLogsPage/route-ai'
+import { Route as projectAccessControlPageRouteAiImport } from './pages/project/AccessControlPage/route-ai'
import { Route as sshSettingsPageRouteImport } from './pages/ssh/SettingsPage/route'
import { Route as sshSshHostsPageRouteImport } from './pages/ssh/SshHostsPage/route'
import { Route as sshSshCertsPageRouteImport } from './pages/ssh/SshCertsPage/route'
@@ -119,6 +122,8 @@ import { Route as certManagerSettingsPageRouteImport } from './pages/cert-manage
import { Route as certManagerPoliciesPageRouteImport } from './pages/cert-manager/PoliciesPage/route'
import { Route as certManagerCertificateAuthoritiesPageRouteImport } from './pages/cert-manager/CertificateAuthoritiesPage/route'
import { Route as certManagerAlertingPageRouteImport } from './pages/cert-manager/AlertingPage/route'
+import { Route as aiSettingsPageRouteImport } from './pages/ai/SettingsPage/route'
+import { Route as aiMCPPageRouteImport } from './pages/ai/MCPPage/route'
import { Route as projectRoleDetailsBySlugPageRouteSshImport } from './pages/project/RoleDetailsBySlugPage/route-ssh'
import { Route as projectMemberDetailsByIDPageRouteSshImport } from './pages/project/MemberDetailsByIDPage/route-ssh'
import { Route as projectIdentityDetailsByIDPageRouteSshImport } from './pages/project/IdentityDetailsByIDPage/route-ssh'
@@ -144,6 +149,10 @@ import { Route as certManagerPkiCollectionDetailsByIDPageRoutesImport } from './
import { Route as projectMemberDetailsByIDPageRouteCertManagerImport } from './pages/project/MemberDetailsByIDPage/route-cert-manager'
import { Route as projectIdentityDetailsByIDPageRouteCertManagerImport } from './pages/project/IdentityDetailsByIDPage/route-cert-manager'
import { Route as projectGroupDetailsByIDPageRouteCertManagerImport } from './pages/project/GroupDetailsByIDPage/route-cert-manager'
+import { Route as projectRoleDetailsBySlugPageRouteAiImport } from './pages/project/RoleDetailsBySlugPage/route-ai'
+import { Route as projectMemberDetailsByIDPageRouteAiImport } from './pages/project/MemberDetailsByIDPage/route-ai'
+import { Route as projectIdentityDetailsByIDPageRouteAiImport } from './pages/project/IdentityDetailsByIDPage/route-ai'
+import { Route as projectGroupDetailsByIDPageRouteAiImport } from './pages/project/GroupDetailsByIDPage/route-ai'
import { Route as sshSshHostGroupDetailsByIDPageRouteImport } from './pages/ssh/SshHostGroupDetailsByIDPage/route'
import { Route as sshSshCaByIDPageRouteImport } from './pages/ssh/SshCaByIDPage/route'
import { Route as secretManagerSecretDashboardPageRouteImport } from './pages/secret-manager/SecretDashboardPage/route'
@@ -308,6 +317,10 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagem
createFileRoute(
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId',
)()
+const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdImport =
+ createFileRoute(
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId',
+ )()
const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretScanningProjectIdSecretScanningLayoutDataSourcesImport =
createFileRoute(
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/data-sources',
@@ -930,6 +943,15 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagem
} as any,
)
+const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRoute =
+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdImport.update(
+ {
+ id: '/ai/$projectId',
+ path: '/ai/$projectId',
+ getParentRoute: () => organizationProjectsPageRouteRoute,
+ } as any,
+ )
+
const organizationSettingsPageOauthCallbackPageRouteRoute =
organizationSettingsPageOauthCallbackPageRouteImport.update({
id: '/oauth/callback',
@@ -974,6 +996,12 @@ const certManagerLayoutRoute = certManagerLayoutImport.update({
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagementProjectIdRoute,
} as any)
+const aiLayoutRoute = aiLayoutImport.update({
+ id: '/_ai-layout',
+ getParentRoute: () =>
+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRoute,
+} as any)
+
const organizationAppConnectionsOauthCallbackPageRouteRoute =
organizationAppConnectionsOauthCallbackPageRouteImport.update({
id: '/$appConnection/oauth/callback',
@@ -1141,6 +1169,20 @@ const projectAccessControlPageRouteCertManagerRoute =
getParentRoute: () => certManagerLayoutRoute,
} as any)
+const projectAuditLogsPageRouteAiRoute =
+ projectAuditLogsPageRouteAiImport.update({
+ id: '/audit-logs',
+ path: '/audit-logs',
+ getParentRoute: () => aiLayoutRoute,
+ } as any)
+
+const projectAccessControlPageRouteAiRoute =
+ projectAccessControlPageRouteAiImport.update({
+ id: '/access-management',
+ path: '/access-management',
+ getParentRoute: () => aiLayoutRoute,
+ } as any)
+
const sshSettingsPageRouteRoute = sshSettingsPageRouteImport.update({
id: '/settings',
path: '/settings',
@@ -1278,6 +1320,18 @@ const certManagerAlertingPageRouteRoute =
getParentRoute: () => certManagerLayoutRoute,
} as any)
+const aiSettingsPageRouteRoute = aiSettingsPageRouteImport.update({
+ id: '/settings',
+ path: '/settings',
+ getParentRoute: () => aiLayoutRoute,
+} as any)
+
+const aiMCPPageRouteRoute = aiMCPPageRouteImport.update({
+ id: '/overview',
+ path: '/overview',
+ getParentRoute: () => aiLayoutRoute,
+} as any)
+
const projectRoleDetailsBySlugPageRouteSshRoute =
projectRoleDetailsBySlugPageRouteSshImport.update({
id: '/roles/$roleSlug',
@@ -1453,6 +1507,34 @@ const projectGroupDetailsByIDPageRouteCertManagerRoute =
getParentRoute: () => certManagerLayoutRoute,
} as any)
+const projectRoleDetailsBySlugPageRouteAiRoute =
+ projectRoleDetailsBySlugPageRouteAiImport.update({
+ id: '/roles/$roleSlug',
+ path: '/roles/$roleSlug',
+ getParentRoute: () => aiLayoutRoute,
+ } as any)
+
+const projectMemberDetailsByIDPageRouteAiRoute =
+ projectMemberDetailsByIDPageRouteAiImport.update({
+ id: '/members/$membershipId',
+ path: '/members/$membershipId',
+ getParentRoute: () => aiLayoutRoute,
+ } as any)
+
+const projectIdentityDetailsByIDPageRouteAiRoute =
+ projectIdentityDetailsByIDPageRouteAiImport.update({
+ id: '/identities/$identityId',
+ path: '/identities/$identityId',
+ getParentRoute: () => aiLayoutRoute,
+ } as any)
+
+const projectGroupDetailsByIDPageRouteAiRoute =
+ projectGroupDetailsByIDPageRouteAiImport.update({
+ id: '/groups/$groupId',
+ path: '/groups/$groupId',
+ getParentRoute: () => aiLayoutRoute,
+ } as any)
+
const sshSshHostGroupDetailsByIDPageRouteRoute =
sshSshHostGroupDetailsByIDPageRouteImport.update({
id: '/ssh-host-groups/$sshHostGroupId',
@@ -2748,6 +2830,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof organizationSettingsPageOauthCallbackPageRouteImport
parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSettingsImport
}
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId'
+ path: '/ai/$projectId'
+ fullPath: '/organizations/$orgId/projects/ai/$projectId'
+ preLoaderRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdImport
+ parentRoute: typeof organizationProjectsPageRouteImport
+ }
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId': {
id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId'
path: '/cert-management/$projectId'
@@ -2804,6 +2893,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof organizationAppConnectionsOauthCallbackPageRouteImport
parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdAppConnectionsImport
}
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout'
+ path: ''
+ fullPath: '/organizations/$orgId/projects/ai/$projectId'
+ preLoaderRoute: typeof aiLayoutImport
+ parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdImport
+ }
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout': {
id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout'
path: ''
@@ -2846,6 +2942,20 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof sshLayoutImport
parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSshProjectIdImport
}
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/overview': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/overview'
+ path: '/overview'
+ fullPath: '/organizations/$orgId/projects/ai/$projectId/overview'
+ preLoaderRoute: typeof aiMCPPageRouteImport
+ parentRoute: typeof aiLayoutImport
+ }
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/settings': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/settings'
+ path: '/settings'
+ fullPath: '/organizations/$orgId/projects/ai/$projectId/settings'
+ preLoaderRoute: typeof aiSettingsPageRouteImport
+ parentRoute: typeof aiLayoutImport
+ }
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/alerting': {
id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/alerting'
path: '/alerting'
@@ -2993,6 +3103,20 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof sshSettingsPageRouteImport
parentRoute: typeof sshLayoutImport
}
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/access-management': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/access-management'
+ path: '/access-management'
+ fullPath: '/organizations/$orgId/projects/ai/$projectId/access-management'
+ preLoaderRoute: typeof projectAccessControlPageRouteAiImport
+ parentRoute: typeof aiLayoutImport
+ }
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs'
+ path: '/audit-logs'
+ fullPath: '/organizations/$orgId/projects/ai/$projectId/audit-logs'
+ preLoaderRoute: typeof projectAuditLogsPageRouteAiImport
+ parentRoute: typeof aiLayoutImport
+ }
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/access-management': {
id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/access-management'
path: '/access-management'
@@ -3245,6 +3369,34 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof sshSshHostGroupDetailsByIDPageRouteImport
parentRoute: typeof sshLayoutImport
}
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/groups/$groupId': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/groups/$groupId'
+ path: '/groups/$groupId'
+ fullPath: '/organizations/$orgId/projects/ai/$projectId/groups/$groupId'
+ preLoaderRoute: typeof projectGroupDetailsByIDPageRouteAiImport
+ parentRoute: typeof aiLayoutImport
+ }
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/identities/$identityId': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/identities/$identityId'
+ path: '/identities/$identityId'
+ fullPath: '/organizations/$orgId/projects/ai/$projectId/identities/$identityId'
+ preLoaderRoute: typeof projectIdentityDetailsByIDPageRouteAiImport
+ parentRoute: typeof aiLayoutImport
+ }
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/members/$membershipId': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/members/$membershipId'
+ path: '/members/$membershipId'
+ fullPath: '/organizations/$orgId/projects/ai/$projectId/members/$membershipId'
+ preLoaderRoute: typeof projectMemberDetailsByIDPageRouteAiImport
+ parentRoute: typeof aiLayoutImport
+ }
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/roles/$roleSlug': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/roles/$roleSlug'
+ path: '/roles/$roleSlug'
+ fullPath: '/organizations/$orgId/projects/ai/$projectId/roles/$roleSlug'
+ preLoaderRoute: typeof projectRoleDetailsBySlugPageRouteAiImport
+ parentRoute: typeof aiLayoutImport
+ }
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/groups/$groupId': {
id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/groups/$groupId'
path: '/groups/$groupId'
@@ -4031,6 +4183,50 @@ const AuthenticateInjectOrgDetailsOrgLayoutIntegrationsRouteWithChildren =
AuthenticateInjectOrgDetailsOrgLayoutIntegrationsRouteChildren,
)
+interface aiLayoutRouteChildren {
+ aiMCPPageRouteRoute: typeof aiMCPPageRouteRoute
+ aiSettingsPageRouteRoute: typeof aiSettingsPageRouteRoute
+ projectAccessControlPageRouteAiRoute: typeof projectAccessControlPageRouteAiRoute
+ projectAuditLogsPageRouteAiRoute: typeof projectAuditLogsPageRouteAiRoute
+ projectGroupDetailsByIDPageRouteAiRoute: typeof projectGroupDetailsByIDPageRouteAiRoute
+ projectIdentityDetailsByIDPageRouteAiRoute: typeof projectIdentityDetailsByIDPageRouteAiRoute
+ projectMemberDetailsByIDPageRouteAiRoute: typeof projectMemberDetailsByIDPageRouteAiRoute
+ projectRoleDetailsBySlugPageRouteAiRoute: typeof projectRoleDetailsBySlugPageRouteAiRoute
+}
+
+const aiLayoutRouteChildren: aiLayoutRouteChildren = {
+ aiMCPPageRouteRoute: aiMCPPageRouteRoute,
+ aiSettingsPageRouteRoute: aiSettingsPageRouteRoute,
+ projectAccessControlPageRouteAiRoute: projectAccessControlPageRouteAiRoute,
+ projectAuditLogsPageRouteAiRoute: projectAuditLogsPageRouteAiRoute,
+ projectGroupDetailsByIDPageRouteAiRoute:
+ projectGroupDetailsByIDPageRouteAiRoute,
+ projectIdentityDetailsByIDPageRouteAiRoute:
+ projectIdentityDetailsByIDPageRouteAiRoute,
+ projectMemberDetailsByIDPageRouteAiRoute:
+ projectMemberDetailsByIDPageRouteAiRoute,
+ projectRoleDetailsBySlugPageRouteAiRoute:
+ projectRoleDetailsBySlugPageRouteAiRoute,
+}
+
+const aiLayoutRouteWithChildren = aiLayoutRoute._addFileChildren(
+ aiLayoutRouteChildren,
+)
+
+interface AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteChildren {
+ aiLayoutRoute: typeof aiLayoutRouteWithChildren
+}
+
+const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteChildren: AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteChildren =
+ {
+ aiLayoutRoute: aiLayoutRouteWithChildren,
+ }
+
+const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteWithChildren =
+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRoute._addFileChildren(
+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteChildren,
+ )
+
interface AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagementProjectIdCertManagerLayoutCertificateTemplatesRouteChildren {
certManagerPkiTemplateListPageRouteRoute: typeof certManagerPkiTemplateListPageRouteRoute
}
@@ -4733,6 +4929,7 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSshProjectI
interface organizationProjectsPageRouteRouteChildren {
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute
+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteWithChildren
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagementProjectIdRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagementProjectIdRouteWithChildren
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIdRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIdRouteWithChildren
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdRouteWithChildren
@@ -4745,6 +4942,8 @@ const organizationProjectsPageRouteRouteChildren: organizationProjectsPageRouteR
{
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute:
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute,
+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRoute:
+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteWithChildren,
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagementProjectIdRoute:
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagementProjectIdRouteWithChildren,
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIdRoute:
@@ -5143,6 +5342,7 @@ export interface FileRoutesByFullPath {
'/organizations/$orgId/projects/$': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute
'/organizations/$orgId/secret-manager/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretManagerProjectIdRouteWithChildren
'/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId': typeof aiLayoutRouteWithChildren
'/organizations/$orgId/projects/cert-management/$projectId': typeof certManagerLayoutRouteWithChildren
'/organizations/$orgId/projects/kms/$projectId': typeof kmsLayoutRouteWithChildren
'/organizations/$orgId/projects/pam/$projectId': typeof pamLayoutRouteWithChildren
@@ -5151,6 +5351,8 @@ export interface FileRoutesByFullPath {
'/organizations/$orgId/projects/ssh/$projectId': typeof sshLayoutRouteWithChildren
'/organizations/$orgId/secret-manager/$projectId/approval': typeof secretManagerRedirectsRedirectApprovalPageRoute
'/organizations/$orgId/app-connections/$appConnection/oauth/callback': typeof organizationAppConnectionsOauthCallbackPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId/overview': typeof aiMCPPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId/settings': typeof aiSettingsPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/alerting': typeof certManagerAlertingPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/certificate-authorities': typeof certManagerCertificateAuthoritiesPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/policies': typeof certManagerPoliciesPageRouteRoute
@@ -5172,6 +5374,8 @@ export interface FileRoutesByFullPath {
'/organizations/$orgId/projects/ssh/$projectId/certificates': typeof sshSshCertsPageRouteRoute
'/organizations/$orgId/projects/ssh/$projectId/overview': typeof sshSshHostsPageRouteRoute
'/organizations/$orgId/projects/ssh/$projectId/settings': typeof sshSettingsPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId/access-management': typeof projectAccessControlPageRouteAiRoute
+ '/organizations/$orgId/projects/ai/$projectId/audit-logs': typeof projectAuditLogsPageRouteAiRoute
'/organizations/$orgId/projects/cert-management/$projectId/access-management': typeof projectAccessControlPageRouteCertManagerRoute
'/organizations/$orgId/projects/cert-management/$projectId/app-connections': typeof projectAppConnectionsPageRouteCertManagerRoute
'/organizations/$orgId/projects/cert-management/$projectId/audit-logs': typeof projectAuditLogsPageRouteCertManagerRoute
@@ -5208,6 +5412,10 @@ export interface FileRoutesByFullPath {
'/organizations/$orgId/projects/secret-management/$projectId/secrets/$envSlug': typeof secretManagerSecretDashboardPageRouteRoute
'/organizations/$orgId/projects/ssh/$projectId/ca/$caId': typeof sshSshCaByIDPageRouteRoute
'/organizations/$orgId/projects/ssh/$projectId/ssh-host-groups/$sshHostGroupId': typeof sshSshHostGroupDetailsByIDPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId/groups/$groupId': typeof projectGroupDetailsByIDPageRouteAiRoute
+ '/organizations/$orgId/projects/ai/$projectId/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteAiRoute
+ '/organizations/$orgId/projects/ai/$projectId/members/$membershipId': typeof projectMemberDetailsByIDPageRouteAiRoute
+ '/organizations/$orgId/projects/ai/$projectId/roles/$roleSlug': typeof projectRoleDetailsBySlugPageRouteAiRoute
'/organizations/$orgId/projects/cert-management/$projectId/groups/$groupId': typeof projectGroupDetailsByIDPageRouteCertManagerRoute
'/organizations/$orgId/projects/cert-management/$projectId/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteCertManagerRoute
'/organizations/$orgId/projects/cert-management/$projectId/members/$membershipId': typeof projectMemberDetailsByIDPageRouteCertManagerRoute
@@ -5379,6 +5587,7 @@ export interface FileRoutesByTo {
'/organizations/$orgId/projects/$': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute
'/organizations/$orgId/secret-manager/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretManagerProjectIdRouteWithChildren
'/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId': typeof aiLayoutRouteWithChildren
'/organizations/$orgId/projects/cert-management/$projectId': typeof certManagerLayoutRouteWithChildren
'/organizations/$orgId/projects/kms/$projectId': typeof kmsLayoutRouteWithChildren
'/organizations/$orgId/projects/pam/$projectId': typeof pamLayoutRouteWithChildren
@@ -5387,6 +5596,8 @@ export interface FileRoutesByTo {
'/organizations/$orgId/projects/ssh/$projectId': typeof sshLayoutRouteWithChildren
'/organizations/$orgId/secret-manager/$projectId/approval': typeof secretManagerRedirectsRedirectApprovalPageRoute
'/organizations/$orgId/app-connections/$appConnection/oauth/callback': typeof organizationAppConnectionsOauthCallbackPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId/overview': typeof aiMCPPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId/settings': typeof aiSettingsPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/alerting': typeof certManagerAlertingPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/certificate-authorities': typeof certManagerCertificateAuthoritiesPageRouteRoute
'/organizations/$orgId/projects/cert-management/$projectId/policies': typeof certManagerPoliciesPageRouteRoute
@@ -5408,6 +5619,8 @@ export interface FileRoutesByTo {
'/organizations/$orgId/projects/ssh/$projectId/certificates': typeof sshSshCertsPageRouteRoute
'/organizations/$orgId/projects/ssh/$projectId/overview': typeof sshSshHostsPageRouteRoute
'/organizations/$orgId/projects/ssh/$projectId/settings': typeof sshSettingsPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId/access-management': typeof projectAccessControlPageRouteAiRoute
+ '/organizations/$orgId/projects/ai/$projectId/audit-logs': typeof projectAuditLogsPageRouteAiRoute
'/organizations/$orgId/projects/cert-management/$projectId/access-management': typeof projectAccessControlPageRouteCertManagerRoute
'/organizations/$orgId/projects/cert-management/$projectId/app-connections': typeof projectAppConnectionsPageRouteCertManagerRoute
'/organizations/$orgId/projects/cert-management/$projectId/audit-logs': typeof projectAuditLogsPageRouteCertManagerRoute
@@ -5438,6 +5651,10 @@ export interface FileRoutesByTo {
'/organizations/$orgId/projects/secret-management/$projectId/secrets/$envSlug': typeof secretManagerSecretDashboardPageRouteRoute
'/organizations/$orgId/projects/ssh/$projectId/ca/$caId': typeof sshSshCaByIDPageRouteRoute
'/organizations/$orgId/projects/ssh/$projectId/ssh-host-groups/$sshHostGroupId': typeof sshSshHostGroupDetailsByIDPageRouteRoute
+ '/organizations/$orgId/projects/ai/$projectId/groups/$groupId': typeof projectGroupDetailsByIDPageRouteAiRoute
+ '/organizations/$orgId/projects/ai/$projectId/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteAiRoute
+ '/organizations/$orgId/projects/ai/$projectId/members/$membershipId': typeof projectMemberDetailsByIDPageRouteAiRoute
+ '/organizations/$orgId/projects/ai/$projectId/roles/$roleSlug': typeof projectRoleDetailsBySlugPageRouteAiRoute
'/organizations/$orgId/projects/cert-management/$projectId/groups/$groupId': typeof projectGroupDetailsByIDPageRouteCertManagerRoute
'/organizations/$orgId/projects/cert-management/$projectId/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteCertManagerRoute
'/organizations/$orgId/projects/cert-management/$projectId/members/$membershipId': typeof projectMemberDetailsByIDPageRouteCertManagerRoute
@@ -5620,6 +5837,7 @@ export interface FileRoutesById {
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSplatRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSecretManagerProjectIdRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagementProjectIdRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIdRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdRouteWithChildren
@@ -5628,12 +5846,15 @@ export interface FileRoutesById {
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSshProjectIdRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId/approval': typeof secretManagerRedirectsRedirectApprovalPageRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections/$appConnection/oauth/callback': typeof organizationAppConnectionsOauthCallbackPageRouteRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout': typeof aiLayoutRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout': typeof certManagerLayoutRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout': typeof kmsLayoutRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout': typeof pamLayoutRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout': typeof secretManagerLayoutRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout': typeof secretScanningLayoutRouteWithChildren
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout': typeof sshLayoutRouteWithChildren
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/overview': typeof aiMCPPageRouteRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/settings': typeof aiSettingsPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/alerting': typeof certManagerAlertingPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/certificate-authorities': typeof certManagerCertificateAuthoritiesPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/policies': typeof certManagerPoliciesPageRouteRoute
@@ -5655,6 +5876,8 @@ export interface FileRoutesById {
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/certificates': typeof sshSshCertsPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/overview': typeof sshSshHostsPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/settings': typeof sshSettingsPageRouteRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/access-management': typeof projectAccessControlPageRouteAiRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs': typeof projectAuditLogsPageRouteAiRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/access-management': typeof projectAccessControlPageRouteCertManagerRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/app-connections': typeof projectAppConnectionsPageRouteCertManagerRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/audit-logs': typeof projectAuditLogsPageRouteCertManagerRoute
@@ -5691,6 +5914,10 @@ export interface FileRoutesById {
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/secrets/$envSlug': typeof secretManagerSecretDashboardPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/ca/$caId': typeof sshSshCaByIDPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/ssh-host-groups/$sshHostGroupId': typeof sshSshHostGroupDetailsByIDPageRouteRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/groups/$groupId': typeof projectGroupDetailsByIDPageRouteAiRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteAiRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/members/$membershipId': typeof projectMemberDetailsByIDPageRouteAiRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/roles/$roleSlug': typeof projectRoleDetailsBySlugPageRouteAiRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/groups/$groupId': typeof projectGroupDetailsByIDPageRouteCertManagerRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteCertManagerRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/members/$membershipId': typeof projectMemberDetailsByIDPageRouteCertManagerRoute
@@ -5871,6 +6098,7 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/$'
| '/organizations/$orgId/secret-manager/$projectId'
| '/organizations/$orgId/settings/oauth/callback'
+ | '/organizations/$orgId/projects/ai/$projectId'
| '/organizations/$orgId/projects/cert-management/$projectId'
| '/organizations/$orgId/projects/kms/$projectId'
| '/organizations/$orgId/projects/pam/$projectId'
@@ -5879,6 +6107,8 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/ssh/$projectId'
| '/organizations/$orgId/secret-manager/$projectId/approval'
| '/organizations/$orgId/app-connections/$appConnection/oauth/callback'
+ | '/organizations/$orgId/projects/ai/$projectId/overview'
+ | '/organizations/$orgId/projects/ai/$projectId/settings'
| '/organizations/$orgId/projects/cert-management/$projectId/alerting'
| '/organizations/$orgId/projects/cert-management/$projectId/certificate-authorities'
| '/organizations/$orgId/projects/cert-management/$projectId/policies'
@@ -5900,6 +6130,8 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/ssh/$projectId/certificates'
| '/organizations/$orgId/projects/ssh/$projectId/overview'
| '/organizations/$orgId/projects/ssh/$projectId/settings'
+ | '/organizations/$orgId/projects/ai/$projectId/access-management'
+ | '/organizations/$orgId/projects/ai/$projectId/audit-logs'
| '/organizations/$orgId/projects/cert-management/$projectId/access-management'
| '/organizations/$orgId/projects/cert-management/$projectId/app-connections'
| '/organizations/$orgId/projects/cert-management/$projectId/audit-logs'
@@ -5936,6 +6168,10 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/secret-management/$projectId/secrets/$envSlug'
| '/organizations/$orgId/projects/ssh/$projectId/ca/$caId'
| '/organizations/$orgId/projects/ssh/$projectId/ssh-host-groups/$sshHostGroupId'
+ | '/organizations/$orgId/projects/ai/$projectId/groups/$groupId'
+ | '/organizations/$orgId/projects/ai/$projectId/identities/$identityId'
+ | '/organizations/$orgId/projects/ai/$projectId/members/$membershipId'
+ | '/organizations/$orgId/projects/ai/$projectId/roles/$roleSlug'
| '/organizations/$orgId/projects/cert-management/$projectId/groups/$groupId'
| '/organizations/$orgId/projects/cert-management/$projectId/identities/$identityId'
| '/organizations/$orgId/projects/cert-management/$projectId/members/$membershipId'
@@ -6106,6 +6342,7 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/$'
| '/organizations/$orgId/secret-manager/$projectId'
| '/organizations/$orgId/settings/oauth/callback'
+ | '/organizations/$orgId/projects/ai/$projectId'
| '/organizations/$orgId/projects/cert-management/$projectId'
| '/organizations/$orgId/projects/kms/$projectId'
| '/organizations/$orgId/projects/pam/$projectId'
@@ -6114,6 +6351,8 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/ssh/$projectId'
| '/organizations/$orgId/secret-manager/$projectId/approval'
| '/organizations/$orgId/app-connections/$appConnection/oauth/callback'
+ | '/organizations/$orgId/projects/ai/$projectId/overview'
+ | '/organizations/$orgId/projects/ai/$projectId/settings'
| '/organizations/$orgId/projects/cert-management/$projectId/alerting'
| '/organizations/$orgId/projects/cert-management/$projectId/certificate-authorities'
| '/organizations/$orgId/projects/cert-management/$projectId/policies'
@@ -6135,6 +6374,8 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/ssh/$projectId/certificates'
| '/organizations/$orgId/projects/ssh/$projectId/overview'
| '/organizations/$orgId/projects/ssh/$projectId/settings'
+ | '/organizations/$orgId/projects/ai/$projectId/access-management'
+ | '/organizations/$orgId/projects/ai/$projectId/audit-logs'
| '/organizations/$orgId/projects/cert-management/$projectId/access-management'
| '/organizations/$orgId/projects/cert-management/$projectId/app-connections'
| '/organizations/$orgId/projects/cert-management/$projectId/audit-logs'
@@ -6165,6 +6406,10 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/secret-management/$projectId/secrets/$envSlug'
| '/organizations/$orgId/projects/ssh/$projectId/ca/$caId'
| '/organizations/$orgId/projects/ssh/$projectId/ssh-host-groups/$sshHostGroupId'
+ | '/organizations/$orgId/projects/ai/$projectId/groups/$groupId'
+ | '/organizations/$orgId/projects/ai/$projectId/identities/$identityId'
+ | '/organizations/$orgId/projects/ai/$projectId/members/$membershipId'
+ | '/organizations/$orgId/projects/ai/$projectId/roles/$roleSlug'
| '/organizations/$orgId/projects/cert-management/$projectId/groups/$groupId'
| '/organizations/$orgId/projects/cert-management/$projectId/identities/$identityId'
| '/organizations/$orgId/projects/cert-management/$projectId/members/$membershipId'
@@ -6345,6 +6590,7 @@ export interface FileRouteTypes {
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback'
+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId'
@@ -6353,12 +6599,15 @@ export interface FileRouteTypes {
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId/approval'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections/$appConnection/oauth/callback'
+ | '/_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'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout'
+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/overview'
+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/settings'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/alerting'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/certificate-authorities'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/policies'
@@ -6380,6 +6629,8 @@ export interface FileRouteTypes {
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/certificates'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/overview'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-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/cert-management/$projectId/_cert-manager-layout/access-management'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/app-connections'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/audit-logs'
@@ -6416,6 +6667,10 @@ export interface FileRouteTypes {
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/secrets/$envSlug'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/ca/$caId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/ssh-host-groups/$sshHostGroupId'
+ | '/_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'
+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/roles/$roleSlug'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/groups/$groupId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/identities/$identityId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout/members/$membershipId'
@@ -6848,6 +7103,7 @@ export const routeTree = rootRoute
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId",
"children": [
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$",
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId",
@@ -6966,6 +7222,13 @@ export const routeTree = rootRoute
"filePath": "organization/SettingsPage/OauthCallbackPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings"
},
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId": {
+ "filePath": "",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects",
+ "children": [
+ "/_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": {
"filePath": "",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects",
@@ -7016,6 +7279,20 @@ export const routeTree = rootRoute
"filePath": "organization/AppConnections/OauthCallbackPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections"
},
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout": {
+ "filePath": "ai/layout.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId",
+ "children": [
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/overview",
+ "/_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/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",
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/roles/$roleSlug"
+ ]
+ },
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout": {
"filePath": "cert-manager/layout.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId",
@@ -7124,6 +7401,14 @@ export const routeTree = rootRoute
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/roles/$roleSlug"
]
},
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/overview": {
+ "filePath": "ai/MCPPage/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/ai/$projectId/_ai-layout/settings": {
+ "filePath": "ai/SettingsPage/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/alerting": {
"filePath": "cert-manager/AlertingPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout"
@@ -7208,6 +7493,14 @@ export const routeTree = rootRoute
"filePath": "ssh/SettingsPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout"
},
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/access-management": {
+ "filePath": "project/AccessControlPage/route-ai.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout"
+ },
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/audit-logs": {
+ "filePath": "project/AuditLogsPage/route-ai.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/access-management": {
"filePath": "project/AccessControlPage/route-cert-manager.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-management/$projectId/_cert-manager-layout"
@@ -7451,6 +7744,22 @@ export const routeTree = rootRoute
"filePath": "ssh/SshHostGroupDetailsByIDPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout"
},
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/groups/$groupId": {
+ "filePath": "project/GroupDetailsByIDPage/route-ai.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout"
+ },
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/identities/$identityId": {
+ "filePath": "project/IdentityDetailsByIDPage/route-ai.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout"
+ },
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/members/$membershipId": {
+ "filePath": "project/MemberDetailsByIDPage/route-ai.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout"
+ },
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout/roles/$roleSlug": {
+ "filePath": "project/RoleDetailsBySlugPage/route-ai.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/groups/$groupId": {
"filePath": "project/GroupDetailsByIDPage/route-cert-manager.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 b0b52c4d36..d0f1916dbf 100644
--- a/frontend/src/routes.ts
+++ b/frontend/src/routes.ts
@@ -299,6 +299,19 @@ const certManagerRoutes = route("/organizations/$orgId/projects/cert-management/
])
]);
+const aiRoutes = route("/organizations/$orgId/projects/ai/$projectId", [
+ layout("ai-layout", "ai/layout.tsx", [
+ route("/overview", "ai/MCPPage/route.tsx"),
+ route("/settings", "ai/SettingsPage/route.tsx"),
+ route("/audit-logs", "project/AuditLogsPage/route-ai.tsx"),
+ route("/access-management", "project/AccessControlPage/route-ai.tsx"),
+ route("/roles/$roleSlug", "project/RoleDetailsBySlugPage/route-ai.tsx"),
+ route("/identities/$identityId", "project/IdentityDetailsByIDPage/route-ai.tsx"),
+ route("/members/$membershipId", "project/MemberDetailsByIDPage/route-ai.tsx"),
+ route("/groups/$groupId", "project/GroupDetailsByIDPage/route-ai.tsx")
+ ])
+]);
+
const kmsRoutes = route("/organizations/$orgId/projects/kms/$projectId", [
layout("kms-layout", "kms/layout.tsx", [
route("/overview", "kms/OverviewPage/route.tsx"),
@@ -445,7 +458,8 @@ export const routes = rootRoute("root.tsx", [
kmsRoutes,
sshRoutes,
secretScanningRoutes,
- pamRoutes
+ pamRoutes,
+ aiRoutes
])
])
])