MCP server Task402 Agent Evidence Tools
Коммит 12 окт. 2026 г.Предоставляет AI-агентам проверяемые данные из PDF-файлов, публичных веб-страниц, контрактов OpenAPI и данных сети Base с помощью платного набора инструментов.
Также известен как xbckz/task402, task402
- Звёзды
- 0
- Инструменты
- 4
- Загрузки, 30 дней
- —
- Последняя версия
- 0.3.2
- Последний коммит
- 12 окт. 2026 г.
- Лицензия
- MIT
Что такое Task402 Agent Evidence Tools MCP?
Предоставляет AI-агентам проверяемые данные из PDF-файлов, публичных веб-страниц, контрактов OpenAPI и данных сети Base с помощью платного набора инструментов. Он предоставляет 4 инструмента, например generate_pdf, web_evidence, inspect_openapi.
Сводка сгенерирована из README проекта
О Task402 Agent Evidence Tools MCP server
Task402 Agent Evidence Tools позволяет снабжать AI-агентов проверяемыми доказательствами из различных источников данных. Разработчики могут подключить агентов к хостинговому MCP-сервису, включающему 20 инструментов, через Streamable HTTP endpoint. Это обеспечивает совместимость с такими клиентами, как Cursor и VS Code, без необходимости развертывания локального сервера или использования API key для поиска инструментов.
Сервис предоставляет доступ к специализированным возможностям через платную модель с использованием x402 v2 USDC в сети Base. Поиск инструментов бесплатен, однако для работы конкретных инструментов, таких как web_evidence, inspect_openapi и get_chain_balance, требуется подтвержденная оплата. Система спроектирована с упором на безопасность: для каждой транзакции требуется явное одобрение кошелька, а приватные ключи никогда не запрашиваются. После индексации PDF-файла с помощью операции ingest_document агенты могут использовать продвинутые инструменты, такие как search_document, verify_document_citation и compare_pdfs, для проведения глубокого анализа.
Что вы можете с ним делать
- 1Проверка информации из веб-источниковАгент может извлекать подтвержденные данные с публичных HTTPS-страниц для обоснования своих утверждений.
- 2Глубокий анализ PDF-документовПосле индексации документа агент может осуществлять поиск по тексту или проверять конкретные цитаты.
- 3Запросы к данным блокчейнаАгенты могут выполнять операции только для чтения, чтобы проверять балансы или детали транзакций в сети Base.
Взято из README проекта. Каждый вариант использования проверен на соответствие цитате из него.
Как установить Task402 Agent Evidence Tools MCP
Форматы проверены 10 ноя 2026Добавить в CursorДобавить в GooseУстановка Task402 Agent Evidence Tools MCP в Claude Code
$ claude mcp add --transport http task402 https://task402.xyz/mcpУстановка Task402 Agent Evidence Tools MCP в Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"task402": {
"url": "https://task402.xyz/mcp"
}
}
}Установка Task402 Agent Evidence Tools MCP в VS Code
.vscode/mcp.json
{
"servers": {
"task402": {
"type": "http",
"url": "https://task402.xyz/mcp"
}
}
}Установка Task402 Agent Evidence Tools MCP в VS Code CLI
$ code --add-mcp '{"name":"task402","type":"http","url":"https://task402.xyz/mcp"}'Установка Task402 Agent Evidence Tools MCP в Codex
$ codex mcp add task402 --url https://task402.xyz/mcpУстановка Task402 Agent Evidence Tools MCP в Codex config.toml
~/.codex/config.toml
[mcp_servers.task402] url = "https://task402.xyz/mcp"
Установка Task402 Agent Evidence Tools MCP в Gemini CLI
$ gemini mcp add -s user --transport http task402 https://task402.xyz/mcpУстановка Task402 Agent Evidence Tools MCP в Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"task402": {
"url": "https://task402.xyz/mcp",
"type": "http"
}
}
}Инструменты Task402 Agent Evidence Tools MCP 4
Определено из READMEgenerate_pdfweb_evidenceinspect_openapiget_pdf_job
| generate_pdf | — | |
| web_evidence | — | |
| inspect_openapi | — | |
| get_pdf_job | — |
Конфигурация
MCP_ALLOWED_ORIGINSPAYMENTS_MODEPRICE_CHAIN_USDPRICE_DOCUMENT_USDPRICE_OPENAPI_USDPRICE_USDPRICE_WEB_EVIDENCE_USDPUBLIC_BASE_URLX402_ASSETX402_FACILITATOR_URLX402_NETWORKX402_PAY_TO
| Название | Описание | Тип |
|---|---|---|
| MCP_ALLOWED_ORIGINS | — | |
| PAYMENTS_MODE | — | |
| PRICE_CHAIN_USD | — | |
| PRICE_DOCUMENT_USD | — | |
| PRICE_OPENAPI_USD | — | |
| PRICE_USD | — | |
| PRICE_WEB_EVIDENCE_USD | — | |
| PUBLIC_BASE_URL | — | |
| X402_ASSET | — | |
| X402_FACILITATOR_URL | — | |
| X402_NETWORK | — | |
| X402_PAY_TO | — |
Автоматические проверки
Запущено 14 нояб. 2026 г.Полный отчёт →Еще не проверено. Для сервера требуется оценка 80, отсутствие серьезных проблем и достаточно данных для нашей проверки. Как работают проверки · Что исправить, чтобы получить больше баллов
- Связанный и доступный исходный репозиторийxbckz/task402 is public and reachablegithub.com/xbckz/task402 ↗Пройдено
- Пакет указывает этот репозиторий как источникНе проверялось
- Происхождение сборки (аттестация Sigstore)Не проверялось
- Open source лицензия (OSI)MITspdx.org/licenses/MIT.html ↗Пройдено
- Коммит или релиз за последний годLast commit or release 2026-10-12github.com/xbckz/task402 ↗Пройдено
- OpenSSF ScorecardНе проверялось
- Имя пакета не похоже на популярный пакетНе проверялось
- Нет критических предупреждений в пакете или его зависимостяхНе проверялось
- Нет скрытых инструкций для модели4 tool descriptions and the README read; no override phrases, credential paths or hidden charactersПройдено
- Деструктивные инструменты помеченыNo tool named like delete, drop or execПройдено
- Удалённая конечная точка отвечает на рукопожатие MCPEndpoint did not answer initialize: HTTP 530Проблема
README
Открыть на GitHubTask402 Agent Evidence Tools
Give agents bounded evidence from PDFs, public webpages, OpenAPI contracts, and Base chain data. Connect to the hosted 20-tool MCP service at https://task402.xyz/mcp; no local server, API key, or wallet is needed for discovery. Paid calls use x402 v2 USDC on Base. Connecting an MCP host does not automatically give it a payment signer.
Connect your agent
For Cursor, merge examples/cursor.mcp.json into .cursor/mcp.json. For VS Code, merge examples/vscode.mcp.json into .vscode/mcp.json. Other Streamable HTTP clients can use:
{
"mcpServers": {
"task402": { "url": "https://task402.xyz/mcp" }
}
}
Initialize the connection and run tools/list to inspect executable schemas. With Node.js 24 and this repository's dependencies installed, npm run discover performs discovery through the official MCP SDK and prints tool names only. It never calls a paid tool or signs a payment.
Every hosted tool advertises a tool-specific output schema, parameter descriptions, and MCP safety annotations. Agents can therefore plan the result shape and retry behavior from tools/list before approving any x402 payment.
| Tools | Billing at the 12 October 2026 live check |
|---|---|
generate_pdf |
$0.01 per PDF |
web_evidence |
$0.005 per public HTTPS page |
inspect_openapi |
$0.001 per specification |
plan_api_request, diff_openapi |
$0.002 per call |
get_chain_balance, get_chain_transaction, get_erc20_balance |
$0.001 per read |
get_pdf_job |
Included with generation; requires the job capability |
inspect_pdf, get_document_map, search_document, batch_search_document, prepare_document_context, extract_document_fields, read_document, verify_document_citation, compare_pdfs, validate_pdf_text, render_pdf_page_region |
Included after paid PDF indexing; requires document capabilities |
PDF indexing is the separate REST operation POST /v1/documents ($0.01 per PDF); binary upload is not an MCP tool. Generated PDF download is also REST-only. Read /v1/pricing and the payment challenge for current terms before approving payment. Native-text PDF tools do not provide OCR or verify factual truth.
Start with docs/FIRST-PAID-CALL.md for a challenge, signed retry, and result workflow. Use docs/PUBLISHING.md to publish the repository and remote MCP metadata.
Service architecture
This project converts Markdown into paginated PDF files through one shared service used by REST and MCP. The local runner uses Playwright Chromium and SQLite; the Cloudflare Worker adapter uses Browser Run Quick Actions, D1, and R2. The live payment path uses the official x402 SDK facilitator client, verifies before rendering, and settles only after a PDF artifact is stored.
The paid operations are generate_pdf, ingest_document, web_evidence, OpenAPI inspection/planning/diffing, and fixed-method Base chain reads. Retrieval, citation, batch search, bounded context preparation, and explicit-label field matching are included after indexing. Web evidence is public HTTPS HTML/text only, OpenAPI tools accept caller-supplied JSON and local references only, and chain tools never sign or submit transactions. Input HTML is not executed, remote images and other external resources are omitted or blocked, and hyperlinks are preserved in generated PDFs but never fetched during rendering.
Distribution metadata, conversion guidance, and channel-ready copy live in docs/MARKETING.md and docs/LAUNCH-KIT.md; the public MCP directory metadata is in server.json, glama.json, and lhm.plugin.json for LobeHub.
The detailed agent, discovery, operations, deployment, operator-stats, and security guide is docs/AGENT-GUIDE.md.
Use the hosted MCP server
No local process is required. Add the Streamable HTTP endpoint to an MCP-compatible client:
{
"mcpServers": {
"task402": {
"type": "http",
"url": "https://task402.xyz/mcp"
}
}
}
The server is discoverable without payment. Paid operations return an x402 v2 challenge; the client must inspect the network, USDC asset, recipient, amount, resource, and timeout, obtain explicit wallet approval, then retry the same request with the signed payment. Task402 never receives a private key and never signs or submits transactions for the caller. Start with the first paid call, then use examples/agent-flow.ts for a complete injected-signer flow.
What is included
| Capability | Payment | Interface |
|---|---|---|
| Generate a paginated PDF from Markdown | $0.01 | REST, MCP |
| Index one native-text PDF | $0.01 | REST |
| Search, cite, compare, validate, map, read, extract fields, prepare context, and render | Included after indexing | REST, MCP |
| Bounded public-page evidence | $0.005 | REST, MCP |
| OpenAPI inspect, request plan, and diff | $0.001–$0.002 | REST, MCP |
| Read-only Base balance, transaction, and ERC-20 data | $0.001 | REST, MCP |
Prices, limits, schemas, and payment terms are machine-readable at /v1/pricing. The service does not provide OCR, JavaScript page rendering, arbitrary API execution, transaction signing, or visual/legal PDF redlining.
The remote MCP server metadata is version 0.3.2 in server.json. In the 2026-10-12 audit, the official Registry served 0.2.0; publishing the new metadata requires the domain publisher proof key, which is intentionally not stored in this workspace. Recheck the live Registry record before claiming the release is published. Paid REST and MCP challenges include x402 Bazaar discovery metadata, and the production facilitator is https://facilitator.openx402.ai.
Public discovery pages are available at https://task402.xyz/, /docs#first-paid-call, /llms.txt, /demo, /v1/tools, /openapi.json, /v1/pricing, /.well-known/x402.json, /.well-known/mcp/server-card.json, /.well-known/ai-plugin.json, and /sitemap.xml. They give agents and directory crawlers a clear entry point without requiring payment or an operator credential. Registry publication improves discoverability for clients that sync the MCP Registry; it does not create synthetic traffic or guarantee calls.
The public quickstart includes focused workflows for citation verification, PDF revision comparison, and reducing PDF context before model calls. Copy-paste client files are in examples/agent-flow.ts, examples/cursor.mcp.json, and examples/vscode.mcp.json. The TypeScript example obtains unsigned generation and indexing challenges and exposes explicit retry methods for a separately approved wallet payload; it never signs or submits a payment automatically.
When you are ready for one controlled live payment, follow docs/TEST-TRANSACTION.md. It requires an external wallet signer and never asks for a private key.
For a disposable local test wallet, the repository also includes a guarded terminal helper: npm run test:live. It validates the live Base/USDC challenge before signing, requires TASK402_CONFIRM=YES, downloads the PDF, and never prints the payment payload or capability. See the terminal section of the test guide for setup and cleanup.
To reproduce an MCP agent exactly, use npm run test:agent; it performs discovery, receives the structured x402 challenge, signs through the official EVM client, retries with _meta["x402/payment"], checks the job through get_pdf_job, and downloads the result.
Local development
Use Node.js 24 or newer (verified with Node 24.13; local durable state uses node:sqlite). From this directory:
npm ci
Copy-Item .dev.vars.example .dev.vars
npm run setup:browser
npm run dev
The local server binds only to 127.0.0.1:8787 and accepts only the matching loopback/localhost Host authority (plus the configured public authority in live mode). The local web-evidence adapter resolves every hostname before fetching and rejects private, loopback, link-local, and reserved DNS destinations; the hosted Worker relies on its platform egress boundary plus the same URL checks. The example .dev.vars enables an explicit no-payment development bypass, and the bypass exists only in src/local.ts; src/worker.ts rejects it unconditionally. If .dev.vars is absent, the server starts with payments unconfigured and paid generation fails closed. Local jobs and artifacts are durable under .data/ and are ignored by Git.
If Playwright cannot find its pinned Chromium download on your machine, point it to an installed Chromium executable before starting the local process:
$env:BROWSER_EXECUTABLE_PATH = "C:\path\to\chrome.exe"
npm run dev
Generate and download a sample PDF:
$body = @{ title = "Quarterly Report"; markdown = "# Summary`n`n| Metric | Value |`n| --- | ---: |`n| Revenue | 42 |" } | ConvertTo-Json
$job = Invoke-RestMethod -Method Post -Uri http://127.0.0.1:8787/v1/pdf `
-Headers @{ "Idempotency-Key" = "report-2026-q3-0001" } `
-ContentType "application/json" -Body $body
$job | Format-List
Invoke-WebRequest -Uri $job.downloadUrl `
-Headers @{ Authorization = "Bearer $($job.capability)" } `
-OutFile .\report.pdf
The capability is a bearer secret. Keep it in memory, do not log it, and send it only to the returned status/download URLs. Status and download access require Authorization: Bearer <capability> (or X-Job-Capability); a job ID or idempotency key alone does not authorize access.
API and limits
| Route | Purpose |
|---|---|
GET /v1/pricing |
Machine-readable operation, price, payment mode, and size/TTL limits |
GET /.well-known/x402 |
Same discovery document at a well-known path |
GET / and GET /docs |
Public service overview and agent quickstart |
GET /llms.txt and GET /sitemap.xml |
Compact agent-readable metadata and crawler discovery |
POST /v1/pdf |
Generate a PDF; requires Idempotency-Key; live mode uses x402 v2 PAYMENT-SIGNATURE |
GET /v1/jobs/{jobId} |
Read authorized job state |
GET /v1/jobs/{jobId}/download |
Download an authorized completed PDF |
GET /v1/admin/stats |
Password-protected aggregate tool statistics; optional ?hours=24 |
GET /admin |
Mobile-friendly password form for viewing the protected stats endpoint |
POST /mcp |
MCP Streamable HTTP endpoint with PDF, web, OpenAPI, and Base read-only tools |
POST /v1/documents |
Paid raw PDF indexing for deterministic native-text operations |
GET /v1/documents/{documentId} and /map |
Inspect document metadata or read its page map |
POST /v1/documents/{documentId}/search, /batch-search, /context, /fields, /read, /citation, /validate |
Search, build cited context, read selected pages, verify a text quote, or validate stated expectations |
POST /v1/documents/compare |
Compare two separately authorized PDFs by page and normalized native text |
GET /v1/documents/{documentId}/pages/{page}/render |
Render a bounded page crop to PNG |
POST /v1/web/evidence |
Paid public HTTPS page extraction with bounded text, links, source hash, and prompt-injection warning |
POST /v1/openapi/inspect |
Paid OpenAPI operation, parameter, request-body, security, and local-reference inspection |
POST /v1/openapi/request-plan and /v1/openapi/diff |
Paid safe request planning and deterministic API contract comparison; no requests are executed |
POST /v1/chain/balance, /v1/chain/transaction, /v1/chain/erc20-balance |
Paid read-only Base RPC utilities; no signing or fund movement |
The default limits are a 256 KiB request body, 240 KiB normalized Markdown, 160 title characters, 20,000 Markdown lines, 20 MiB PDF output, a 24-hour artifact lifetime, and a 90-second render deadline. The PDF uses A4 layout, repeats table headers, keeps rows together when possible, and includes page numbers. Cleanup runs once an hour in Cloudflare, and on startup and hourly in the local process. Cleanup batches are bounded; expired capabilities stop working immediately, while physical deletion can take additional batches. Uncertain settlements retain their artifacts for operator reconciliation.
Local PDF inspection and retrieval
The deployed Worker exposes the deterministic PDF document operations through an isolated Cloudflare Container parser. The Worker keeps capabilities, D1 metadata, R2 source/index objects, validation, and cleanup; the Container performs native PDF.js extraction and bounded page rendering with outbound Internet disabled. Local development continues to use the same operations directly through the Node.js parser.
Upload a raw PDF with a caller-generated idempotency key and separate high-entropy recovery secret (the recovery secret scopes that key to the caller). Save the returned capability and recovery secret in the caller's secret store; the server never returns the recovery secret. Reuse both keys only to recover the same upload after a lost response. The idempotency key alone cannot disclose an existing document capability.
$recovery = [Convert]::ToHexString([Security.Cryptography.RandomNumberGenerator]::GetBytes(32)).ToLowerInvariant()
$doc = Invoke-RestMethod -Method Post -Uri http://127.0.0.1:8787/v1/documents `
-Headers @{ "Idempotency-Key" = "research-pdf-2026-0001"; "X-Document-Recovery-Key" = $recovery; "X-File-Name" = "research.pdf" } `
-ContentType "application/pdf" -InFile .\research.pdf
$headers = @{ Authorization = "Bearer $($doc.capability)" }
Invoke-RestMethod -Uri $doc.inspectUrl -Headers $headers
Invoke-RestMethod -Method Post -Uri "$($doc.inspectUrl)/search" -Headers $headers `
-ContentType "application/json" -Body '{"query":"revenue","limit":5}'
Invoke-RestMethod -Method Post -Uri "$($doc.inspectUrl)/read" -Headers $headers `
-ContentType "application/json" -Body '{"pages":[1,2]}'
The returned capability is a bearer secret. Keep it private and send it only in the Authorization header to the returned URLs. Binary upload accepts at most 20 MiB and 100 pages. Parsing builds a bounded local index containing metadata, page labels and sizes, bookmarks, native text blocks with normalized bounding boxes, form-field names/types/values, annotation counts, and embedded-attachment filenames/sizes. The index is limited to 8 MiB and 50,000 text blocks. GET .../map?page=1 includes up to 500 positioned blocks for that page; the default map returns compact page summaries. Source PDF bytes and the extracted index are stored durably in .data/document-objects/ and .data/documents.sqlite and removed at expiry; the default retention is 24 hours (DOCUMENT_TTL_SECONDS can extend it to at most seven days).
The MCP endpoint adds inspect_pdf, get_document_map, search_document, batch_search_document, prepare_document_context, extract_document_fields, read_document, verify_document_citation, compare_pdfs, validate_pdf_text, and render_pdf_page_region when the deployed parser Container is configured. MCP does not upload binary content; first use the REST upload and then pass its document ID and capability to the tools.
Search is case-insensitive exact matching after whitespace normalization. Reading is capped at 10 pages and 32,000 output characters. Citation checks establish only that normalized text appears on the stated page and return nearby text blocks and their bounding boxes; they do not establish truth or visual reading order. Comparison reports page-level normalized-text changes and does not inspect image, visual, metadata, or signature differences. Validation checks parser readability, optional page count, and required text only. Page crops use normalized page fractions and are limited to four million raster pixels and 4 MiB of PNG output.
No OCR, table-structure extraction/query, form filling, attachment download, PDF/A conformance test, or cryptographic signature validation is provided. Sparse native text is reported as a warning; scanned pages do not receive invented text. PDF links are retained as text and never fetched. A PDF signature marker is surfaced as metadata only; trust and validity are not checked.
Native PDF parsing and rendering run in the isolated parser Container. The Worker admits one parser task at a time, enforces a 60-second startup/processing deadline, and destroys the Container after each task to reset process and filesystem state. Concurrent uploads or renders receive 503 and should retry shortly with the same recovery/idempotency keys. Upload, page, text, index, output, and instance memory limits also apply; the Container has no outbound Internet access and receives no payment or capability secrets. OCR, visual semantic comparison, PDF/A conformance, and cryptographic signature verification remain unsupported and are reported explicitly by the validation tool.
The idempotency key is scoped to the verified payer in live mode and bound to the normalized input and payment payload. Reusing it with different content or payment returns 409; a duplicate exact payment authorization is rejected using the EVM network/asset/payer/authorization nonce. Payment replay tombstones are retained for at least 30 days after both the artifact expiry and authorization expiry. The same completed request can recover its original capability during the job lifetime without another render or settlement.
REST clients receive x402 v2 terms in a 402 response and a standard PAYMENT-REQUIRED header. MCP clients receive the same PaymentRequired object as an isError: true tool result, and send payment through params._meta["x402/payment"]; a settled tool result includes _meta["x402/payment-response"].
MCP client with a protected wallet
examples/mcp-client.ts demonstrates the official MCP SDK Streamable HTTP client and the x402 MCP transport fields. It takes an ApprovedWallet adapter from the caller and has no private-key field, environment key, or signing implementation. Implement that adapter with a hardware wallet, HSM, KMS, or a separately sandboxed wallet service; have the signer enforce the expected network, USDC asset, recipient, amount ceiling, and nonce policy before it signs. Do not add a long-lived private key to the MCP client or repository.
The example performs an unpaid call to obtain the challenge, asks the injected signer for a payload, retries with _meta["x402/payment"], then returns the job capability for an authenticated download. This is a minimal happy-path example: a production client should persist the idempotency key and exact signed payment payload securely so it can retry the same request, and should retain recovery details returned after an uncertain settlement. The local development bypass does not create or settle chain payments; use a properly configured test wallet and testnet facilitator for an end-to-end x402 transfer.
Вопросы о Task402 Agent Evidence Tools MCP
Как добавить Task402 Agent Evidence Tools MCP в Claude Code?
Выполните claude mcp add --transport http task402 https://task402.xyz/mcp в терминале. Добавьте --scope user, чтобы сервер был доступен во всех проектах.
Как добавить Task402 Agent Evidence Tools MCP в Cursor?
Откройте ~/.cursor/mcp.json и добавьте сервер в mcpServers, используя конфигурацию Cursor из раздела установки выше.
Какие инструменты предоставляет Task402 Agent Evidence Tools MCP?
Он предоставляет 4 инструмента, включая generate_pdf, web_evidence, inspect_openapi, get_pdf_job.
Нужно ли мне предоставлять API key или кошелек для поиска инструментов?
Нет, поиск бесплатен и не требует наличия локального сервера, API key или кошелька.
Как оплачиваются платные инструменты?
Для платных вызовов используется x402 v2 USDC в сети Base, при этом агенты должны предоставлять явное подтверждение транзакции через кошелек.
Предоставляет ли сервис OCR для PDF?
Нет, инструменты для работы с текстовыми PDF не поддерживают OCR и не проверяют фактическую достоверность данных.