miromiro-mcp 0.4.0 → 0.4.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/README.md CHANGED
@@ -18,7 +18,7 @@ claude plugin install miromiro@claude-community
18
18
  ```
19
19
 
20
20
  The plugin uses the remote server, so there is nothing to install and no key to paste - on
21
- first use it opens a one-click MiroMiro sign-in that links a free account (100 credits/month,
21
+ first use it opens a one-click MiroMiro sign-in that links a free account (300 credits/month,
22
22
  no card).
23
23
 
24
24
  ## Quick start: remote server (nothing to install)
@@ -29,7 +29,7 @@ A hosted server lives at:
29
29
  https://miromiro.app/mcp
30
30
  ```
31
31
 
32
- Paste that URL into any client that accepts a remote MCP server. On first use it opens a one-click MiroMiro sign-in that links a free account (100 credits/month, no card).
32
+ Paste that URL into any client that accepts a remote MCP server. On first use it opens a one-click MiroMiro sign-in that links a free account (300 credits/month, no card).
33
33
 
34
34
  - **Claude (web or desktop):** Settings → Connectors → Add custom connector → paste the URL. Or use the [one-click install](https://miromiro.app/api/mcp).
35
35
  - **ChatGPT:** Settings → Security and login → enable Developer mode, then add the URL as a connector (authentication: OAuth).
@@ -90,7 +90,7 @@ The REST API and this local npm server always return everything untrimmed, so `l
90
90
  `render: true`, plus two more shared arguments:
91
91
 
92
92
  - `fresh: true` - skip the 24-hour cache and re-extract the live page (charged normally); use when the site just changed
93
- - `screenshot: true` (requires `render: true`) - the result gains a `screenshot` field: a public URL of a 1440x900 capture of the page, live for 7 days, at no extra credits - show it to the user to verify an extraction
93
+ - `screenshot: true` (requires `render: true`) - the result gains a `screenshot` field: a public URL of a 1440x900 capture of the page, live for 7 days, at no extra credits - show it to the user to verify an extraction. Pass `'full'` instead of `true` for the entire page height.
94
94
 
95
95
  ## Examples
96
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miromiro-mcp",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "MCP server for the MiroMiro design-extraction API — give your coding agent the real code, design tokens, assets, SVGs, fonts, and Lottie of any website.",
5
5
  "mcpName": "app.miromiro/miromiro",
6
6
  "type": "module",
package/src/index.mjs CHANGED
@@ -50,8 +50,8 @@ const FRESH_ARG = {
50
50
 
51
51
  // Shared input arg: a screenshot URL alongside the data (requires render=true).
52
52
  const SCREENSHOT_ARG = {
53
- type: 'boolean',
54
- description: 'Requires render=true. Adds a screenshot field to the result: a public URL of a 1440x900 capture of the page (live 7 days), taken by the same browser that rendered it. No extra credits beyond the render surcharge. Useful for showing the user what the extracted site looks like.'
53
+ type: ['boolean', 'string'],
54
+ description: "Requires render=true. Adds a screenshot field to the result: a public URL of a capture of the page (live 7 days), taken by the same browser that rendered it. Pass true for the 1440x900 viewport or 'full' for the entire page height. No extra credits beyond the render surcharge. Useful for showing the user what the extracted site looks like."
55
55
  }
56
56
 
57
57
  const TOOLS = [
@@ -67,7 +67,7 @@ const TOOLS = [
67
67
  url: { type: 'string', description: 'The website URL, e.g. stripe.com' },
68
68
  selector: { type: 'string', description: 'CSS selector for the section to extract, e.g. "#hero" or ".pricing-card". Omit to auto-detect the hero.' },
69
69
  framework: { type: 'string', enum: ['tailwind', 'html', 'jsx', 'vue'], description: 'The code to generate (default tailwind).' },
70
- name: { type: 'string', description: 'Component name for the jsx/vue targets (default ExtractedSection).' },
70
+ name: { type: 'string', description: 'Component name for the jsx target (default ExtractedSection). Ignored by tailwind, html and vue. Renaming never re-runs the extraction - it costs 0 credits on a cached section.' },
71
71
  render: RENDER_ARG, fresh: FRESH_ARG, screenshot: SCREENSHOT_ARG
72
72
  },
73
73
  required: ['url']
@@ -204,7 +204,7 @@ async function callApi(endpoint, args) {
204
204
  }
205
205
 
206
206
  const server = new Server(
207
- { name: 'miromiro', version: '0.4.0' },
207
+ { name: 'miromiro', version: '0.4.1' },
208
208
  { capabilities: { tools: {} } }
209
209
  )
210
210