@putervision/agent-reasoning-mcp 0.1.1
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/CONTRIBUTING.md +7 -0
- package/LICENSE +21 -0
- package/PROJECT_INSTRUCTIONS_TEMPLATE.md +9 -0
- package/README.md +95 -0
- package/SECURITY.md +11 -0
- package/dist/chunk-2UKYRERH.js +403 -0
- package/dist/chunk-2UKYRERH.js.map +1 -0
- package/dist/chunk-6CYLIFQX.js +442 -0
- package/dist/chunk-6CYLIFQX.js.map +1 -0
- package/dist/chunk-6EWSPFTX.js +1541 -0
- package/dist/chunk-6EWSPFTX.js.map +1 -0
- package/dist/chunk-F4TEZ2TS.js +615 -0
- package/dist/chunk-F4TEZ2TS.js.map +1 -0
- package/dist/chunk-SOCPGFU4.js +538 -0
- package/dist/chunk-SOCPGFU4.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +169 -0
- package/dist/cli.js.map +1 -0
- package/dist/db-EL7JURVI.js +35 -0
- package/dist/db-EL7JURVI.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +100 -0
- package/dist/index.js.map +1 -0
- package/dist/init-JCBP646U.js +15 -0
- package/dist/init-JCBP646U.js.map +1 -0
- package/dist/lib.d.ts +1003 -0
- package/dist/lib.js +237 -0
- package/dist/lib.js.map +1 -0
- package/glama.json +42 -0
- package/manifest.json +26 -0
- package/package.json +119 -0
- package/server.json +42 -0
package/dist/lib.js
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DecisionTraceEngine,
|
|
3
|
+
EvaluatorEngine,
|
|
4
|
+
ReplannerEngine,
|
|
5
|
+
RiskEngine,
|
|
6
|
+
SnapshotEngine,
|
|
7
|
+
StateBridge,
|
|
8
|
+
UtilityEngine,
|
|
9
|
+
VisionBridge,
|
|
10
|
+
WorldBridge,
|
|
11
|
+
server
|
|
12
|
+
} from "./chunk-6EWSPFTX.js";
|
|
13
|
+
import {
|
|
14
|
+
BeliefEngine,
|
|
15
|
+
GoalEngine,
|
|
16
|
+
IntentionEngine
|
|
17
|
+
} from "./chunk-SOCPGFU4.js";
|
|
18
|
+
import {
|
|
19
|
+
KnowledgeEngine,
|
|
20
|
+
UtilityProfileEngine,
|
|
21
|
+
computeEventHash,
|
|
22
|
+
generateId,
|
|
23
|
+
getCurrentIsoString,
|
|
24
|
+
getElapsedTimeMs,
|
|
25
|
+
logReasoningEvent,
|
|
26
|
+
parseIsoString,
|
|
27
|
+
verifyEventChain
|
|
28
|
+
} from "./chunk-6CYLIFQX.js";
|
|
29
|
+
import {
|
|
30
|
+
ConflictError,
|
|
31
|
+
DatabaseError,
|
|
32
|
+
LOG_LEVELS,
|
|
33
|
+
NotFoundError,
|
|
34
|
+
ReasoningError,
|
|
35
|
+
ValidationError,
|
|
36
|
+
closeAllDbs,
|
|
37
|
+
closeDb,
|
|
38
|
+
getBaseDir,
|
|
39
|
+
getDb,
|
|
40
|
+
getDbPath,
|
|
41
|
+
getLogLevel,
|
|
42
|
+
getProjectDbDir,
|
|
43
|
+
getProjectSlug,
|
|
44
|
+
getReadOnlyDb,
|
|
45
|
+
getRegistry,
|
|
46
|
+
getRegistryPath,
|
|
47
|
+
logger,
|
|
48
|
+
registerProject,
|
|
49
|
+
resolveProjectRoot,
|
|
50
|
+
sanitizeSlug,
|
|
51
|
+
unregisterProject,
|
|
52
|
+
validatePath
|
|
53
|
+
} from "./chunk-F4TEZ2TS.js";
|
|
54
|
+
|
|
55
|
+
// src/schema/schemas.ts
|
|
56
|
+
import { z } from "zod";
|
|
57
|
+
var SetGoalSchema = z.object({
|
|
58
|
+
action: z.enum(["create", "update", "decompose", "get", "list", "abandon"]),
|
|
59
|
+
id: z.string().optional(),
|
|
60
|
+
parent_id: z.string().optional(),
|
|
61
|
+
title: z.string().optional(),
|
|
62
|
+
description: z.string().optional(),
|
|
63
|
+
status: z.enum(["active", "completed", "failed", "abandoned", "suspended"]).optional(),
|
|
64
|
+
priority: z.number().min(0).max(1).optional(),
|
|
65
|
+
utility_weights: z.record(z.number()).optional(),
|
|
66
|
+
deadline_at: z.string().optional(),
|
|
67
|
+
progress: z.number().min(0).max(1).optional(),
|
|
68
|
+
success_criteria: z.array(z.string()).optional(),
|
|
69
|
+
subgoals: z.array(
|
|
70
|
+
z.object({
|
|
71
|
+
title: z.string(),
|
|
72
|
+
description: z.string().optional(),
|
|
73
|
+
priority: z.number().optional()
|
|
74
|
+
})
|
|
75
|
+
).optional(),
|
|
76
|
+
client_request_id: z.string().optional(),
|
|
77
|
+
project: z.string().optional(),
|
|
78
|
+
limit: z.number().optional()
|
|
79
|
+
});
|
|
80
|
+
var EvaluateSituationSchema = z.object({
|
|
81
|
+
action: z.enum(["snapshot", "quick"]),
|
|
82
|
+
snapshot: z.object({
|
|
83
|
+
session_id: z.string(),
|
|
84
|
+
timestamp: z.string().optional(),
|
|
85
|
+
world: z.any().optional(),
|
|
86
|
+
vision: z.any().optional(),
|
|
87
|
+
state: z.any().optional(),
|
|
88
|
+
vitals: z.any().optional()
|
|
89
|
+
}).optional(),
|
|
90
|
+
quick_context: z.string().optional(),
|
|
91
|
+
candidate_actions: z.array(
|
|
92
|
+
z.object({
|
|
93
|
+
action: z.string(),
|
|
94
|
+
parameters: z.record(z.any()).optional(),
|
|
95
|
+
description: z.string().optional()
|
|
96
|
+
})
|
|
97
|
+
).optional(),
|
|
98
|
+
utility_profile: z.string().optional(),
|
|
99
|
+
project: z.string().optional()
|
|
100
|
+
});
|
|
101
|
+
var ReplanSchema = z.object({
|
|
102
|
+
action: z.enum(["blocker", "event", "full"]),
|
|
103
|
+
goal_id: z.string(),
|
|
104
|
+
blocker_description: z.string().optional(),
|
|
105
|
+
trigger_event: z.string().optional(),
|
|
106
|
+
preserve_completed: z.boolean().optional(),
|
|
107
|
+
project: z.string().optional()
|
|
108
|
+
});
|
|
109
|
+
var AssessRiskSchema = z.object({
|
|
110
|
+
action: z.enum(["action", "plan", "compare"]),
|
|
111
|
+
candidate_action: z.string().optional(),
|
|
112
|
+
parameters: z.record(z.any()).optional(),
|
|
113
|
+
candidate_actions: z.array(
|
|
114
|
+
z.object({
|
|
115
|
+
action: z.string(),
|
|
116
|
+
parameters: z.record(z.any()).optional()
|
|
117
|
+
})
|
|
118
|
+
).optional(),
|
|
119
|
+
situation_context: z.any().optional(),
|
|
120
|
+
project: z.string().optional()
|
|
121
|
+
});
|
|
122
|
+
var QueryKnowledgeSchema = z.object({
|
|
123
|
+
action: z.enum(["search", "patterns", "similar_situations"]),
|
|
124
|
+
query: z.string().optional(),
|
|
125
|
+
pattern_type: z.enum(["heuristic", "anti_pattern", "optimization", "contingency"]).optional(),
|
|
126
|
+
context_tags: z.array(z.string()).optional(),
|
|
127
|
+
limit: z.number().optional(),
|
|
128
|
+
project: z.string().optional()
|
|
129
|
+
});
|
|
130
|
+
var SetUtilityWeightsSchema = z.object({
|
|
131
|
+
action: z.enum(["configure", "get", "list", "activate"]),
|
|
132
|
+
name: z.string().optional(),
|
|
133
|
+
description: z.string().optional(),
|
|
134
|
+
weights: z.record(z.number()).optional(),
|
|
135
|
+
is_active: z.boolean().optional(),
|
|
136
|
+
project: z.string().optional()
|
|
137
|
+
});
|
|
138
|
+
var GetDecisionTraceSchema = z.object({
|
|
139
|
+
action: z.enum(["latest", "get", "list", "explain"]),
|
|
140
|
+
trace_id: z.string().optional(),
|
|
141
|
+
goal_id: z.string().optional(),
|
|
142
|
+
limit: z.number().optional(),
|
|
143
|
+
project: z.string().optional()
|
|
144
|
+
});
|
|
145
|
+
var ManageBeliefsSchema = z.object({
|
|
146
|
+
action: z.enum(["update", "query", "expire", "reconcile"]),
|
|
147
|
+
category: z.enum(["spatial", "entity", "state", "rule", "social"]).optional(),
|
|
148
|
+
subject: z.string().optional(),
|
|
149
|
+
predicate: z.string().optional(),
|
|
150
|
+
object: z.any().optional(),
|
|
151
|
+
confidence: z.number().min(0).max(1).optional(),
|
|
152
|
+
source: z.enum(["observation", "deduction", "agent_communication", "a_priori"]).optional(),
|
|
153
|
+
expires_at: z.string().optional(),
|
|
154
|
+
decay_rate: z.number().optional(),
|
|
155
|
+
belief_id: z.string().optional(),
|
|
156
|
+
client_request_id: z.string().optional(),
|
|
157
|
+
project: z.string().optional()
|
|
158
|
+
});
|
|
159
|
+
var ManageIntentionsSchema = z.object({
|
|
160
|
+
action: z.enum(["create", "dispatch", "get", "list", "cancel", "resolve"]),
|
|
161
|
+
intention_id: z.string().optional(),
|
|
162
|
+
goal_id: z.string().optional(),
|
|
163
|
+
trace_id: z.string().optional(),
|
|
164
|
+
behavior_name: z.string().optional(),
|
|
165
|
+
parameters: z.record(z.any()).optional(),
|
|
166
|
+
priority: z.number().optional(),
|
|
167
|
+
deadline_at: z.string().optional(),
|
|
168
|
+
abort_conditions: z.array(z.any()).optional(),
|
|
169
|
+
result: z.record(z.any()).optional(),
|
|
170
|
+
status: z.enum(["pending", "dispatched", "running", "completed", "failed", "aborted", "interrupted"]).optional(),
|
|
171
|
+
client_request_id: z.string().optional(),
|
|
172
|
+
project: z.string().optional()
|
|
173
|
+
});
|
|
174
|
+
var ManageReasoningDbSchema = z.object({
|
|
175
|
+
action: z.enum(["backup", "stats", "audit", "snapshot", "diff", "restore"]),
|
|
176
|
+
name: z.string().optional(),
|
|
177
|
+
description: z.string().optional(),
|
|
178
|
+
project: z.string().optional()
|
|
179
|
+
});
|
|
180
|
+
export {
|
|
181
|
+
AssessRiskSchema,
|
|
182
|
+
BeliefEngine,
|
|
183
|
+
ConflictError,
|
|
184
|
+
DatabaseError,
|
|
185
|
+
DecisionTraceEngine,
|
|
186
|
+
EvaluateSituationSchema,
|
|
187
|
+
EvaluatorEngine,
|
|
188
|
+
GetDecisionTraceSchema,
|
|
189
|
+
GoalEngine,
|
|
190
|
+
IntentionEngine,
|
|
191
|
+
KnowledgeEngine,
|
|
192
|
+
LOG_LEVELS,
|
|
193
|
+
ManageBeliefsSchema,
|
|
194
|
+
ManageIntentionsSchema,
|
|
195
|
+
ManageReasoningDbSchema,
|
|
196
|
+
NotFoundError,
|
|
197
|
+
QueryKnowledgeSchema,
|
|
198
|
+
ReasoningError,
|
|
199
|
+
ReplanSchema,
|
|
200
|
+
ReplannerEngine,
|
|
201
|
+
RiskEngine,
|
|
202
|
+
SetGoalSchema,
|
|
203
|
+
SetUtilityWeightsSchema,
|
|
204
|
+
SnapshotEngine,
|
|
205
|
+
StateBridge,
|
|
206
|
+
UtilityEngine,
|
|
207
|
+
UtilityProfileEngine,
|
|
208
|
+
ValidationError,
|
|
209
|
+
VisionBridge,
|
|
210
|
+
WorldBridge,
|
|
211
|
+
closeAllDbs,
|
|
212
|
+
closeDb,
|
|
213
|
+
computeEventHash,
|
|
214
|
+
generateId,
|
|
215
|
+
getBaseDir,
|
|
216
|
+
getCurrentIsoString,
|
|
217
|
+
getDb,
|
|
218
|
+
getDbPath,
|
|
219
|
+
getElapsedTimeMs,
|
|
220
|
+
getLogLevel,
|
|
221
|
+
getProjectDbDir,
|
|
222
|
+
getProjectSlug,
|
|
223
|
+
getReadOnlyDb,
|
|
224
|
+
getRegistry,
|
|
225
|
+
getRegistryPath,
|
|
226
|
+
logReasoningEvent,
|
|
227
|
+
logger,
|
|
228
|
+
parseIsoString,
|
|
229
|
+
registerProject,
|
|
230
|
+
resolveProjectRoot,
|
|
231
|
+
sanitizeSlug,
|
|
232
|
+
server,
|
|
233
|
+
unregisterProject,
|
|
234
|
+
validatePath,
|
|
235
|
+
verifyEventChain
|
|
236
|
+
};
|
|
237
|
+
//# sourceMappingURL=lib.js.map
|
package/dist/lib.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema/schemas.ts"],"sourcesContent":["import { z } from 'zod';\n\nexport const SetGoalSchema = z.object({\n action: z.enum(['create', 'update', 'decompose', 'get', 'list', 'abandon']),\n id: z.string().optional(),\n parent_id: z.string().optional(),\n title: z.string().optional(),\n description: z.string().optional(),\n status: z.enum(['active', 'completed', 'failed', 'abandoned', 'suspended']).optional(),\n priority: z.number().min(0).max(1).optional(),\n utility_weights: z.record(z.number()).optional(),\n deadline_at: z.string().optional(),\n progress: z.number().min(0).max(1).optional(),\n success_criteria: z.array(z.string()).optional(),\n subgoals: z\n .array(\n z.object({\n title: z.string(),\n description: z.string().optional(),\n priority: z.number().optional(),\n })\n )\n .optional(),\n client_request_id: z.string().optional(),\n project: z.string().optional(),\n limit: z.number().optional(),\n});\n\nexport const EvaluateSituationSchema = z.object({\n action: z.enum(['snapshot', 'quick']),\n snapshot: z\n .object({\n session_id: z.string(),\n timestamp: z.string().optional(),\n world: z.any().optional(),\n vision: z.any().optional(),\n state: z.any().optional(),\n vitals: z.any().optional(),\n })\n .optional(),\n quick_context: z.string().optional(),\n candidate_actions: z\n .array(\n z.object({\n action: z.string(),\n parameters: z.record(z.any()).optional(),\n description: z.string().optional(),\n })\n )\n .optional(),\n utility_profile: z.string().optional(),\n project: z.string().optional(),\n});\n\nexport const ReplanSchema = z.object({\n action: z.enum(['blocker', 'event', 'full']),\n goal_id: z.string(),\n blocker_description: z.string().optional(),\n trigger_event: z.string().optional(),\n preserve_completed: z.boolean().optional(),\n project: z.string().optional(),\n});\n\nexport const AssessRiskSchema = z.object({\n action: z.enum(['action', 'plan', 'compare']),\n candidate_action: z.string().optional(),\n parameters: z.record(z.any()).optional(),\n candidate_actions: z\n .array(\n z.object({\n action: z.string(),\n parameters: z.record(z.any()).optional(),\n })\n )\n .optional(),\n situation_context: z.any().optional(),\n project: z.string().optional(),\n});\n\nexport const QueryKnowledgeSchema = z.object({\n action: z.enum(['search', 'patterns', 'similar_situations']),\n query: z.string().optional(),\n pattern_type: z.enum(['heuristic', 'anti_pattern', 'optimization', 'contingency']).optional(),\n context_tags: z.array(z.string()).optional(),\n limit: z.number().optional(),\n project: z.string().optional(),\n});\n\nexport const SetUtilityWeightsSchema = z.object({\n action: z.enum(['configure', 'get', 'list', 'activate']),\n name: z.string().optional(),\n description: z.string().optional(),\n weights: z.record(z.number()).optional(),\n is_active: z.boolean().optional(),\n project: z.string().optional(),\n});\n\nexport const GetDecisionTraceSchema = z.object({\n action: z.enum(['latest', 'get', 'list', 'explain']),\n trace_id: z.string().optional(),\n goal_id: z.string().optional(),\n limit: z.number().optional(),\n project: z.string().optional(),\n});\n\nexport const ManageBeliefsSchema = z.object({\n action: z.enum(['update', 'query', 'expire', 'reconcile']),\n category: z.enum(['spatial', 'entity', 'state', 'rule', 'social']).optional(),\n subject: z.string().optional(),\n predicate: z.string().optional(),\n object: z.any().optional(),\n confidence: z.number().min(0).max(1).optional(),\n source: z.enum(['observation', 'deduction', 'agent_communication', 'a_priori']).optional(),\n expires_at: z.string().optional(),\n decay_rate: z.number().optional(),\n belief_id: z.string().optional(),\n client_request_id: z.string().optional(),\n project: z.string().optional(),\n});\n\nexport const ManageIntentionsSchema = z.object({\n action: z.enum(['create', 'dispatch', 'get', 'list', 'cancel', 'resolve']),\n intention_id: z.string().optional(),\n goal_id: z.string().optional(),\n trace_id: z.string().optional(),\n behavior_name: z.string().optional(),\n parameters: z.record(z.any()).optional(),\n priority: z.number().optional(),\n deadline_at: z.string().optional(),\n abort_conditions: z.array(z.any()).optional(),\n result: z.record(z.any()).optional(),\n status: z\n .enum(['pending', 'dispatched', 'running', 'completed', 'failed', 'aborted', 'interrupted'])\n .optional(),\n client_request_id: z.string().optional(),\n project: z.string().optional(),\n});\n\nexport const ManageReasoningDbSchema = z.object({\n action: z.enum(['backup', 'stats', 'audit', 'snapshot', 'diff', 'restore']),\n name: z.string().optional(),\n description: z.string().optional(),\n project: z.string().optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,SAAS;AAEX,IAAM,gBAAgB,EAAE,OAAO;AAAA,EACpC,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,aAAa,OAAO,QAAQ,SAAS,CAAC;AAAA,EAC1E,IAAI,EAAE,OAAO,EAAE,S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BAA0B,EAAE,OAAO;AAAA,EAC9C,QAAQ,EAAE,KAAK,CAAC,UAAU,SAAS,SAAS,YAAY,QAAQ,SAAS,CAAC;AAAA,EAC1E,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA,EAC1B,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,SAAS,EAAE,OAAO,EAAE,SAAS;AAC/B,CAAC;","names":[]}
|
package/glama.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://glama.ai/mcp/schemas/server.json",
|
|
3
|
+
"name": "agent-reasoning-mcp",
|
|
4
|
+
"title": "Agent Reasoning MCP",
|
|
5
|
+
"description": "Strategic BDI reasoning engine for autonomous AI agents \u2014 goals, utility, and replanning.",
|
|
6
|
+
"maintainers": [
|
|
7
|
+
"putervision"
|
|
8
|
+
],
|
|
9
|
+
"author": "PuterVision",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"homepage": "https://putervision.com",
|
|
12
|
+
"repository": "https://github.com/putervision/agent-reasoning-mcp",
|
|
13
|
+
"categories": [
|
|
14
|
+
"developer-tools",
|
|
15
|
+
"ai-agents",
|
|
16
|
+
"reasoning",
|
|
17
|
+
"cognitive-architecture"
|
|
18
|
+
],
|
|
19
|
+
"tags": [
|
|
20
|
+
"mcp",
|
|
21
|
+
"model-context-protocol",
|
|
22
|
+
"reasoning",
|
|
23
|
+
"bdi-agent",
|
|
24
|
+
"goal-planning",
|
|
25
|
+
"utility-theory",
|
|
26
|
+
"ai-agents",
|
|
27
|
+
"sqlite",
|
|
28
|
+
"cursor",
|
|
29
|
+
"claude-code"
|
|
30
|
+
],
|
|
31
|
+
"keywords": [
|
|
32
|
+
"reasoning",
|
|
33
|
+
"bdi-agent",
|
|
34
|
+
"goal-decomposition",
|
|
35
|
+
"utility-scoring",
|
|
36
|
+
"risk-assessment",
|
|
37
|
+
"replanning",
|
|
38
|
+
"putervision",
|
|
39
|
+
"ai-agents",
|
|
40
|
+
"mcp"
|
|
41
|
+
]
|
|
42
|
+
}
|
package/manifest.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": "0.2",
|
|
3
|
+
"name": "@putervision/agent-reasoning-mcp",
|
|
4
|
+
"version": "0.1.1",
|
|
5
|
+
"description": "Strategic BDI reasoning engine for autonomous AI agents \u2014 goals, utility, and replanning.",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "PuterVision"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/putervision/agent-reasoning-mcp#readme",
|
|
10
|
+
"server": {
|
|
11
|
+
"type": "node",
|
|
12
|
+
"entry_point": "./dist/index.js",
|
|
13
|
+
"mcp_config": {
|
|
14
|
+
"command": "node",
|
|
15
|
+
"args": [
|
|
16
|
+
"${__dirname}/./dist/index.js"
|
|
17
|
+
],
|
|
18
|
+
"env": {}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/putervision/agent-reasoning-mcp.git"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@putervision/agent-reasoning-mcp",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Strategic BDI reasoning engine for autonomous AI agents \u2014 goal decomposition, utility scoring, risk evaluation, and reactive replanning over PuterVision memory and world models.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"mcp",
|
|
7
|
+
"mcp-server",
|
|
8
|
+
"model-context-protocol",
|
|
9
|
+
"model-context-protocol-server",
|
|
10
|
+
"reasoning",
|
|
11
|
+
"bdi-agent",
|
|
12
|
+
"goal-planning",
|
|
13
|
+
"utility-theory",
|
|
14
|
+
"decision-trees",
|
|
15
|
+
"belief-revision",
|
|
16
|
+
"risk-assessment",
|
|
17
|
+
"replanning",
|
|
18
|
+
"cognitive-architecture",
|
|
19
|
+
"putervision",
|
|
20
|
+
"ai-agents",
|
|
21
|
+
"ai-assistant",
|
|
22
|
+
"cursor",
|
|
23
|
+
"cursor-rules",
|
|
24
|
+
"claude-code",
|
|
25
|
+
"windsurf",
|
|
26
|
+
"sqlite",
|
|
27
|
+
"developer-tools"
|
|
28
|
+
],
|
|
29
|
+
"homepage": "https://github.com/putervision/agent-reasoning-mcp#readme",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/putervision/agent-reasoning-mcp/issues"
|
|
32
|
+
},
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/putervision/agent-reasoning-mcp.git"
|
|
36
|
+
},
|
|
37
|
+
"mcpName": "io.github.putervision/agent-reasoning-mcp",
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"author": "PuterVision",
|
|
43
|
+
"type": "module",
|
|
44
|
+
"main": "./dist/index.js",
|
|
45
|
+
"types": "./dist/index.d.ts",
|
|
46
|
+
"exports": {
|
|
47
|
+
".": {
|
|
48
|
+
"types": "./dist/index.d.ts",
|
|
49
|
+
"import": "./dist/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./lib": {
|
|
52
|
+
"types": "./dist/lib.d.ts",
|
|
53
|
+
"import": "./dist/lib.js"
|
|
54
|
+
},
|
|
55
|
+
"./cli": {
|
|
56
|
+
"types": "./dist/cli.d.ts",
|
|
57
|
+
"import": "./dist/cli.js"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"bin": {
|
|
61
|
+
"agent-reasoning-mcp": "./dist/cli.js"
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"dist",
|
|
65
|
+
"README.md",
|
|
66
|
+
"LICENSE",
|
|
67
|
+
"CONTRIBUTING.md",
|
|
68
|
+
"SECURITY.md",
|
|
69
|
+
"server.json",
|
|
70
|
+
"manifest.json",
|
|
71
|
+
"glama.json",
|
|
72
|
+
"PROJECT_INSTRUCTIONS_TEMPLATE.md"
|
|
73
|
+
],
|
|
74
|
+
"scripts": {
|
|
75
|
+
"build": "tsup",
|
|
76
|
+
"ci": "npm run format:check && npm run lint && npm run typecheck && npm run test && npm run build",
|
|
77
|
+
"cli": "node dist/cli.js",
|
|
78
|
+
"dev": "tsup --watch --onSuccess \"node dist/index.js\"",
|
|
79
|
+
"format": "prettier --write src/**/*.ts tests/**/*.ts",
|
|
80
|
+
"format:check": "prettier --check src/**/*.ts tests/**/*.ts",
|
|
81
|
+
"lint": "eslint src/**/*.ts",
|
|
82
|
+
"prepublishOnly": "npm run build",
|
|
83
|
+
"release": "npm publish",
|
|
84
|
+
"start": "node dist/index.js",
|
|
85
|
+
"test": "vitest run",
|
|
86
|
+
"test:coverage": "vitest run --coverage",
|
|
87
|
+
"test:unit": "vitest run tests/unit",
|
|
88
|
+
"test:integration": "vitest run tests/integration",
|
|
89
|
+
"test:matrix": "bash scripts/test-matrix.sh",
|
|
90
|
+
"test:watch": "vitest",
|
|
91
|
+
"typecheck": "tsc --noEmit"
|
|
92
|
+
},
|
|
93
|
+
"dependencies": {
|
|
94
|
+
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
95
|
+
"better-sqlite3": "^11.0.0",
|
|
96
|
+
"zod": "^3.23.8"
|
|
97
|
+
},
|
|
98
|
+
"devDependencies": {
|
|
99
|
+
"@eslint/js": "^9.39.4",
|
|
100
|
+
"@types/better-sqlite3": "^7.6.10",
|
|
101
|
+
"@types/node": "^20.12.0",
|
|
102
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
103
|
+
"eslint": "^10.8.0",
|
|
104
|
+
"prettier": "^3.9.6",
|
|
105
|
+
"tsup": "^8.1.0",
|
|
106
|
+
"typescript": "^5.5.2",
|
|
107
|
+
"typescript-eslint": "^8.63.0",
|
|
108
|
+
"vitest": "^4.1.10"
|
|
109
|
+
},
|
|
110
|
+
"overrides": {
|
|
111
|
+
"@hono/node-server": "^2.0.5",
|
|
112
|
+
"esbuild": "^0.28.1",
|
|
113
|
+
"nanoid": "^3.3.18",
|
|
114
|
+
"vite": "^6.0.0"
|
|
115
|
+
},
|
|
116
|
+
"engines": {
|
|
117
|
+
"node": ">=18.18.0"
|
|
118
|
+
}
|
|
119
|
+
}
|
package/server.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "io.github.putervision/agent-reasoning-mcp",
|
|
4
|
+
"version": "0.1.1",
|
|
5
|
+
"title": "Strategic Agent Reasoning MCP",
|
|
6
|
+
"description": "Strategic BDI mind for autonomous AI agents — goal DAGs, situational evaluation, risk assessment, and explainable decision traces.",
|
|
7
|
+
"publisher": "PuterVision",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"websiteUrl": "https://reasoningmcp.com",
|
|
10
|
+
"status": "active",
|
|
11
|
+
"icons": [
|
|
12
|
+
{
|
|
13
|
+
"src": "https://putervision.github.io/agent-reasoning-mcp/reasoning-icon.png",
|
|
14
|
+
"sizes": [
|
|
15
|
+
"512x512"
|
|
16
|
+
],
|
|
17
|
+
"mimeType": "image/png"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/putervision/agent-reasoning-mcp",
|
|
23
|
+
"source": "github"
|
|
24
|
+
},
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/putervision/agent-reasoning-mcp/issues"
|
|
27
|
+
},
|
|
28
|
+
"packages": [
|
|
29
|
+
{
|
|
30
|
+
"registryType": "npm",
|
|
31
|
+
"identifier": "@putervision/agent-reasoning-mcp",
|
|
32
|
+
"version": "0.1.1",
|
|
33
|
+
"transport": {
|
|
34
|
+
"type": "stdio"
|
|
35
|
+
},
|
|
36
|
+
"executable": "agent-reasoning-mcp",
|
|
37
|
+
"args": [
|
|
38
|
+
"run"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|