UNPKG

@phren/cli

Version:

Knowledge layer for AI agents - CLI, MCP server, and data layer

41 lines (40 loc) • 1.37 kB
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { type McpContext } from "./types.js"; import { FINDING_TYPES } from "../shared.js"; export declare function findConflictCandidates(phrenPath: string, project: string, finding: string): string[]; export declare function handleAddFinding(ctx: McpContext, params: { /** Provenance `tool:` for a caller other than an MCP client (the Hook's gitboy route). */ tool?: string; project: string; finding: string | string[]; citation?: { file?: string; line?: number; repo?: string; commit?: string; name?: string; symbol?: string; supersedes?: string; task_item?: string; }; sessionId?: string; findingType?: (typeof FINDING_TYPES)[number]; scope?: string; }): Promise<{ content: { type: "text"; text: string; }[]; }>; export interface TeamStoreSyncResult { store: string; pushed: boolean; error?: string; } /** * Commit and push the team-safe pathspecs of every attached team store. Team * stores are independent repos, so push_changes runs this whatever happens to * the primary store. */ export declare function syncTeamStores(phrenPath: string): Promise<TeamStoreSyncResult[]>; export declare function register(server: McpServer, ctx: McpContext): void;