UNPKG

mcp-server-debug-thinking

Version:

Graph-based MCP server for systematic debugging using Problem-Solution Trees and Hypothesis-Experiment-Learning cycles

33 lines 1.22 kB
/** * グラフ操作用アクションタイプ * MCPツールが受け付ける3つの基本操作 */ export var ActionType; (function (ActionType) { ActionType["CREATE"] = "create"; ActionType["CONNECT"] = "connect"; ActionType["QUERY"] = "query"; })(ActionType || (ActionType = {})); /** * 親子関係から適切なエッジタイプを自動判定 * CREATEアクションでparentId指定時に使用 * @param parentType 親ノードのタイプ * @param childType 子ノードのタイプ * @returns 適切なエッジタイプまたはnull(マッピングなしの場合) */ export function getAutoEdgeType(parentType, childType) { const mapping = { "problem-problem": "decomposes", "problem-hypothesis": "hypothesizes", "hypothesis-experiment": "tests", "experiment-observation": "produces", "observation-learning": "learns", "observation-solution": "solves", "solution-problem": "solves", // テスト用の追加マッピング "hypothesis-hypothesis": "decomposes", "hypothesis-solution": "solves", }; return mapping[`${parentType}-${childType}`] || null; } //# sourceMappingURL=graphActions.js.map