umtri-mcp 1.3.1 → 1.3.2
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.
- package/core/tools.js +5 -3
- package/package.json +1 -1
package/core/tools.js
CHANGED
|
@@ -857,7 +857,10 @@ export function registerTools(server, { api }) {
|
|
|
857
857
|
slug: z.string().min(1).describe('Ground slug.'),
|
|
858
858
|
source: z.string().min(1).describe('Source node id.'),
|
|
859
859
|
target: z.string().min(1).describe('Target node id.'),
|
|
860
|
-
|
|
860
|
+
// 서버(store.createEdge)가 type을 필수로 요구한다. 예전엔 optional + "Backend defaults"라고
|
|
861
|
+
// 안내해 생략한 에이전트가 매번 한 번씩 거부당했다. 그라운드마다 edge_types가 있어 enum으로
|
|
862
|
+
// 못 박지 않고 필수 문자열로 둔다.
|
|
863
|
+
type: z.string().min(1).describe('Edge type — required. "dependency" (source is built on / needs target) or "data_flow" (data moves source → target) — use one of the ground\'s edgeTypes.'),
|
|
861
864
|
label: z.string().optional(),
|
|
862
865
|
metadata: z.record(z.any()).optional(),
|
|
863
866
|
}),
|
|
@@ -867,8 +870,7 @@ export function registerTools(server, { api }) {
|
|
|
867
870
|
const { ok, rejectReason } = validateEdge({ sourceId: source, targetId: target });
|
|
868
871
|
if (!ok) throw new Error(`Rejected by protocol: ${rejectReason}`);
|
|
869
872
|
|
|
870
|
-
const body = { source, target };
|
|
871
|
-
if (type !== undefined) body.type = type;
|
|
873
|
+
const body = { source, target, type };
|
|
872
874
|
if (label !== undefined) body.label = label;
|
|
873
875
|
if (metadata !== undefined) body.metadata = metadata;
|
|
874
876
|
|
package/package.json
CHANGED