mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-19 13:56:04 +00:00
added additional permissions, implemented mcp authentication
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { App } from "bknd";
|
||||
import type { EventManager } from "core/events";
|
||||
import type { Connection } from "data/connection";
|
||||
import type { EntityManager } from "data/entities";
|
||||
@@ -11,6 +12,10 @@ import type { McpServer } from "bknd/utils";
|
||||
|
||||
type PartialRec<T> = { [P in keyof T]?: PartialRec<T[P]> };
|
||||
|
||||
export type ModuleBuildContextMcpContext = {
|
||||
app: App;
|
||||
ctx: () => ModuleBuildContext;
|
||||
};
|
||||
export type ModuleBuildContext = {
|
||||
connection: Connection;
|
||||
server: Hono<ServerEnv>;
|
||||
@@ -20,7 +25,7 @@ export type ModuleBuildContext = {
|
||||
logger: DebugLogger;
|
||||
flags: (typeof Module)["ctx_flags"];
|
||||
helper: ModuleHelper;
|
||||
mcp: McpServer<{ ctx: () => ModuleBuildContext }>;
|
||||
mcp: McpServer<ModuleBuildContextMcpContext>;
|
||||
};
|
||||
|
||||
export abstract class Module<Schema extends object = object> {
|
||||
|
||||
Reference in New Issue
Block a user