acn-preflight-mcp
This server provides deterministic preflight checks for AI agents before they invest effort in external tasks, exposing three tools via MCP.
bounty_reality_check: Checks current public GitHub evidence for a bounty or issue before contributing; takes an issue URL.
repo_contribution_readiness: Assesses repository readiness for a specific type of contribution (e.g., docs) before starting work; takes a repo URL and optional change type.
payment_preflight: Runs technical payment preflight before a payment attempt; takes a chain and address, plus optional amount and token contract.
All tools return JSON output and honor fail-closed behavior, with paid capabilities returning HTTP 402 until access is configured.
Provides preflight checks for public GitHub issues and repositories, including bounty reality checks and contribution-readiness assessment.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@acn-preflight-mcp Is this issue a real bounty? https://github.com/owner/repo/issues/123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ACN Preflight
Deterministic preflight checks for AI agents before they spend time, money, or execution effort on external work.
ACN Preflight is the public integration layer for the hosted Abacore Preflight Engine. It exposes the same decision surfaces through Python, CLI, and Model Context Protocol (MCP), while keeping payment configuration, wallet material, deployment controls, and private operational evidence outside the public repository.
Evaluate Abacore in five minutes
If you are evaluating Abacore for agent infrastructure, machine-to-machine integrations, or production AI execution, start with the 5-minute technical evaluator guide.
It walks through the live public contract, reproducible verification, fail-closed behavior, credential boundaries, CI and security controls, and release discipline using evidence you can inspect yourself. The public checks require no account, token, payment, or private access.
Related MCP server: verdix
Live proof
The hosted engine publishes machine-readable discovery and trust surfaces that can be inspected without registration or payment.
Public surface | Purpose |
Minimal public availability check | |
Human-friendly interactive API reference | |
Machine-readable HTTP capability contract | |
Agent-readable capability guidance | |
Agent and provider identity | |
Published MCP tools | |
Payment metadata and exposure state | |
External probe evidence and readiness state |
Reproduce the public verification locally:
python scripts/verify_live_contract.pyThe verifier also checks the fail-closed invariant: if x402 reports SAFETY_HOLD, paid resources must not be published. See Trust and Verification for the verification model and its boundaries.
What it checks
Capability | Question answered | Public entry point |
Bounty reality check | Is a public GitHub issue or bounty still worth pursuing based on current evidence? | bounty_reality_check |
Repository contribution readiness | Is a repository ready for a specific type of contribution before an agent starts work? | repo_contribution_readiness |
Payment preflight | Is a Base payment surface technically ready before a payment attempt? | payment_preflight |
The hosted service returns machine-readable JSON. Paid capabilities return HTTP 402 with the hosted order payload until valid hosted access is configured.
Why this exists
Autonomous and semi-autonomous agents can waste significant effort when they act before validating the target environment. ACN Preflight moves that validation into a small, deterministic gate that can be called before contribution, payment, or other external execution.
The public client is intentionally thin:
no LLM is used in the client answer path;
no wallet or payment-recipient material is stored here;
no private ACN operational history is published here;
hosted responses are returned without hidden client-side reinterpretation;
the same capability contract is available to humans, scripts, and agents.
Quick start
Python 3.10 or newer is required.
Until the package is published on PyPI, install from the canonical GitHub repository:
pip install "git+https://github.com/Abacore-net/acn-preflight"Verify the installation:
acn-preflight --version
acn-preflight --helpRun a public bounty check:
acn-preflight bounty https://github.com/owner/repo/issues/123Check repository readiness:
acn-preflight repo https://github.com/python/cpython --change-type docsInspect the hosted x402 manifest:
acn-preflight x402Python
from acn_preflight import ACNPreflightClient
client = ACNPreflightClient()
response = client.bounty_reality_check(
"https://github.com/owner/repo/issues/123"
)
print(response.status_code)
print(response.body)For hosted paid access, configure the token as an environment variable rather than placing it in source code, command history, or an MCP tool argument:
export ACN_PREFLIGHT_ACCESS_TOKEN="your-hosted-access-token"The client also supports:
ACN_PREFLIGHT_BASE_URL for controlled endpoint overrides;
ACN_PREFLIGHT_ACCESS_TOKEN for hosted access;
an explicit timeout in Python or with CLI --timeout.
MCP
Start the stdio MCP server:
uvx --from "git+https://github.com/Abacore-net/acn-preflight" acn-preflight-mcpA generic MCP client configuration is included in examples/mcp_config.json:
{
"mcpServers": {
"acn-preflight": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Abacore-net/acn-preflight",
"acn-preflight-mcp"
]
}
}
}The MCP tools deliberately do not accept access tokens as model-visible parameters. If paid access is required, provide ACN_PREFLIGHT_ACCESS_TOKEN to the MCP process environment.
Public architecture
flowchart LR
A[AI agent or operator] --> B[MCP]
A --> C[CLI]
A --> D[Python client]
B --> E[Public ACN Preflight integration layer]
C --> E
D --> E
E -->|HTTPS and structured JSON| F[Hosted ACN Preflight Engine]
F --> G[Fresh public evidence and technical checks]The repository contains the transport and integration contract. The protected hosted engine remains the execution boundary for commercial logic and private operational state.
See Architecture for the trust boundary and failure model.
Response behavior
The Python client returns an ACNResponse with:
status_code, the HTTP status returned by the hosted service;
body, the hosted JSON object without hidden rewriting;
payment_required, a convenience property for a hosted HTTP 402 payment-required response.
The CLI emits a stable JSON envelope containing http_status and body.
HTTP 402 is treated as a valid commercial response, not as a client exception. Network failures, invalid endpoints, and malformed hosted responses fail explicitly.
Security boundary
This repository intentionally excludes:
payment recipient configuration;
wallet material and signing secrets;
hosted access tokens;
safety-gate state;
backup and deployment configuration;
private evidence and internal ACN repository history.
Secrets should be supplied through the runtime environment. See SECURITY.md before reporting a vulnerability.
Development
python -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev]"
ruff check src tests examples
python -m unittest discover -s tests -v
python -m buildPull requests run linting, unit tests across supported Python versions, package build checks, and CodeQL analysis.
See CONTRIBUTING.md for contribution expectations, SUPPORT.md for support channels, CHANGELOG.md for release notes, and Releasing for the Trusted Publishing release path.
Engineering by Abacore
ACN Preflight is intentionally compact, but the engineering pattern is production-oriented. It demonstrates how Abacore approaches systems where AI agents interact with external infrastructure and money-bearing workflows:
deterministic gates before expensive or irreversible execution;
public REST, Python, CLI, MCP, OpenAPI, Agent Card, llms.txt, and x402 surfaces around one capability contract;
credentials kept at the transport boundary rather than exposed as model-visible tool arguments;
fail-closed payment exposure backed by externally verifiable readiness evidence;
CI, CodeQL, dependency automation, typed packaging, reproducible live-contract checks, and OIDC-based release automation;
a deliberate boundary between inspectable public integration code and protected commercial runtime state.
For teams building agent infrastructure, machine-to-machine services, MCP integrations, automation, or safety-critical execution workflows, Abacore provides engineering and integration work around the same principles.
License
Apache-2.0. See LICENSE.
Available Tools
3 toolsbounty_reality_checkA
Check current public GitHub evidence for a bounty or issue before contributing.
Inputs: issue_url (required). Returns: object
payment_preflightB
Run technical payment preflight before a payment attempt.
Inputs: chain (required), address (required), amount, token_contract. Returns: object
repo_contribution_readinessB
Assess repository contribution readiness before an agent starts work.
Inputs: repo_url (required), change_type. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
payment_preflight is clearly distinct, but repo_contribution_readiness and bounty_reality_check both target pre-contribution GitHub checks and could be confused. The descriptions clarify that one is about repository health and the other about bounty/issue evidence, but the boundary is somewhat subtle.
All names use lowercase snake_case noun phrases that lead with the domain (repo, payment, bounty). They are readable and consistent in style, though they mix suffixes like _readiness, _preflight, and _reality_check rather than following a single verb_noun pattern.
Three tools is minimal but reasonable for a focused preflight server. Each tool covers a distinct preflight scenario and none feels redundant, though the surface is on the small side.
For a preflight-focused server, the three core scenarios (repository, payment, bounty/issue) are covered and give an agent the checks needed before acting. There are minor gaps, such as no generic environment or dependency preflight, but they do not create dead ends.
Maintenance
Related MCP Connectors
Preflight checks for agent repository contributions, bounty work, and Base payments.
Pre-trade token and wallet safety for trading agents. 14 tools, pay per call (x402, USDC on Base).
x402 paid API tools for AI agents on Base: EU/global registries, crypto, wallet & agent trust.
x402 toolkit for AI agents: paid web, AI, and Base chain tools per call in USDC. Free tools too.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to pay per call for live package-safety and GitHub merge-readiness trust signals via the x402 protocol.3MIT
- AlicenseAqualityBmaintenanceEnables AI agents to check an EVM address on Base for risk (safe, caution, danger) before sending funds, with reasons, paid per call via x402 from the user's own wallet.794 npm1MIT
- AlicenseAqualityBmaintenanceEnables AI agents to run a free fail-closed preflight gate on x402 payment challenges and transactions before signing, plus five USDC-paid on-chain truth checks covering arbitrage profitability, token safety, swap routing, quote validation, and trade sizing. Each check returns a verdict with pinned-block evidence and a verifiable receipt.49Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI coding assistants and trading bots to verify smart contracts, test honeypot traps, assess DEX liquidity, and check wallet counterparty risk before deploying or trading capital on Base. It exposes preflight clearance, token audits, KYA reputation, and web-scraping tools with free and paid x402 tiers.7479 npmMIT