argus-decision-mcp 1.4.0 → 1.4.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/dist/tools/index.js +11 -0
- package/dist/tools/public-tools.js +4 -1
- package/package.json +1 -1
package/dist/tools/index.js
CHANGED
|
@@ -24,6 +24,16 @@ export const PUBLIC_TOOLS = [decide, publicSeal, publicCheckIn, publicSettle, hi
|
|
|
24
24
|
/** The semantic vertical slice is deliberately opt-in until the P5 value gate. */
|
|
25
25
|
export const V3_PILOT_TOOLS = [semanticRecord];
|
|
26
26
|
export const TOOL_MAP = new Map([...TOOLS, ...PUBLIC_TOOLS].map((t) => [t.name, t]));
|
|
27
|
+
/** MCP 2025-11-25 tool icons. Clients that implement the optional icon field
|
|
28
|
+
* show the same closing-loop anchor used by the web app; older clients simply
|
|
29
|
+
* ignore the field. The image is deliberately attached only to resolve — the
|
|
30
|
+
* mark means a return to reality was completed, not generic Argus decoration. */
|
|
31
|
+
const PUBLIC_TOOL_ICONS = {
|
|
32
|
+
argus_resolve: [
|
|
33
|
+
{ src: 'https://argus.voyage/images/voyage/closing-anchor-icon-48.png', mimeType: 'image/png', sizes: ['48x48'] },
|
|
34
|
+
{ src: 'https://argus.voyage/images/voyage/closing-anchor-icon-96.png', mimeType: 'image/png', sizes: ['96x96'] },
|
|
35
|
+
],
|
|
36
|
+
};
|
|
27
37
|
/**
|
|
28
38
|
* The exact tool descriptors returned by tools/list — single source shared by
|
|
29
39
|
* the server and the host-surface guard test. inputSchema runs through
|
|
@@ -43,6 +53,7 @@ export function servedPublicTools() {
|
|
|
43
53
|
inputSchema: publicCopy(toolJsonSchema(t.inputSchema)),
|
|
44
54
|
...(t.outputSchema ? { outputSchema: t.outputSchema } : {}),
|
|
45
55
|
...(t.annotations ? { annotations: t.annotations } : {}),
|
|
56
|
+
...(PUBLIC_TOOL_ICONS[t.name] ? { icons: PUBLIC_TOOL_ICONS[t.name] } : {}),
|
|
46
57
|
};
|
|
47
58
|
});
|
|
48
59
|
}
|
|
@@ -71,7 +71,10 @@ const decideSchema = z.discriminatedUnion('action', [
|
|
|
71
71
|
finding: z.string().min(1).max(800).describe('현재 확인한 사실을 비교 가능한 한 문장으로 적습니다.'),
|
|
72
72
|
numeric_value: z.number().describe('수치 사실의 현재 값을 명시적으로 전달합니다.').optional(),
|
|
73
73
|
changed: z.boolean().describe('문장형 사실이 기준값에서 실질적으로 달라졌는지 표시합니다.').optional(),
|
|
74
|
-
|
|
74
|
+
// default user_stated: the runtime union validates BEFORE the handler-level
|
|
75
|
+
// default can apply, so a required source here made every real update_fact
|
|
76
|
+
// call fail with a baffling INVALID_INPUT (1.4.0 field finding).
|
|
77
|
+
source: z.enum(['url', 'user_stated', 'host_reported']).default('user_stated').describe('현재 사실을 확인한 출처입니다. 생략하면 user_stated입니다.'),
|
|
75
78
|
source_detail: z.string().max(1000).describe('출처 URL 또는 짧은 인용 정보입니다.').optional(),
|
|
76
79
|
apply_to_matching: z.boolean().default(false).describe('같은 사실을 추적하는 다른 결정에도 이 확인 결과를 적용합니다.'),
|
|
77
80
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "argus-decision-mcp",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Argus decision-accountability MCP server — clarify a decision, save a falsifiable prediction, and record what reality did. The model never grades you.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|