@closedloop-ai/mcp-client 1.2.5 → 1.3.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.
Files changed (2) hide show
  1. package/index.js +30 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -32,7 +32,7 @@ const server = new Server(
32
32
  const tools = [
33
33
  {
34
34
  name: 'list_insights',
35
- description: 'Retrieve customer insights with optional filtering and pagination',
35
+ description: 'Retrieve product insights with optional filtering, sorting, and pagination',
36
36
  inputSchema: {
37
37
  type: 'object',
38
38
  properties: {
@@ -42,10 +42,38 @@ const tools = [
42
42
  format: 'date'
43
43
  },
44
44
  date_to: {
45
- type: 'string',
45
+ type: 'string',
46
46
  description: 'End date for insights (YYYY-MM-DD)',
47
47
  format: 'date'
48
48
  },
49
+ severity: {
50
+ type: 'string',
51
+ enum: ['critical', 'high', 'medium', 'low', 'all'],
52
+ description: 'Filter by severity level (default: all)'
53
+ },
54
+ status: {
55
+ type: 'string',
56
+ enum: ['open', 'closed', 'all'],
57
+ description: 'Filter by insight status (default: all)'
58
+ },
59
+ source_id: {
60
+ type: 'string',
61
+ description: 'Filter by integration source UUID'
62
+ },
63
+ tag: {
64
+ type: 'string',
65
+ description: 'Filter by tag (letters, numbers, underscores, hyphens only)'
66
+ },
67
+ sort_by: {
68
+ type: 'string',
69
+ enum: ['timestamp', 'severity', 'status'],
70
+ description: 'Field to sort by (default: timestamp)'
71
+ },
72
+ sort_order: {
73
+ type: 'string',
74
+ enum: ['asc', 'desc'],
75
+ description: 'Sort direction (default: desc)'
76
+ },
49
77
  page: {
50
78
  type: 'integer',
51
79
  description: 'Page number (default: 1)',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closedloop-ai/mcp-client",
3
- "version": "1.2.5",
3
+ "version": "1.3.0",
4
4
  "description": "ClosedLoop AI MCP Client for AI assistant integration with advanced search capabilities",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -14,7 +14,7 @@
14
14
  "start": "node index.js"
15
15
  },
16
16
  "dependencies": {
17
- "@modelcontextprotocol/sdk": "^0.5.0",
17
+ "@modelcontextprotocol/sdk": "^1.26.0",
18
18
  "axios": "^1.6.0"
19
19
  },
20
20
  "engines": {