Skip to content

Commit fc18bb5

Browse files
committed
feat(mcp): register mcp server routes
1 parent 60020e0 commit fc18bb5

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@athenna/core",
3-
"version": "5.34.0",
3+
"version": "5.35.0",
44
"description": "One foundation for multiple applications.",
55
"license": "MIT",
66
"author": "João Lenon <lenon@athenna.io>",

src/applications/Http.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ export class Http {
5050
host: Config.get('http.host', '127.0.0.1'),
5151
port: Config.get('http.port', 3000),
5252
routePath: Config.get('rc.http.route', Path.routes(`http.${Path.ext()}`)),
53-
mcpRoutePath: Config.get('rc.mcp.route', Path.routes(`mcp.${Path.ext()}`)),
53+
mcpRoutePath: Config.get(
54+
'rc.mcp.route',
55+
Path.routes(`mcp.${Path.ext()}`)
56+
),
5457
kernelPath: Config.get(
5558
'rc.http.kernel',
5659
'@athenna/http/kernels/HttpKernel'
@@ -118,7 +121,7 @@ export class Http {
118121
await kernel.registerRTracer()
119122
await kernel.registerLoggerTerminator()
120123
await kernel.registerRoutes(options.routePath)
121-
await kernel.registerMcpRoutes(options.mcpRoutePath)
124+
await kernel.registerRoutes(options.mcpRoutePath)
122125

123126
if (Config.is('rc.bootLogs', true)) {
124127
Log.channelOrVanilla('application').success(

0 commit comments

Comments
 (0)