@stellisoft/stellify-mcp 0.1.23 → 0.1.24
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 +27 -24
- package/dist/stellify-client.d.ts +1 -1
- package/dist/stellify-client.js +2 -2
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/index.js
CHANGED
|
@@ -841,12 +841,20 @@ Examples:
|
|
|
841
841
|
inputSchema: {
|
|
842
842
|
type: 'object',
|
|
843
843
|
properties: {
|
|
844
|
+
file: {
|
|
845
|
+
type: 'string',
|
|
846
|
+
description: 'UUID of the file containing the statement',
|
|
847
|
+
},
|
|
848
|
+
method: {
|
|
849
|
+
type: 'string',
|
|
850
|
+
description: 'UUID of the method containing the statement (use "file" for file-level statements)',
|
|
851
|
+
},
|
|
844
852
|
uuid: {
|
|
845
853
|
type: 'string',
|
|
846
854
|
description: 'UUID of the statement to delete',
|
|
847
855
|
},
|
|
848
856
|
},
|
|
849
|
-
required: ['uuid'],
|
|
857
|
+
required: ['file', 'method', 'uuid'],
|
|
850
858
|
},
|
|
851
859
|
},
|
|
852
860
|
{
|
|
@@ -1468,25 +1476,24 @@ Modules are auto-created if they don't exist. This helps users see all code rela
|
|
|
1468
1476
|
**You MUST have a JS entry file to register Vue components for use on pages.**
|
|
1469
1477
|
|
|
1470
1478
|
### First component in a project:
|
|
1471
|
-
1. Create app.js in the 'js' directory:
|
|
1472
|
-
- create_file with type='js', extension='js', name='app'
|
|
1473
|
-
2. Add statements:
|
|
1479
|
+
1. Create app.js in the 'js' directory with the component in includes array:
|
|
1480
|
+
- create_file with type='js', extension='js', name='app', includes=[component-file-uuid]
|
|
1481
|
+
2. Add statements for NAMED imports only:
|
|
1474
1482
|
- "import { createApp } from 'vue';"
|
|
1475
|
-
- "import NotesApp from './NotesApp.vue';"
|
|
1476
1483
|
- "createApp(NotesApp).mount('#app');"
|
|
1477
|
-
|
|
1484
|
+
NOTE: The component import (NotesApp) is handled by the includes array, NOT a statement!
|
|
1485
|
+
3. save_file with statement UUIDs
|
|
1478
1486
|
|
|
1479
1487
|
### Adding more components (app.js already exists):
|
|
1480
1488
|
1. **search_files** for "app" to find existing app.js
|
|
1481
|
-
2. **get_file** to retrieve current statements
|
|
1482
|
-
3. Add
|
|
1483
|
-
- "import Counter from './Counter.vue';"
|
|
1489
|
+
2. **get_file** to retrieve current includes and statements
|
|
1490
|
+
3. Add the new component UUID to the includes array via save_file
|
|
1484
1491
|
4. Update the mount code to register the new component:
|
|
1485
1492
|
- Create new statement: "app.component('Counter', Counter);"
|
|
1486
|
-
|
|
1487
|
-
5. save_file with updated statements array
|
|
1493
|
+
5. save_file with updated includes and statements arrays
|
|
1488
1494
|
|
|
1489
1495
|
**DO NOT create duplicate app.js files or duplicate createApp imports!**
|
|
1496
|
+
**DO NOT use statements for file imports - use the includes array!**
|
|
1490
1497
|
|
|
1491
1498
|
### Page mount point (div#app):
|
|
1492
1499
|
Each page that uses Vue components needs a \`<div id="app"></div>\`.
|
|
@@ -1496,17 +1503,13 @@ Each page that uses Vue components needs a \`<div id="app"></div>\`.
|
|
|
1496
1503
|
|
|
1497
1504
|
**Without app.js AND div#app, Vue components will NOT render!**
|
|
1498
1505
|
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
import NotesApp from './NotesApp.vue';
|
|
1503
|
-
import Counter from './Counter.vue';
|
|
1506
|
+
### Import types summary:
|
|
1507
|
+
- **File imports (components, classes):** Use \`includes\` array with file UUIDs
|
|
1508
|
+
- **Named imports (vue, stellify-framework):** Use statements with add_statement_code
|
|
1504
1509
|
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
app.component('Counter', Counter);
|
|
1508
|
-
app.mount('#app');
|
|
1509
|
-
\`\`\`
|
|
1510
|
+
Example app.js structure:
|
|
1511
|
+
- includes: [notesAppFileUuid, counterFileUuid]
|
|
1512
|
+
- statements: ["import { createApp } from 'vue';", "const app = createApp({});", "app.component('NotesApp', NotesApp);", "app.component('Counter', Counter);", "app.mount('#app');"]
|
|
1510
1513
|
|
|
1511
1514
|
## Efficiency Tips
|
|
1512
1515
|
|
|
@@ -1517,7 +1520,7 @@ app.mount('#app');
|
|
|
1517
1520
|
// Create MCP server
|
|
1518
1521
|
const server = new Server({
|
|
1519
1522
|
name: 'stellify-mcp',
|
|
1520
|
-
version: '0.1.
|
|
1523
|
+
version: '0.1.24',
|
|
1521
1524
|
}, {
|
|
1522
1525
|
capabilities: {
|
|
1523
1526
|
tools: {},
|
|
@@ -1942,8 +1945,8 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1942
1945
|
};
|
|
1943
1946
|
}
|
|
1944
1947
|
case 'delete_statement': {
|
|
1945
|
-
const { uuid } = args;
|
|
1946
|
-
const result = await stellify.deleteStatement(uuid);
|
|
1948
|
+
const { file, method, uuid } = args;
|
|
1949
|
+
const result = await stellify.deleteStatement(file, method, uuid);
|
|
1947
1950
|
return {
|
|
1948
1951
|
content: [
|
|
1949
1952
|
{
|
|
@@ -85,7 +85,7 @@ export declare class StellifyClient {
|
|
|
85
85
|
method?: string;
|
|
86
86
|
}): Promise<any>;
|
|
87
87
|
getStatement(statement: string): Promise<any>;
|
|
88
|
-
deleteStatement(statement: string): Promise<any>;
|
|
88
|
+
deleteStatement(file: string, method: string, statement: string): Promise<any>;
|
|
89
89
|
saveStatement(statement: string, data: any): Promise<any>;
|
|
90
90
|
createRoute(params: CreateRouteParams): Promise<any>;
|
|
91
91
|
getRoute(route: string): Promise<any>;
|
package/dist/stellify-client.js
CHANGED
|
@@ -67,8 +67,8 @@ export class StellifyClient {
|
|
|
67
67
|
const response = await this.client.get(`/statement/${statement}`);
|
|
68
68
|
return response.data;
|
|
69
69
|
}
|
|
70
|
-
async deleteStatement(statement) {
|
|
71
|
-
const response = await this.client.delete(`/statement/${statement}`);
|
|
70
|
+
async deleteStatement(file, method, statement) {
|
|
71
|
+
const response = await this.client.delete(`/statement/${file}/${method}/${statement}`);
|
|
72
72
|
return response.data;
|
|
73
73
|
}
|
|
74
74
|
async saveStatement(statement, data) {
|
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.24",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@stellisoft/stellify-mcp",
|
|
14
|
-
"version": "0.1.
|
|
14
|
+
"version": "0.1.24",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|