uiplug-mcp 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -331,8 +331,10 @@ ${c.code_component}
331
331
  // ── create_component ────────────────────────────────────────────────────────
332
332
  if (name === "create_component") {
333
333
  const { name: compName, description, framework, category, code, installation, tags, model, } = (args ?? {});
334
+ const { createHash: createHash2 } = await import("crypto");
335
+ const keyHashForCreate = createHash2("sha256").update(process.env.UIPLUG_API_KEY ?? "").digest("hex");
334
336
  const { data: componentId, error } = await supabase.rpc("create_component", {
335
- p_user_id: userId,
337
+ p_key_hash: keyHashForCreate,
336
338
  p_name: compName,
337
339
  p_description: description,
338
340
  p_framework: framework,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uiplug-mcp",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "MCP server for UIPlug — gives AI agents access to the UIPlug UI component marketplace",
5
5
  "type": "module",
6
6
  "bin": {