Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/core",
"version": "5.33.0",
"version": "5.35.0",
"description": "One foundation for multiple applications.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down
5 changes: 5 additions & 0 deletions src/applications/Http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export class Http {
host: Config.get('http.host', '127.0.0.1'),
port: Config.get('http.port', 3000),
routePath: Config.get('rc.http.route', Path.routes(`http.${Path.ext()}`)),
mcpRoutePath: Config.get(
'rc.mcp.route',
Path.routes(`mcp.${Path.ext()}`)
),
kernelPath: Config.get(
'rc.http.kernel',
'@athenna/http/kernels/HttpKernel'
Expand Down Expand Up @@ -117,6 +121,7 @@ export class Http {
await kernel.registerRTracer()
await kernel.registerLoggerTerminator()
await kernel.registerRoutes(options.routePath)
await kernel.registerRoutes(options.mcpRoutePath)

if (Config.is('rc.bootLogs', true)) {
Log.channelOrVanilla('application').success(
Expand Down
7 changes: 7 additions & 0 deletions src/types/HttpOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ export type HttpOptions = {
*/
routePath?: string

/**
* The path to the mcp server routes.
*
* @default Path.routes(`mcp.${Path.ext()}`)
*/
mcpRoutePath?: string

/**
* The path to the HttpKernel. The http kernel is responsible to register controllers,
* all kind of middlewares, plugins and the exception handler for requests. By default,
Expand Down