viewgate-mcp 1.0.50 → 1.0.51

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -250,6 +250,7 @@ function createMcpServer(apiKey, personalKey) {
250
250
  properties: {
251
251
  id: { type: "string", description: "Internal UI component id." },
252
252
  code: { type: "string", description: "Generated component code used for iframe preview." },
253
+ cssContent: { type: "string", description: "Generated CSS styles for the component." },
253
254
  props: { type: "object", description: "Props object used for iframe preview." }
254
255
  },
255
256
  required: ["id", "code"]
@@ -474,7 +475,11 @@ function createMcpServer(apiKey, personalKey) {
474
475
  'x-mcp-tool-name': toolName,
475
476
  ...(personalKey ? { 'x-personal-key': personalKey } : {})
476
477
  },
477
- body: JSON.stringify({ code: args.code, props: args.props })
478
+ body: JSON.stringify({
479
+ code: args.code,
480
+ cssContent: args.cssContent,
481
+ props: args.props
482
+ })
478
483
  });
479
484
  if (!response.ok) {
480
485
  const errorBody = await response.text();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewgate-mcp",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "viewgate-mcp": "./dist/index.js"