trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
26 lines • 1.04 kB
TypeScript
/**
* TrellisVCS MCP Server
*
* @module mcp
*
* Exposes TrellisVcsEngine as an MCP (Model Context Protocol) server,
* enabling any MCP-compatible AI agent to interact with TrellisVCS
* repositories through structured tool calls and resource queries.
*
* Tools provide write/query actions (status, log, milestone, branch, etc.).
* Resources provide read-only context (op stream, file list, garden clusters).
*/
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { HookRegistry } from '../decisions/index.js';
import type { DecisionRecorder } from '../decisions/auto-capture.js';
export declare function createTrellisMcpServer(): McpServer;
/**
* The shared hook registry for this MCP server instance.
* External agent harnesses can register pre/post hooks here.
*/
export declare const hookRegistry: HookRegistry;
/**
* Create a DecisionRecorder that persists to a given repo path.
*/
export declare function createRecorder(repoPath: string): DecisionRecorder;
//# sourceMappingURL=server.d.ts.map