crispparse-mcp 1.0.8 → 1.0.9

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.
@@ -0,0 +1,27 @@
1
+ name: Publish to MCP Registry
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - "server.json"
8
+ - ".github/workflows/publish-mcp-registry.yml"
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ id-token: write
13
+ contents: read
14
+
15
+ jobs:
16
+ publish:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - name: Install mcp-publisher
21
+ run: |
22
+ curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar -xz mcp-publisher
23
+ sudo mv mcp-publisher /usr/local/bin/
24
+ - name: Publish to Official MCP Registry
25
+ run: |
26
+ mcp-publisher login github-oidc
27
+ mcp-publisher publish
package/README.md CHANGED
@@ -45,7 +45,7 @@ Add the server to your Claude Desktop (`claude_desktop_config.json`) or Cursor M
45
45
  "mcpServers": {
46
46
  "crispparse": {
47
47
  "command": "npx",
48
- "args": ["-y", "crispparse-mcp@1.0.8"]
48
+ "args": ["-y", "crispparse-mcp@1.0.9"]
49
49
  }
50
50
  }
51
51
  }
@@ -82,3 +82,4 @@ MIT — see [LICENSE](./LICENSE).
82
82
 
83
83
  * **Zero-Setup URL Prefix (`GET /r/<url>`):** Prepend `https://api.crispparse.com/r/` to any URL (e.g., `https://api.crispparse.com/r/https://example.com`) for instant LLM-ready Markdown (`text/markdown`), real token-savings headers (`X-CrispParse-Tokens-Saved`), 10/hr keyless preview, or autonomous `x402` Base Mainnet USDC micro-settlement.
84
84
  * **Indirect Prompt-Injection Shield (`security_audit`):** Automatically strips hidden CSS injection vectors (`display:none`, `visibility:hidden`, `opacity:0`, `font-size:0`, `[hidden]`) before Markdown conversion and returns a structured `security_audit` report (`prompt_injection_detected`, `threat_level`, `hidden_vectors_stripped`, `matched_rules`) on every response.
85
+ * **Tier-1 Fast Markdown (`crispparse_extract_fast` / `POST /v1/extract/fast`):** 1-credit (`$0.00165` Base USDC) deterministic Markdown extraction with C2PA provenance and Prompt-Injection Shield (`0` credits charged if JS rendering is required).
package/index.js CHANGED
@@ -9,6 +9,7 @@ import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprot
9
9
  const API_URL = process.env.CRISPPARSE_API_URL || "https://api.crispparse.com/v1/extract";
10
10
  const TRIAL_URL = process.env.CRISPPARSE_TRIAL_URL || API_URL.replace(/\/v1\/extract\/?$/, "/v1/trial/claim");
11
11
  const VERIFY_URL = process.env.CRISPPARSE_VERIFY_URL || API_URL.replace(/\/v1\/extract\/?$/, "/v1/verify");
12
+ const FAST_API_URL = process.env.CRISPPARSE_FAST_API_URL || API_URL.replace(/\/v1\/extract\/?$/, "/v1/extract/fast");
12
13
  const DEFAULT_API_KEY = process.env.CRISPPARSE_API_KEY || "";
13
14
  const DEFAULT_PAYMENT_SIGNATURE = process.env.CRISPPARSE_PAYMENT_SIGNATURE || "";
14
15
  const AUTO_CLAIM_TRIAL = process.env.CRISPPARSE_AUTO_CLAIM_TRIAL !== "false";
@@ -62,7 +63,7 @@ async function claimTrialToken(forceRefresh = false) {
62
63
  }
63
64
 
64
65
  const server = new Server(
65
- { name: "crispparse-mcp-server", version: "1.0.8" },
66
+ { name: "crispparse-mcp-server", version: "1.0.9" },
66
67
  { capabilities: { tools: {} } }
67
68
  );
68
69
 
@@ -95,6 +96,20 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
95
96
  required: ["url"]
96
97
  }
97
98
  },
99
+ {
100
+ name: "crispparse_extract_fast",
101
+ description: "Fast, low-cost Tier-1 static Markdown extraction (1 credit / $0.00165 Base USDC) with C2PA v2.4 provenance and Prompt-Injection Shield. Fails fast with 0 credits charged if the target requires JS rendering.",
102
+ inputSchema: {
103
+ type: "object",
104
+ properties: {
105
+ url: { type: "string", description: "The full http:// or https:// URL to extract." },
106
+ bypass_cache: { type: "boolean", description: "Set true to bypass edge cache and force a fresh live extraction (defaults to false)." },
107
+ api_key: { type: "string", description: "Optional CrispParse Macaroon bearer token (overrides CRISPPARSE_API_KEY)." },
108
+ payment_signature: { type: "string", description: "Optional x402 v2 PAYMENT-SIGNATURE Base USDC proof header (overrides CRISPPARSE_PAYMENT_SIGNATURE)." }
109
+ },
110
+ required: ["url"]
111
+ }
112
+ },
98
113
  {
99
114
  name: "crispparse_claim_trial",
100
115
  description: "Claim or retrieve a cached zero-config CrispParse trial Macaroon token (50 credits, 14-day TTL) for immediate extraction without manual signup.",
@@ -159,7 +174,7 @@ server.setRequestHandler(CallToolRequestSchema, async ({ params }) => {
159
174
  }
160
175
  }
161
176
 
162
- if (params.name !== "crispparse_extract") {
177
+ if (params.name !== "crispparse_extract" && params.name !== "crispparse_extract_fast") {
163
178
  return { isError: true, content: [{ type: "text", text: `Unknown tool: ${params.name}` }] };
164
179
  }
165
180
 
@@ -197,14 +212,20 @@ server.setRequestHandler(CallToolRequestSchema, async ({ params }) => {
197
212
  ...(paymentSignature ? { "PAYMENT-SIGNATURE": paymentSignature } : {})
198
213
  };
199
214
 
200
- const payload = {
201
- url: targetUrl,
202
- mode,
203
- ...(selectors ? { selectors } : {}),
204
- ...(bypassCache ? { bypass_cache: true } : {})
205
- };
215
+ const isFast = params.name === "crispparse_extract_fast";
216
+ const payload = isFast
217
+ ? {
218
+ url: targetUrl,
219
+ ...(bypassCache ? { bypass_cache: true } : {})
220
+ }
221
+ : {
222
+ url: targetUrl,
223
+ mode,
224
+ ...(selectors ? { selectors } : {}),
225
+ ...(bypassCache ? { bypass_cache: true } : {})
226
+ };
206
227
 
207
- const response = await fetch(API_URL, {
228
+ const response = await fetch(isFast ? FAST_API_URL : API_URL, {
208
229
  method: "POST",
209
230
  headers,
210
231
  body: JSON.stringify(payload)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crispparse-mcp",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Local stdio Model Context Protocol (MCP) server for deterministic web extraction (Markdown, JSON, Hybrid, CSS selectors, Tier 2/3 stealth) and C2PA provenance verification via CrispParse.",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/goldmarklabs/crispparse-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "1.0.8",
9
+ "version": "1.0.9",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "crispparse-mcp",
14
- "version": "1.0.8",
14
+ "version": "1.0.9",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },