@wireweave/mcp-server 1.6.0 → 1.6.1
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 +2 -33
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -107,36 +107,6 @@ var tools = [
|
|
|
107
107
|
"required": []
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
-
{
|
|
111
|
-
name: "wireweave_render_html",
|
|
112
|
-
description: "Render Wireweave DSL to HTML and CSS",
|
|
113
|
-
inputSchema: {
|
|
114
|
-
"type": "object",
|
|
115
|
-
"properties": {
|
|
116
|
-
"source": {
|
|
117
|
-
"type": "string",
|
|
118
|
-
"description": "The Wireweave DSL source code to render"
|
|
119
|
-
},
|
|
120
|
-
"theme": {
|
|
121
|
-
"type": "string",
|
|
122
|
-
"enum": [
|
|
123
|
-
"light",
|
|
124
|
-
"dark"
|
|
125
|
-
],
|
|
126
|
-
"description": "Color theme for rendering",
|
|
127
|
-
"default": "light"
|
|
128
|
-
},
|
|
129
|
-
"fullDocument": {
|
|
130
|
-
"type": "boolean",
|
|
131
|
-
"description": "Return a complete HTML document instead of fragment",
|
|
132
|
-
"default": false
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"required": [
|
|
136
|
-
"source"
|
|
137
|
-
]
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
110
|
{
|
|
141
111
|
name: "wireweave_render_html_code",
|
|
142
112
|
description: "Render Wireweave DSL to HTML code. Returns the HTML content directly. This is an alias for wireweave_render_html with explicit naming.",
|
|
@@ -714,7 +684,6 @@ var toolEndpoints = {
|
|
|
714
684
|
wireweave_guide: { method: "GET", path: "/tools/guide" },
|
|
715
685
|
wireweave_patterns: { method: "GET", path: "/tools/patterns" },
|
|
716
686
|
wireweave_examples: { method: "GET", path: "/tools/examples" },
|
|
717
|
-
wireweave_render_html: { method: "POST", path: "/tools/render/html" },
|
|
718
687
|
wireweave_render_html_code: { method: "POST", path: "/tools/render/html" },
|
|
719
688
|
wireweave_validate_ux: { method: "POST", path: "/tools/validate/ux" },
|
|
720
689
|
wireweave_ux_rules: { method: "GET", path: "/tools/ux-rules" },
|
|
@@ -989,14 +958,14 @@ async function handleRenderHtmlFile(args, apiConfig2) {
|
|
|
989
958
|
};
|
|
990
959
|
}
|
|
991
960
|
try {
|
|
992
|
-
const endpoint = toolEndpoints["
|
|
961
|
+
const endpoint = toolEndpoints["wireweave_render_html_code"];
|
|
993
962
|
if (!endpoint) {
|
|
994
963
|
return {
|
|
995
964
|
content: [
|
|
996
965
|
{
|
|
997
966
|
type: "text",
|
|
998
967
|
text: JSON.stringify(
|
|
999
|
-
{ error: "
|
|
968
|
+
{ error: "wireweave_render_html_code endpoint not found" },
|
|
1000
969
|
null,
|
|
1001
970
|
2
|
|
1002
971
|
)
|