@stellisoft/stellify-mcp 0.1.33 → 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 +10 -19
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1405,31 +1405,22 @@ const SERVER_INSTRUCTIONS = `Stellify is a coding platform where code is stored
|
|
|
1405
1405
|
|
|
1406
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.
|
|
1407
1407
|
|
|
1408
|
-
##
|
|
1409
|
-
1. Research: Call
|
|
1410
|
-
2.
|
|
1411
|
-
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.
|
|
1412
1412
|
4. Create: create_file, create_method (with body), create_statement_with_code
|
|
1413
|
-
5.
|
|
1414
|
-
6.
|
|
1415
|
-
7.
|
|
1416
|
-
8.
|
|
1417
|
-
|
|
1418
|
-
## Component Response Handling (IMPORTANT)
|
|
1419
|
-
|
|
1420
|
-
When creating Vue/ React etc. components, ALWAYS check the \`appJs\` field in the response:
|
|
1421
|
-
|
|
1422
|
-
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.
|
|
1423
|
-
|
|
1424
|
-
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.
|
|
1425
|
-
|
|
1426
|
-
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
|
|
1427
1418
|
`;
|
|
1428
1419
|
// Legacy detailed instructions preserved as comments for reference if needed
|
|
1429
1420
|
// Create MCP server
|
|
1430
1421
|
const server = new Server({
|
|
1431
1422
|
name: 'stellify-mcp',
|
|
1432
|
-
version: '0.1.
|
|
1423
|
+
version: '0.1.34',
|
|
1433
1424
|
}, {
|
|
1434
1425
|
capabilities: {
|
|
1435
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
|
},
|