@curenorway/kode-mcp 1.5.0 → 1.6.0
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/README.md +6 -0
- package/dist/index.js +20 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -120,6 +120,12 @@ export CURE_KODE_SITE_ID="your-site-uuid"
|
|
|
120
120
|
| `kode_analyze_script` | Analyze script and generate metadata |
|
|
121
121
|
| `kode_get_script_metadata` | Get script metadata and AI summary |
|
|
122
122
|
|
|
123
|
+
### Documentation
|
|
124
|
+
|
|
125
|
+
| Tool | Description |
|
|
126
|
+
|------|-------------|
|
|
127
|
+
| `kode_sync_documentation` | Update .cure-kode/KODE.md with current scripts/pages |
|
|
128
|
+
|
|
123
129
|
### Other
|
|
124
130
|
|
|
125
131
|
| Tool | Description |
|
package/dist/index.js
CHANGED
|
@@ -843,16 +843,26 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
843
843
|
const siteId = getSiteId();
|
|
844
844
|
switch (name) {
|
|
845
845
|
case "kode_list_scripts": {
|
|
846
|
-
const scripts = await
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
846
|
+
const [scripts, allPages] = await Promise.all([
|
|
847
|
+
client.listScripts(siteId),
|
|
848
|
+
client.listPages(siteId)
|
|
849
|
+
]);
|
|
850
|
+
const formatted = scripts.map((s) => {
|
|
851
|
+
const pageAssignments = (s.pages || []).filter((p) => p.is_enabled).map((p) => {
|
|
852
|
+
const page = allPages.find((pg) => pg.id === p.page_id);
|
|
853
|
+
return page ? { slug: page.slug, name: page.name, patterns: page.url_patterns } : null;
|
|
854
|
+
}).filter((p) => p !== null);
|
|
855
|
+
return {
|
|
856
|
+
slug: s.slug,
|
|
857
|
+
name: s.name,
|
|
858
|
+
type: s.type,
|
|
859
|
+
scope: s.scope,
|
|
860
|
+
version: s.current_version,
|
|
861
|
+
active: s.is_active,
|
|
862
|
+
loadOrder: s.load_order,
|
|
863
|
+
...pageAssignments.length > 0 ? { pages: pageAssignments } : {}
|
|
864
|
+
};
|
|
865
|
+
});
|
|
856
866
|
return {
|
|
857
867
|
content: [
|
|
858
868
|
{
|