trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
27 lines • 1.14 kB
TypeScript
/**
* Trellis Room MCP — graph query/CRUD tools backed by the TurtleDB kernel.
*
* Mounted at POST/GET/DELETE `/mcp` on `trellis db serve` and deployed rooms.
* Tool names align with the trellis-graph skill for agent portability.
*
* @module trellis/mcp
*/
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import type { PermissionRegistry } from '../server/permissions.js';
import type { SubscriptionManager } from '../server/realtime.js';
import type { TenantPool } from '../server/tenancy.js';
import { type UsageMeter } from '../server/usage-meter.js';
import { type McpWriteAuthGate } from './mcp-auth.js';
export interface RoomMcpContext extends McpWriteAuthGate {
pool: TenantPool;
permissions: PermissionRegistry | null;
subs: SubscriptionManager;
meter: UsageMeter | null;
tenantId: string | null;
/** From `X-Trellis-Lane` header when present. */
headerLane?: string | null;
/** From `X-Trellis-Tenant` header when present. */
headerTenant?: string | null;
}
export declare function createRoomMcpServer(ctx: RoomMcpContext): McpServer;
//# sourceMappingURL=room.d.ts.map