@markdy/mcp-server 0.8.26 → 0.8.28
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 +22 -0
- package/dist/index.js +12 -11
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -51,6 +51,28 @@ Equip Claude Desktop, Cursor, Google Antigravity, and autonomous AI agents with
|
|
|
51
51
|
}
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
### Google Antigravity (`~/.gemini/antigravity/mcp_config.json`)
|
|
55
|
+
|
|
56
|
+
```json
|
|
57
|
+
{
|
|
58
|
+
"mcpServers": {
|
|
59
|
+
"markdy": {
|
|
60
|
+
"command": "npx",
|
|
61
|
+
"args": ["-y", "@markdy/mcp-server"]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 📖 Documentation & References
|
|
70
|
+
|
|
71
|
+
- **Authoritative AI Agent Guide**: <https://markdy.com/AGENT.md>
|
|
72
|
+
- **Human Documentation**: <https://markdy.com/docs/>
|
|
73
|
+
- **Interactive Playground**: <https://markdy.com/playground/>
|
|
74
|
+
- **LLM Index**: <https://markdy.com/llms.txt>
|
|
75
|
+
|
|
54
76
|
---
|
|
55
77
|
|
|
56
78
|
## License
|
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ function handleValidateMarkdy(code, checkArchitecture = true) {
|
|
|
44
44
|
content: [{ type: "text", text: lines.join("\n") }]
|
|
45
45
|
};
|
|
46
46
|
} catch (error) {
|
|
47
|
-
const
|
|
47
|
+
const repairBundle = analyzeAndBuildRepairPrompt(code);
|
|
48
48
|
return {
|
|
49
49
|
isError: true,
|
|
50
50
|
content: [
|
|
@@ -53,7 +53,7 @@ function handleValidateMarkdy(code, checkArchitecture = true) {
|
|
|
53
53
|
text: `\u274C Parse Error: ${error.message}
|
|
54
54
|
|
|
55
55
|
Suggested AI Healing Prompt:
|
|
56
|
-
${repairPrompt}`
|
|
56
|
+
${repairBundle.repairPrompt}`
|
|
57
57
|
}
|
|
58
58
|
]
|
|
59
59
|
};
|
|
@@ -136,16 +136,17 @@ function handleExplainArchitecture(code) {
|
|
|
136
136
|
}
|
|
137
137
|
function handleGenerateMarkdyPrompt(userGoal) {
|
|
138
138
|
const prompt = [
|
|
139
|
-
`You are an expert system architecture designer specializing in MarkdyScript DSL.`,
|
|
139
|
+
`You are an expert system architecture designer specializing in MarkdyScript 0.8+ syntax and DSL.`,
|
|
140
140
|
`Goal: ${userGoal}`,
|
|
141
141
|
``,
|
|
142
|
-
`### Instructions:`,
|
|
143
|
-
`1.
|
|
144
|
-
`2.
|
|
145
|
-
`3.
|
|
146
|
-
`4.
|
|
147
|
-
`5. Animate flows with
|
|
148
|
-
`6.
|
|
142
|
+
`### Instructions & Authoritative Reference:`,
|
|
143
|
+
`1. Follow the canonical MarkdyScript 0.8+ syntax and specification hosted at: https://markdy.com/AGENT.md`,
|
|
144
|
+
`2. Start the scene with: \`scene "<Title>" theme=paper layout=LR\``,
|
|
145
|
+
`3. Define nodes using semantic types (e.g. \`browser client\`, \`gateway api_gw\`, \`service auth_svc\`, \`database pg_db\`, \`cache redis\`, \`queue kafka\`, \`worker worker\`).`,
|
|
146
|
+
`4. Organize components in \`group <id> "<Label>": <members...>\` boundaries.`,
|
|
147
|
+
`5. Animate flows with canonical operators: \`->\` (request), \`<-\` (response), \`~>\` (event), and \`--\` (dependency).`,
|
|
148
|
+
`6. Group narrative cues into \`beat <id> "<Description>":\` with \`show $nodes\`, \`glow\`, \`focus\`, \`frame\`.`,
|
|
149
|
+
`7. Keep syntax clean, do not invent unsupported directives, and output ONLY valid MarkdyScript.`
|
|
149
150
|
].join("\n");
|
|
150
151
|
return {
|
|
151
152
|
content: [{ type: "text", text: prompt }]
|
|
@@ -157,7 +158,7 @@ function createMarkdyMcpServer() {
|
|
|
157
158
|
const server = new Server(
|
|
158
159
|
{
|
|
159
160
|
name: "markdy-mcp-server",
|
|
160
|
-
version: "0.8.
|
|
161
|
+
version: "0.8.26"
|
|
161
162
|
},
|
|
162
163
|
{
|
|
163
164
|
capabilities: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markdy/mcp-server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.28",
|
|
4
4
|
"description": "Model Context Protocol server for Markdy diagram validation, transpilation, and generation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@modelcontextprotocol/sdk": "^1.6.1",
|
|
19
|
-
"@markdy/
|
|
20
|
-
"@markdy/
|
|
19
|
+
"@markdy/compat": "0.8.28",
|
|
20
|
+
"@markdy/core": "0.8.28"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^25.9.5",
|