baconservices-mcp 0.2.0 → 0.3.0

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,19 +18,21 @@ spending limits.
18
18
 
19
19
  | Tool | Does | Price (2026-10-17) |
20
20
  |---|---|---|
21
- | `remove_background` | Removes the background from one photo; returns a transparent PNG at the photo's size | 0.20 USDC |
21
+ | `remove_background` | Removes the background from one photo; returns a transparent PNG at the photo's size | 0.05 USDC |
22
22
  | `optimize_image` | Resizes so the longest side ≤ `max_width` (64–4096, default 1600) and encodes WebP at `quality` (40–95, default 80) | 0.01 USDC |
23
23
  | `image_palette` | The colours one image is mostly made of, as JSON: up to `count` (1–12, default 6) hex colours with their share, `include_neutrals` (default true) | 0.01 USDC |
24
24
  | `brand_from_url` | Reads one public web page (`url`) and returns its brand as JSON: name, description, logo URLs, colours, fonts, social profiles. No JavaScript runs; robots.txt is respected | 0.03 USDC |
25
+ | `page_metadata` | Reads one public web page (`url`) and returns its SEO and link-preview metadata as JSON: title and description with lengths, canonical, redirects, robots rules, Open Graph and Twitter cards, headings, JSON-LD types, and a list of issues. Nothing it links to is fetched; robots.txt is respected | 0.01 USDC |
26
+ | `accessibility_check` | An automated WCAG check of one public web page (`url`) with axe-core: `standard` (`wcag22aa` default, or `wcag21aa`), `viewport` (`desktop` default, or `mobile`). JSON: failing rules with WCAG criteria, element counts and examples, what needs review, and the criteria a person must test. The page's own scripts don't run. Not a certification of WCAG or ADA conformance | 0.05 USDC |
25
27
  | `vectorize_image` | Traces one image into an SVG of flat-colour paths: `colors` (2–32, default 16), `detail` (`smooth`, `balanced` or `detailed`, default `balanced`). Best for logos and icons | 0.05 USDC |
26
28
 
27
29
  Image tools take PNG, JPEG or WebP up to 8 MB, as `image_url` (public https) or `image_path` (a
28
30
  local file). `remove_background`, `optimize_image` and `vectorize_image` return a signed download
29
- link (valid 24 hours); `image_palette` and `brand_from_url` return their JSON result in the tool result. Add
31
+ link (valid 24 hours); `image_palette`, `brand_from_url`, `page_metadata` and `accessibility_check` return their JSON result in the tool result. Add
30
32
  `save_to` to write either kind to disk. Prices come from Bacon's live catalog, and each paid tool
31
33
  states its current price in its description.
32
34
 
33
- `image_palette`, `brand_from_url` and `vectorize_image` appear once Bacon's catalog publishes
35
+ `image_palette`, `brand_from_url`, `page_metadata`, `accessibility_check` and `vectorize_image` appear once Bacon's catalog publishes
34
36
  them with contract versions. A service the installed package doesn't understand is listed by `list_services` but
35
37
  can't be called until you update the package.
36
38
 
@@ -152,7 +154,7 @@ All of these checks happen before anything is signed:
152
154
  cap is set to your per-call limit as a second lock.
153
155
  - **Funds.** It reads your USDC balance first. If it's too low, or the balance can't be read,
154
156
  you get a plain message and nothing is signed.
155
- - **Your approval, where possible.** If the MCP host supports it, you're asked *"Pay 0.2 USDC on
157
+ - **Your approval, where possible.** If the MCP host supports it, you're asked *"Pay 0.05 USDC on
156
158
  Base to Bacon Services to run remove_background?"* Not every host can ask, so the limits are
157
159
  the real boundary.
158
160
  - **No double payments.** Each purchase signs one payment for one request. If the connection drops,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "baconservices-mcp",
3
- "version": "0.2.0",
4
- "description": "MCP server that lets an AI agent buy Bacon Services tools per call in USDC over x402: remove a background, optimize an image for the web, read an image's colour palette, read a brand from a URL, trace an image into an SVG. With local spending limits.",
3
+ "version": "0.3.0",
4
+ "description": "MCP server that lets an AI agent buy Bacon Services tools per call in USDC over x402: remove a background, optimize an image for the web, read an image's colour palette, read a brand from a URL, read a page's SEO metadata, run an automated WCAG accessibility check, trace an image into an SVG. With local spending limits.",
5
5
  "mcpName": "io.github.afmontoya/baconservices-mcp",
6
6
  "type": "module",
7
7
  "bin": {
package/src/contracts.js CHANGED
@@ -81,6 +81,35 @@ export const CONTRACTS = [
81
81
  output: { kind: 'json', mime: 'application/json' },
82
82
  execution: 'sync',
83
83
  },
84
+ {
85
+ tool: 'page_metadata',
86
+ id: 'page-metadata',
87
+ version: 1,
88
+ inputVersion: 1,
89
+ outputVersion: 1,
90
+ title: 'Page metadata',
91
+ summary: 'Reads one public web page and returns what it tells search engines and link previews, as JSON: title and description with lengths, canonical, redirects, robots rules, Open Graph and Twitter cards, headings, JSON-LD types and a list of SEO issues. No JavaScript runs; robots.txt is respected.',
92
+ input: 'url',
93
+ options: {},
94
+ output: { kind: 'json', mime: 'application/json' },
95
+ execution: 'sync',
96
+ },
97
+ {
98
+ tool: 'accessibility_check',
99
+ id: 'accessibility-check',
100
+ version: 1,
101
+ inputVersion: 1,
102
+ outputVersion: 1,
103
+ title: 'Accessibility check',
104
+ summary: 'An automated WCAG check of one public web page (axe-core), as JSON: each failing rule with its impact, WCAG criteria, element count and examples; what needs review; and the criteria a person must test. Not a certification of WCAG or ADA conformance. Scripts on the page do not run; robots.txt is respected.',
105
+ input: 'url',
106
+ options: {
107
+ standard: { type: 'string', enum: ['wcag22aa', 'wcag21aa'], default: 'wcag22aa', description: 'wcag22aa: WCAG 2.2 A and AA. wcag21aa: WCAG 2.1 A and AA.' },
108
+ viewport: { type: 'string', enum: ['desktop', 'mobile'], default: 'desktop', description: 'desktop: 1280 x 800. mobile: 390 x 844, touch.' },
109
+ },
110
+ output: { kind: 'json', mime: 'application/json' },
111
+ execution: 'sync',
112
+ },
84
113
  {
85
114
  tool: 'vectorize_image',
86
115
  id: 'vectorize',
package/src/server.js CHANGED
@@ -14,7 +14,7 @@ import { formatUsdc } from './money.js';
14
14
  import { Purchaser, Refusal } from './payment.js';
15
15
  import { balanceReader, loadWallet, redact } from './wallet.js';
16
16
 
17
- export const VERSION = '0.2.0';
17
+ export const VERSION = '0.3.0';
18
18
  const CATALOG_TTL_MS = 5 * 60 * 1000;
19
19
 
20
20
  const FREE_TOOLS = [