mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
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:
@@ -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,
|
||||
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user