@closedloop-ai/mcp-client 1.3.0 → 1.3.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.
Files changed (2) hide show
  1. package/index.js +38 -0
  2. 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_signals: {
187
+ type: 'integer',
188
+ minimum: 1,
189
+ maximum: 20,
190
+ default: 10,
191
+ description: 'Max individual signals 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closedloop-ai/mcp-client",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "ClosedLoop AI MCP Client for AI assistant integration with advanced search capabilities",
5
5
  "main": "index.js",
6
6
  "bin": {