@wcagc/mcp
Advanced tools
+1
-1
@@ -9,3 +9,3 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; | ||
| // test/version.test.ts fails the build if the two ever drift. | ||
| export const VERSION = "0.2.7"; | ||
| export const VERSION = "0.2.8"; | ||
| /** | ||
@@ -12,0 +12,0 @@ * One server, two transports (hosted Streamable HTTP + local stdio) share this — the tool |
@@ -22,2 +22,11 @@ import { McpApiError } from "./api-client.js"; | ||
| structured.limit = err.limit; | ||
| // "Register the site first" is unactionable on its own — the caller has no way to see what IS | ||
| // registered, or that the host must match exactly (no scheme, no path, no www unless that is | ||
| // how it was added). Point at the tool that answers it. | ||
| if (err.code === "SITE_NOT_FOUND") { | ||
| hint = | ||
| " Call list_sites to see the registered hosts and use one of them verbatim as siteHost" + | ||
| " (host only — no https:// and no trailing path). To scan a URL that is not a registered" + | ||
| " site, omit siteHost entirely and the free path is used instead." + hint; | ||
| } | ||
| // Without this the caller just gets "the key does not grant the required scope" and has no | ||
@@ -24,0 +33,0 @@ // way to learn which one, or that the fix is a differently-scoped key rather than a retry. |
+1
-1
| { | ||
| "name": "@wcagc/mcp", | ||
| "version": "0.2.7", | ||
| "version": "0.2.8", | ||
| "mcpName": "io.github.WCAG-Compliance/mcp", | ||
@@ -5,0 +5,0 @@ "description": "wcagc MCP server \u2014 a thin, stateless adapter that translates MCP tool calls into wcagc-api HTTP calls. No database, no secrets beyond WCAGC_API_BASE_URL (+ WCAGC_MCP_KEY for local stdio mode). Open-source: this package holds no business logic or credentials of its own.", |
46690
1.44%821
1.11%