Skip to content

Commit 5ee342a

Browse files
committed
Remove mcp-server
1 parent ddf1cfd commit 5ee342a

File tree

14 files changed

+5
-703
lines changed

14 files changed

+5
-703
lines changed

apps/backend/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"codegen-prisma:watch": "pnpm run prisma generate --watch",
1818
"codegen-route-info": "pnpm run with-env tsx scripts/generate-route-info.ts",
1919
"codegen-route-info:watch": "pnpm run with-env tsx watch --clear-screen=false scripts/generate-route-info.ts",
20-
"codegen": "pnpm run with-env pnpm run generate-migration-imports && pnpm run with-env bash -c 'if [ \"$STACK_ACCELERATE_ENABLED\" = \"true\" ]; then pnpm run prisma generate --no-engine && pnpm run generate-openapi; else pnpm run codegen-prisma && pnpm run generate-openapi; fi' && pnpm run codegen-route-info",
20+
"codegen": "pnpm run with-env pnpm run generate-migration-imports && pnpm run with-env bash -c 'if [ \"$STACK_ACCELERATE_ENABLED\" = \"true\" ]; then pnpm run prisma generate --no-engine; else pnpm run codegen-prisma; fi' && pnpm run codegen-route-info",
2121
"codegen:watch": "concurrently -n \"prisma,docs,route-info\" -k \"pnpm run codegen-prisma:watch\" \"pnpm run watch-docs\" \"pnpm run codegen-route-info:watch\"",
2222
"psql-inner": "psql $STACK_DATABASE_CONNECTION_STRING",
2323
"psql": "pnpm run with-env pnpm run psql-inner",
@@ -32,7 +32,6 @@
3232
"generate-migration-imports:watch": "chokidar 'prisma/migrations/**/*.sql' -c 'pnpm run generate-migration-imports'",
3333
"lint": "next lint",
3434
"watch-docs": "pnpm run with-env bash -c 'tsx watch --clear-screen=false scripts/generate-openapi-fumadocs.ts && pnpm run --filter=@stackframe/stack-docs generate-openapi-docs'",
35-
"generate-openapi": "pnpm run with-env tsx scripts/generate-openapi.ts",
3635
"generate-openapi-fumadocs": "pnpm run with-env tsx scripts/generate-openapi-fumadocs.ts",
3736
"generate-keys": "pnpm run with-env tsx scripts/generate-keys.ts",
3837
"db-seed-script": "pnpm run with-env tsx prisma/seed.ts",

apps/backend/scripts/generate-openapi.ts

Lines changed: 0 additions & 42 deletions
This file was deleted.

apps/backend/src/route-handlers/smart-request.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ProjectsCrud } from "@stackframe/stack-shared/dist/interface/crud/proje
1313
import { UsersCrud } from "@stackframe/stack-shared/dist/interface/crud/users";
1414
import { StackAdaptSentinel, yupValidate } from "@stackframe/stack-shared/dist/schema-fields";
1515
import { groupBy, typedIncludes } from "@stackframe/stack-shared/dist/utils/arrays";
16-
import { getNodeEnvironment } from "@stackframe/stack-shared/dist/utils/env";
16+
import { getEnvVariable, getNodeEnvironment } from "@stackframe/stack-shared/dist/utils/env";
1717
import { StackAssertionError, StatusError, captureError, throwErr } from "@stackframe/stack-shared/dist/utils/errors";
1818
import { deindent } from "@stackframe/stack-shared/dist/utils/strings";
1919
import { NextRequest } from "next/server";
@@ -259,7 +259,7 @@ const parseAuth = withTraceSpan('smart request parseAuth', async (req: NextReque
259259
const tenancy = req.method === "GET" && req.url.endsWith("/users/me") ? "tenancy not available in /users/me as a performance hack" as never : await getSoleTenancyFromProjectBranch(projectId, branchId, true);
260260

261261
if (developmentKeyOverride) {
262-
if (getNodeEnvironment() !== "development" && getNodeEnvironment() !== "test") {
262+
if (!["development", "test"].includes(getNodeEnvironment()) && getEnvVariable("STACK_ALLOW_DEVELOPMENT_KEY_OVERRIDE_DESPITE_PRODUCTION", "") === "this-is-dangerous") { // it's not actually that dangerous, but it changes the security model
263263
throw new StatusError(401, "Development key override is only allowed in development or test environments");
264264
}
265265
const result = await checkApiKeySet("internal", { superSecretAdminKey: developmentKeyOverride });

apps/mcp-server/.env.development

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/mcp-server/.eslintrc.cjs

Lines changed: 0 additions & 7 deletions
This file was deleted.

apps/mcp-server/CHANGELOG.md

Lines changed: 0 additions & 183 deletions
This file was deleted.

apps/mcp-server/openapi/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/mcp-server/package.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)