@stellisoft/stellify-mcp 0.1.32 → 0.1.34
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/dist/index.js +17 -22
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/index.js
CHANGED
|
@@ -55,10 +55,14 @@ const STELLIFY_FRAMEWORK_API = {
|
|
|
55
55
|
Diff: ['chars', 'words', 'lines', 'apply', 'createPatch', 'distance', 'similarity', 'commonPrefix', 'commonSuffix'],
|
|
56
56
|
// Utilities
|
|
57
57
|
Time: ['now', 'create', 'parse', 'format', 'toISO', 'toDate', 'toTimestamp', 'toUnix', 'add', 'subtract', 'diff', 'isBefore', 'isAfter', 'isSame', 'isBetween', 'startOf', 'endOf', 'year', 'month', 'day', 'weekday', 'hour', 'minute', 'second', 'relative', 'clone'],
|
|
58
|
-
//
|
|
58
|
+
// Vue Composables
|
|
59
59
|
useStellify: ['(generic adapter for any module)'],
|
|
60
|
-
useForm: ['bind'],
|
|
61
|
-
useTable: ['
|
|
60
|
+
useForm: ['bind', 'state', 'set', 'get', 'getData', 'validate', 'isValid', 'getErrors', 'getError', 'reset', 'store', 'update', 'delete'],
|
|
61
|
+
useTable: ['state', 'setData', 'addColumn', 'removeColumn', 'sort', 'filter', 'clearFilter', 'paginate', 'page'],
|
|
62
|
+
useInfiniteScroll: ['items (Collection)', 'loading', 'hasMore', 'error', 'page', 'total', 'loadMore', 'reset', 'refresh', 'sentinelRef'],
|
|
63
|
+
useLiveData: ['data (Collection)', 'loading', 'error', 'connected', 'refresh', 'disconnect', 'reconnect', 'push', 'remove', 'update'],
|
|
64
|
+
useQueryState: ['(reactive refs per param)', 'getAll', 'setAll', 'reset', 'getUrl'],
|
|
65
|
+
useLazyLoad: ['data', 'visible', 'loading', 'loaded', 'error', 'targetRef', 'load', 'reset'],
|
|
62
66
|
};
|
|
63
67
|
const tools = [
|
|
64
68
|
{
|
|
@@ -1401,31 +1405,22 @@ const SERVER_INSTRUCTIONS = `Stellify is a coding platform where code is stored
|
|
|
1401
1405
|
|
|
1402
1406
|
- Files are stored as json. The json has a data key that references its methods (using uuids), and each method has a data key that references statements, and each statement has a data key that references clauses.
|
|
1403
1407
|
|
|
1404
|
-
##
|
|
1405
|
-
1. Research: Call
|
|
1406
|
-
2.
|
|
1407
|
-
3.
|
|
1408
|
+
## Workflow (follow every step)
|
|
1409
|
+
1. Research: Call get_project to understand current structure.
|
|
1410
|
+
2. **If JS/Vue task**: Call \`get_stellify_framework_api\` to check for composables before writing custom code.
|
|
1411
|
+
3. Plan: Map out the solution before calling tools.
|
|
1408
1412
|
4. Create: create_file, create_method (with body), create_statement_with_code
|
|
1409
|
-
5.
|
|
1410
|
-
6.
|
|
1411
|
-
7.
|
|
1412
|
-
8.
|
|
1413
|
-
|
|
1414
|
-
## Component Response Handling (IMPORTANT)
|
|
1415
|
-
|
|
1416
|
-
When creating Vue/ React etc. components, ALWAYS check the \`appJs\` field in the response:
|
|
1417
|
-
|
|
1418
|
-
1. **appJs.action_required === "create_or_select_mount_file"**: No mount file exists. You MUST immediately ask the user: "Would you like me to create an app.js mount file for this component?" Do NOT proceed without user confirmation.
|
|
1419
|
-
|
|
1420
|
-
2. **appJs.action_required === "register_component"**: Mount file exists but component isn't registered. Call save_file on the mount file (appJs.uuid) to add the component UUID to its includes array.
|
|
1421
|
-
|
|
1422
|
-
3. **No action_required**: Component is already registered in a mount file. Proceed normally.
|
|
1413
|
+
5. **Handle mount file**: Check \`appJs\` in create_file response. If \`action_required\` exists, ask user about mount file before proceeding.
|
|
1414
|
+
6. Wire: html_to_elements (pass file UUID to auto-wire @click handlers)
|
|
1415
|
+
7. Finalize: save_file with template/data/statements arrays (include frameworkImports for composables)
|
|
1416
|
+
8. Verify: Call \`get_assembled_code\` to check the output
|
|
1417
|
+
9. Test: Use run_code or broadcast_element_command to verify behavior
|
|
1423
1418
|
`;
|
|
1424
1419
|
// Legacy detailed instructions preserved as comments for reference if needed
|
|
1425
1420
|
// Create MCP server
|
|
1426
1421
|
const server = new Server({
|
|
1427
1422
|
name: 'stellify-mcp',
|
|
1428
|
-
version: '0.1.
|
|
1423
|
+
version: '0.1.34',
|
|
1429
1424
|
}, {
|
|
1430
1425
|
capabilities: {
|
|
1431
1426
|
tools: {},
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/Stellify-Software-Ltd/stellify-mcp",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.34",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@stellisoft/stellify-mcp",
|
|
14
|
-
"version": "0.1.
|
|
14
|
+
"version": "0.1.34",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|