@razroo/code-validation-mcp-client 1.0.0 → 1.0.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/dist/index.js +43 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -100,6 +100,38 @@ const TOOLS = [
100
100
  required: ['orgId', 'pathId', 'recipeId', 'stepId'],
101
101
  },
102
102
  },
103
+ {
104
+ name: 'search_with_context',
105
+ description: 'Search for code patterns and automatically get full recipe context including all steps, AI-recommended steps, and execution plan. This is MORE POWERFUL than search_similar_code as it returns complete recipe information in ONE call, reducing API calls from 2-3 to 1.',
106
+ inputSchema: {
107
+ type: 'object',
108
+ properties: {
109
+ code: {
110
+ type: 'string',
111
+ description: 'The code snippet to search for similar patterns',
112
+ },
113
+ framework: {
114
+ type: 'string',
115
+ description: 'Optional: Filter by framework (e.g., "angular", "react", "vue")',
116
+ },
117
+ language: {
118
+ type: 'string',
119
+ description: 'Optional: Filter by language (e.g., "typescript", "javascript", "python")',
120
+ },
121
+ operationType: {
122
+ type: 'string',
123
+ enum: ['add', 'modify', 'delete'],
124
+ description: 'Optional: Filter by operation type',
125
+ },
126
+ limit: {
127
+ type: 'number',
128
+ description: 'Number of recipe matches to return (default: 10, max: 50)',
129
+ default: 10,
130
+ },
131
+ },
132
+ required: ['code'],
133
+ },
134
+ },
103
135
  ];
104
136
  // HTTP client helper
105
137
  async function callAPI(endpoint, body) {
@@ -175,6 +207,17 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
175
207
  ],
176
208
  };
177
209
  }
210
+ case 'search_with_context': {
211
+ const data = await callAPI('/api/v1/mcp/search-with-context', args);
212
+ return {
213
+ content: [
214
+ {
215
+ type: 'text',
216
+ text: JSON.stringify(data, null, 2),
217
+ },
218
+ ],
219
+ };
220
+ }
178
221
  default:
179
222
  throw new Error(`Unknown tool: ${name}`);
180
223
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@razroo/code-validation-mcp-client",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP client bridge for Razroo Code Validation API",
5
5
  "type": "module",
6
6
  "bin": {