@grafema/mcp 0.3.29 → 0.3.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,61 +0,0 @@
1
- /**
2
- * MCP Tool Handlers
3
- */
4
- import type { ToolResult, QueryGraphArgs, FindCallsArgs, FindNodesArgs, TraceAliasArgs, TraceDataFlowArgs, CheckInvariantArgs, AnalyzeProjectArgs, GetSchemaArgs, CreateGuaranteeArgs, CheckGuaranteesArgs, DeleteGuaranteeArgs, GetCoverageArgs, GetDocumentationArgs, FindGuardsArgs, GetFunctionDetailsArgs, GetContextArgs, GetFileOverviewArgs, ReportIssueArgs, ReadProjectStructureArgs, WriteConfigArgs } from './types.js';
5
- export declare function handleQueryGraph(args: QueryGraphArgs): Promise<ToolResult>;
6
- export declare function handleFindCalls(args: FindCallsArgs): Promise<ToolResult>;
7
- export declare function handleFindNodes(args: FindNodesArgs): Promise<ToolResult>;
8
- export declare function handleTraceAlias(args: TraceAliasArgs): Promise<ToolResult>;
9
- export declare function handleTraceDataFlow(args: TraceDataFlowArgs): Promise<ToolResult>;
10
- export declare function handleCheckInvariant(args: CheckInvariantArgs): Promise<ToolResult>;
11
- export declare function handleAnalyzeProject(args: AnalyzeProjectArgs): Promise<ToolResult>;
12
- export declare function handleGetAnalysisStatus(): Promise<ToolResult>;
13
- export declare function handleGetStats(): Promise<ToolResult>;
14
- export declare function handleGetSchema(args: GetSchemaArgs): Promise<ToolResult>;
15
- /**
16
- * Create a new guarantee (Datalog-based or contract-based)
17
- */
18
- export declare function handleCreateGuarantee(args: CreateGuaranteeArgs): Promise<ToolResult>;
19
- /**
20
- * List all guarantees (both Datalog-based and contract-based)
21
- */
22
- export declare function handleListGuarantees(): Promise<ToolResult>;
23
- /**
24
- * Check guarantees (both Datalog-based and contract-based)
25
- */
26
- export declare function handleCheckGuarantees(args: CheckGuaranteesArgs): Promise<ToolResult>;
27
- /**
28
- * Delete a guarantee
29
- */
30
- export declare function handleDeleteGuarantee(args: DeleteGuaranteeArgs): Promise<ToolResult>;
31
- export declare function handleGetCoverage(args: GetCoverageArgs): Promise<ToolResult>;
32
- export declare function handleGetDocumentation(args: GetDocumentationArgs): Promise<ToolResult>;
33
- /**
34
- * Find conditional guards protecting a node.
35
- *
36
- * Walks up the containment tree via CONTAINS edges, collecting
37
- * SCOPE nodes that have conditional=true (if_statement, else_statement, etc.).
38
- *
39
- * Returns guards in inner-to-outer order.
40
- */
41
- export declare function handleFindGuards(args: FindGuardsArgs): Promise<ToolResult>;
42
- /**
43
- * Get comprehensive function details including calls made and callers.
44
- *
45
- * Graph structure:
46
- * ```
47
- * FUNCTION -[HAS_SCOPE]-> SCOPE -[CONTAINS]-> CALL/METHOD_CALL
48
- * SCOPE -[CONTAINS]-> SCOPE (nested blocks)
49
- * CALL -[CALLS]-> FUNCTION (target)
50
- * ```
51
- *
52
- * This is the core tool for understanding function behavior.
53
- * Use transitive=true to follow call chains (A -> B -> C).
54
- */
55
- export declare function handleGetFunctionDetails(args: GetFunctionDetailsArgs): Promise<ToolResult>;
56
- export declare function handleGetContext(args: GetContextArgs): Promise<ToolResult>;
57
- export declare function handleReportIssue(args: ReportIssueArgs): Promise<ToolResult>;
58
- export declare function handleReadProjectStructure(args: ReadProjectStructureArgs): Promise<ToolResult>;
59
- export declare function handleWriteConfig(args: WriteConfigArgs): Promise<ToolResult>;
60
- export declare function handleGetFileOverview(args: GetFileOverviewArgs): Promise<ToolResult>;
61
- //# sourceMappingURL=handlers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../src/handlers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAmBH,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,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