feat: add mcp server (#303)

* feat: added the mcp server

* feat: added the mcp server

* fix: api for database not linked to any projects

* fix: added variable to disable MCP

* chore: refactoring
This commit is contained in:
Charles GTE
2026-06-01 23:06:21 +02:00
committed by GitHub
parent 7afcf0f76b
commit 2d7a5ce264
13 changed files with 780 additions and 12 deletions
+7
View File
@@ -108,6 +108,11 @@ export const env = createEnv({
.enum(["true", "false"])
.transform((val) => val === "true")
.default("false"),
MCP_ENABLED: z
.enum(["true", "false"])
.transform((val) => val === "true")
.default("false"),
},
client: {
NEXT_PUBLIC_PROJECT_VERSION: z.string().optional(),
@@ -183,5 +188,7 @@ export const env = createEnv({
OPENAPI_ENABLED: process.env.OPENAPI_ENABLED,
API_ENABLED: process.env.API_ENABLED,
MCP_ENABLED: process.env.MCP_ENABLED,
},
});