@veloxts/mcp 0.6.55 → 0.6.57
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/CHANGELOG.md +20 -0
- package/dist/resources/static-analyzer.js +29 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @veloxts/mcp
|
|
2
2
|
|
|
3
|
+
## 0.6.57
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: add DI support to ecosystem packages and main packages
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @veloxts/cli@0.6.57
|
|
10
|
+
- @veloxts/router@0.6.57
|
|
11
|
+
- @veloxts/validation@0.6.57
|
|
12
|
+
|
|
13
|
+
## 0.6.56
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- fix(create): resolve TypeScript errors in RSC templates
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @veloxts/cli@0.6.56
|
|
20
|
+
- @veloxts/router@0.6.56
|
|
21
|
+
- @veloxts/validation@0.6.56
|
|
22
|
+
|
|
3
23
|
## 0.6.55
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -24,6 +24,19 @@ const METHOD_PREFIXES = {
|
|
|
24
24
|
delete: { method: 'DELETE', type: 'mutation' },
|
|
25
25
|
remove: { method: 'DELETE', type: 'mutation' },
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Infer procedure type from naming convention.
|
|
29
|
+
* Used when we can't analyze the procedure chain (e.g., shorthand properties).
|
|
30
|
+
*/
|
|
31
|
+
function inferTypeFromName(procedureName) {
|
|
32
|
+
const lowerName = procedureName.toLowerCase();
|
|
33
|
+
for (const [prefix, info] of Object.entries(METHOD_PREFIXES)) {
|
|
34
|
+
if (lowerName.startsWith(prefix)) {
|
|
35
|
+
return info.type;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return 'unknown';
|
|
39
|
+
}
|
|
27
40
|
// ============================================================================
|
|
28
41
|
// Main Analysis Functions
|
|
29
42
|
// ============================================================================
|
|
@@ -130,6 +143,7 @@ function tryExtractProcedureCollection(node) {
|
|
|
130
143
|
}
|
|
131
144
|
const procedures = [];
|
|
132
145
|
for (const prop of proceduresArg.properties) {
|
|
146
|
+
// Handle standard property assignment: { getUser: procedure()... }
|
|
133
147
|
if (ts.isPropertyAssignment(prop) && ts.isIdentifier(prop.name)) {
|
|
134
148
|
const procedureName = prop.name.text;
|
|
135
149
|
const procedureInfo = extractProcedureInfo(prop.initializer);
|
|
@@ -138,6 +152,21 @@ function tryExtractProcedureCollection(node) {
|
|
|
138
152
|
...procedureInfo,
|
|
139
153
|
});
|
|
140
154
|
}
|
|
155
|
+
// Handle shorthand property assignment: { getUser } (references external variable)
|
|
156
|
+
else if (ts.isShorthandPropertyAssignment(prop)) {
|
|
157
|
+
const procedureName = prop.name.text;
|
|
158
|
+
// For shorthand, we can't analyze the chain without type resolution
|
|
159
|
+
// Use naming convention to infer type
|
|
160
|
+
const inferredType = inferTypeFromName(procedureName);
|
|
161
|
+
procedures.push({
|
|
162
|
+
name: procedureName,
|
|
163
|
+
type: inferredType,
|
|
164
|
+
hasInput: false, // Unknown without type resolution
|
|
165
|
+
hasOutput: false,
|
|
166
|
+
hasGuard: false,
|
|
167
|
+
hasMiddleware: false,
|
|
168
|
+
});
|
|
169
|
+
}
|
|
141
170
|
}
|
|
142
171
|
return { namespace, procedures };
|
|
143
172
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/mcp",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.57",
|
|
4
4
|
"description": "Model Context Protocol server for VeloxTS - expose project context to AI tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@modelcontextprotocol/sdk": "1.25.1",
|
|
26
26
|
"typescript": "5.9.3",
|
|
27
|
-
"@veloxts/cli": "0.6.
|
|
28
|
-
"@veloxts/
|
|
29
|
-
"@veloxts/
|
|
27
|
+
"@veloxts/cli": "0.6.57",
|
|
28
|
+
"@veloxts/validation": "0.6.57",
|
|
29
|
+
"@veloxts/router": "0.6.57"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"zod": ">=3.25.0"
|