stack/turbo.json
Moritz Schneider ab81ad14e1
Implement Model Context Protocol server poc (#552)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Introduces a new Model Context Protocol server with OpenAPI
integration, updates build configurations, and adds necessary files for
initial release.
> 
>   - **New MCP Server**:
> - Implements MCP server in `src/index.ts` using
`@modelcontextprotocol/sdk`.
> - Handles tool requests with `ListToolsRequestSchema` and
`CallToolRequestSchema`.
>     - Supports 40 endpoints, defined in `operationIDs`.
>   - **OpenAPI Integration**:
> - Generates OpenAPI schema in `generate-openapi.ts` and writes to
`mcp-server/openapi`.
> - Converts OpenAPI parameters to JSON schema in
`openapi-to-jsonschema.ts`.
>   - **Configuration and Build**:
> - Adds `package.json` for MCP server with dependencies and scripts.
>     - Configures ESLint in `.eslintrc.cjs`.
> - Updates `Dockerfile` and `turbo.json` to include MCP server in build
process.
>   - **Miscellaneous**:
>     - Adds `.gitignore` for OpenAPI JSON files.
>     - Initial release noted in `CHANGELOG.md`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for d0970c4059. It will automatically
update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-03-19 18:49:39 +00:00

116 lines
2.1 KiB
JSON

{
"$schema": "https://turbo.build/schema.json",
"globalEnv": [
"STACK_*",
"NEXT_PUBLIC_*",
"NEXT_PUBLIC_SENTRY_*",
"SENTRY_*",
"VERCEL_GIT_COMMIT_SHA",
"NEXT_PUBLIC_POSTHOG_*",
"POSTHOG_*",
"NODE_ENV",
"QUETZAL_*",
"OTEL_*"
],
"tasks": {
"build": {
"inputs": [
"$TURBO_DEFAULT$",
".env",
".env.local",
".env.development",
".env.development.local",
".env.production",
".env.production.local"
],
"dependsOn": [
"^build"
],
"outputs": [
".next",
"dist/**",
"lib/**",
"*.js",
"*.d.ts",
"*.d.ts.map"
],
"outputLogs": "new-only"
},
"docker-build": {
"inputs": [
"$TURBO_DEFAULT$",
".env",
".env.local",
".env.development",
".env.development.local",
".env.production",
".env.production.local"
],
"dependsOn": [
"^build"
],
"outputs": [
".next",
"dist/**",
"lib/**",
"*.js",
"*.d.ts",
"*.d.ts.map"
],
"outputLogs": "new-only"
},
"@stackframe/docs#build": {
"dependsOn": [
"@stackframe/stack-backend#build"
]
},
"@stackframe/mcp-server#build": {
"dependsOn": [
"@stackframe/stack-backend#build"
]
},
"@stackframe/stack-backend#build": {
"dependsOn": [
"codegen"
]
},
"@stackframe/stack-backend#codegen": {
"dependsOn": [
"^build"
],
"outputs": [
"../../docs/fern/openapi"
]
},
"clean": {
"cache": false
},
"dev": {
"persistent": true,
"cache": false
},
"start": {
"persistent": true,
"cache": false
},
"lint": {
"dependsOn": []
},
"codegen": {
"cache": false
},
"prisma": {
"cache": false
},
"typecheck": {
"dependsOn": []
},
"generate-openapi": {
"cache": false
},
"generate-keys": {
"cache": false
}
}
}