⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix(api): remove trailing '/api' from KANEO_API_URL in routing
Andrejd311f8c333cc
diff --git a/apps/api/src/index.ts b/apps/api/src/index.tsindex 12d7659d9..db9e5c3b7 100644--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@ -480,7 +480,12 @@ export function createApp() {app.route("/",- mcpWellKnownRoutes(process.env.KANEO_API_URL || "http://localhost:1337"),+ mcpWellKnownRoutes(+ (process.env.KANEO_API_URL || "http://localhost:1337").replace(+ /\/api\/?$/,+ "",+ ),+ ),);app.route("/api", api);diff --git a/apps/api/src/mcp/index.ts b/apps/api/src/mcp/index.tsindex a4cacb182..785f34956 100644--- a/apps/api/src/mcp/index.ts+++ b/apps/api/src/mcp/index.ts@@ -12,7 +12,10 @@ import {import { registerMcpTools } from "./tools";const clientUrl = process.env.KANEO_CLIENT_URL || "http://localhost:5173";-const apiUrl = process.env.KANEO_API_URL || "http://localhost:1337";+const apiUrl = (process.env.KANEO_API_URL || "http://localhost:1337").replace(+ /\/api\/?$/,+ "",+);const sessions = new Map<string, WebStandardStreamableHTTPServerTransport>();