From 621bc365600224e5cbf500a27c13385035146cda Mon Sep 17 00:00:00 2001 From: samanhappy Date: Sat, 30 Aug 2025 16:00:15 +0800 Subject: [PATCH] feat: Add OpenAPI-compatible tool execution endpoints for named APIs (#316) --- src/routes/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/index.ts b/src/routes/index.ts index 7fab1d3..2b18340 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -196,6 +196,8 @@ export const initRoutes = (app: express.Application): void => { // OpenAPI-compatible tool execution endpoints app.get(`${config.basePath}/api/tools/:serverName/:toolName`, executeToolViaOpenAPI); app.post(`${config.basePath}/api/tools/:serverName/:toolName`, executeToolViaOpenAPI); + app.get(`${config.basePath}/api/:name/tools/:serverName/:toolName`, executeToolViaOpenAPI); + app.post(`${config.basePath}/api/:name/tools/:serverName/:toolName`, executeToolViaOpenAPI); app.use(`${config.basePath}/api`, router); };