mcp
This commit is contained in:
2
ai
2
ai
Submodule ai updated: 0d561b1747...a84bc7418c
@@ -1,20 +0,0 @@
|
||||
FROM oven/bun:1.3.10 AS pruner
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
RUN bunx turbo@2.9.14 prune @autumn/chat --docker
|
||||
|
||||
FROM oven/bun:1.3.10
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=pruner /app/out/json/ .
|
||||
RUN mkdir -p scripts && touch scripts/preload-env.ts
|
||||
RUN bun -e 'const fs = require("fs"); const pkg = JSON.parse(fs.readFileSync("package.json", "utf8")); pkg.workspaces.packages = ["shared", "apps/chat", "packages/ksuid", "packages/mcp"]; delete pkg.dependencies; delete pkg.devDependencies; delete pkg.scripts; fs.writeFileSync("package.json", JSON.stringify(pkg, null, 2));'
|
||||
RUN rm bun.lock && bun install --production --ignore-scripts
|
||||
|
||||
COPY --from=pruner /app/out/full/ .
|
||||
|
||||
ENV NODE_ENV=production
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["bun", "-F", "@autumn/chat", "start"]
|
||||
@@ -33,6 +33,8 @@ export function createMcpHttpApp(options: CreateMcpHttpAppOptions) {
|
||||
return c.req.method === "OPTIONS" ? c.body(null, 204) : next();
|
||||
});
|
||||
|
||||
app.get("/health", (c) => c.json({ ok: true }));
|
||||
|
||||
app.get("/.well-known/oauth-protected-resource/mcp", (c) =>
|
||||
c.json(getProtectedResourceMetadata(c.req.raw.headers, options, "/mcp")),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user