trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
27 lines • 1.01 kB
TypeScript
/**
* Streamable HTTP MCP gateway for Trellis room graph tools.
*
* @module trellis/server
*/
import type { AuthContext } from './auth.js';
import type { PermissionRegistry } from './permissions.js';
import type { SubscriptionManager } from './realtime.js';
import type { TenantPool } from './tenancy.js';
import type { UsageMeter } from './usage-meter.js';
import type { TrellisDbConfig } from '../client/config.js';
export interface McpGatewayRouteCtx {
pool: TenantPool;
permissions: PermissionRegistry | null;
subs: SubscriptionManager;
meter: UsageMeter;
authConfig: import('./auth.js').AuthConfig;
config: TrellisDbConfig;
}
export declare class RoomMcpGateway {
private gateway;
handle(req: Request, ctx: McpGatewayRouteCtx, auth: AuthContext, tenantId: string | null): Promise<Response>;
close(): Promise<void>;
}
/** Shared gateway instance for the process lifetime. */
export declare const roomMcpGateway: RoomMcpGateway;
//# sourceMappingURL=mcp-gateway.d.ts.map