@closedloop-ai/mcp-client 1.3.0 → 1.4.0
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/index.js +38 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -165,6 +165,34 @@ const tools = [
|
|
|
165
165
|
},
|
|
166
166
|
required: ['query']
|
|
167
167
|
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: 'get_planning_context',
|
|
171
|
+
description: 'Get customer evidence for a feature or task before planning/implementing. Returns semantically matched patterns ranked by business impact, deal blockers, churn risks, affected CRM deals, and individual signals with full context. Call this before writing any implementation plan.',
|
|
172
|
+
inputSchema: {
|
|
173
|
+
type: 'object',
|
|
174
|
+
properties: {
|
|
175
|
+
query: {
|
|
176
|
+
type: 'string',
|
|
177
|
+
description: 'Task or feature description to find relevant customer evidence for'
|
|
178
|
+
},
|
|
179
|
+
limit_patterns: {
|
|
180
|
+
type: 'integer',
|
|
181
|
+
minimum: 1,
|
|
182
|
+
maximum: 20,
|
|
183
|
+
default: 5,
|
|
184
|
+
description: 'Max patterns to return (default 5)'
|
|
185
|
+
},
|
|
186
|
+
limit_insights: {
|
|
187
|
+
type: 'integer',
|
|
188
|
+
minimum: 1,
|
|
189
|
+
maximum: 20,
|
|
190
|
+
default: 10,
|
|
191
|
+
description: 'Max individual insights to return (default 10)'
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
required: ['query']
|
|
195
|
+
}
|
|
168
196
|
}
|
|
169
197
|
];
|
|
170
198
|
|
|
@@ -220,6 +248,16 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
220
248
|
});
|
|
221
249
|
break;
|
|
222
250
|
|
|
251
|
+
case 'get_planning_context':
|
|
252
|
+
if (!args.query) {
|
|
253
|
+
throw new Error('query is required');
|
|
254
|
+
}
|
|
255
|
+
response = await axios.get(`${CLOSEDLOOP_SERVER_URL}/planning-context`, {
|
|
256
|
+
headers,
|
|
257
|
+
params: args
|
|
258
|
+
});
|
|
259
|
+
break;
|
|
260
|
+
|
|
223
261
|
default:
|
|
224
262
|
throw new Error(`Unknown tool: ${name}`);
|
|
225
263
|
}
|