SDK + MCP + CLI
The JavaScript AgentGuardian SDK, agc CLI and @agent-chain/mcp-server expose the Agent Chain API. The MCP server currently advertises 120 tools. This reference is generated from the source interfaces.
Install from a source checkout
From the AgentChain repository root, install the local packages below. Package names are @agent-chain/sdk, @agent-chain/cli and @agent-chain/mcp-server; registry publication is separate from source availability.
npm install ./sdk
npm install -g ./cli
npm install --prefix mcp
There is no Python SDK in this repository. The JavaScript package exports CommonJS and supports named ESM imports; it does not ship TypeScript declarations.
SDK quick start
import { AgentGuardian, AgentGuardianError } from '@agent-chain/sdk';
const ac = new AgentGuardian({
apiKey: process.env.AGENT_CHAIN_API_KEY,
baseUrl: process.env.AGENT_CHAIN_BASE_URL || 'https://api.agent-chain.io'
});
const identity = await ac.verify('did:agent:example');
const scan = await ac.scanResponse('Hello world');
const trust = await ac.checkTrust('did:agent:example');
const threat = await ac.checkThreat('did:agent:example');
// Registration is ac.registerAgent({ name: 'my-bot', capabilities: [] }).
apiKey is required. The SDK default baseUrl is https://api.agent-chain.io, with a 10000 ms timeout. cache defaults to true and cacheTtl to 60000 ms. Environment variables are passed explicitly in the example; the SDK constructor does not read them automatically.
All 125 public SDK methods
ac.verify(...)ac.registerAgent(...)ac.listAgents(...)ac.getAgent(...)ac.issueCredential(...)ac.scanResponse(...)ac.getScanHistory(...)ac.getScanStats(...)ac.createScanRule(...)ac.checkTrust(...)ac.attest(...)ac.recordInteraction(...)ac.reportAnomaly(...)ac.checkThreat(...)ac.submitThreatIndicator(...)ac.getIntelSummary(...)ac.listFrameworks(...)ac.getFramework(...)ac.runAudit(...)ac.getAuditHistory(...)ac.getAuditRun(...)ac.submitAuditEvidence(...)ac.createAuditSchedule(...)ac.listAuditSchedules(...)ac.deleteAuditSchedule(...)ac.listPersonas(...)ac.listTTPs(...)ac.deployHoneypot(...)ac.listHoneypots(...)ac.getHoneypot(...)ac.updateHoneypot(...)ac.captureAttack(...)ac.getCaptures(...)ac.listAttackerProfiles(...)ac.getAttackerProfile(...)ac.getShadowStats(...)ac.listFirewallModes(...)ac.createFirewallConfig(...)ac.listFirewallConfigs(...)ac.getFirewallConfig(...)ac.updateFirewallConfig(...)ac.deleteFirewallConfig(...)ac.createFirewallRule(...)ac.listFirewallRules(...)ac.updateFirewallRule(...)ac.deleteFirewallRule(...)ac.evaluateTraffic(...)ac.getFirewallEvents(...)ac.getFirewallEvent(...)ac.listQuarantined(...)ac.reviewQuarantine(...)ac.getFirewallStats(...)ac.listSensors(...)ac.ingestSighting(...)ac.listTrackedAgents(...)ac.getTrackedAgent(...)ac.updateTrackedAgent(...)ac.getTrackedAgentSightings(...)ac.addCorrelation(...)ac.getTrackedAgentCorrelations(...)ac.getTrackerAlerts(...)ac.acknowledgeTrackerAlert(...)ac.getTrackerGraph(...)ac.executeAutoResponse(...)ac.getTrackerStats(...)ac.getChainInfo(...)ac.listBlocks(...)ac.getBlock(...)ac.getTransaction(...)ac.verifyTransaction(...)ac.listNFTs(...)ac.getNFT(...)ac.getNFTByAgent(...)ac.transferNFT(...)ac.updateNFT(...)ac.burnNFT(...)ac.getNFTEvents(...)ac.recordChainEvent(...)ac.getChainHealth(...)ac.verifyChain(...)ac.listWallets(...)ac.getWallet(...)ac.fundWallet(...)ac.makePayment(...)ac.refundPayment(...)ac.openChannel(...)ac.listChannels(...)ac.getChannel(...)ac.channelPayment(...)ac.closeChannel(...)ac.getPaymentHistory(...)ac.getUsageMeters(...)ac.meterApiCall(...)ac.getPaymentStats(...)ac.listTiers(...)ac.getTier(...)ac.applyCustomization(...)ac.listCustomizations(...)ac.getAgentCustomization(...)ac.getCustomization(...)ac.updateCustomization(...)ac.importNFT(...)ac.revokeCustomization(...)ac.getSupportedChains(...)ac.listSupportedWallets(...)ac.getWalletsForChain(...)ac.connectWallet(...)ac.listConnectedWallets(...)ac.disconnectWallet(...)ac.createCryptoPayment(...)ac.listCryptoPayments(...)ac.getCryptoPayment(...)ac.confirmCryptoPayment(...)ac.createStripePayment(...)ac.listStripePayments(...)ac.getStripePayment(...)ac.attachStripeSession(...)ac.confirmStripePayment(...)ac.getTreasury(...)ac.getMarketplaceStats(...)ac.submitReview(...)ac.getListingReviews(...)ac.searchListings(...)ac.fullCheck(...)ac.clearCache(...)
CLI
Set AGENT_CHAIN_API_KEY in your shell and set AGENT_CHAIN_BASE_URL=https://api.agent-chain.io to connect to the public API. The binary is agc; credentials are environment variables, with no config set command.
agc --help
agc verify did:agent:example
agc scan "Hello world"
agc trust did:agent:example
agc full-check did:agent:example
agc chain blocks --help
All 90 CLI commands
agc verify <did>— Verify an AI agent identity by DIDagc register-agent— Register a new AI agentagc list-agents— List your registered agentsagc get-agent <agentId>— Get agent details by IDagc issue-credential <agentId>— Issue a verifiable credential for an agentagc scan <text>— Scan agent output for manipulation, injection, exfiltrationagc scan-history— Get scan historyagc scan-stats— Get scanning statisticsagc create-scan-rule— Create a custom scanning ruleagc trust <did>— Check trust score for an agentagc attest— Submit a peer attestationagc record-interaction— Record an agent interaction outcomeagc report-anomaly— Report an anomaly for an agentagc threat <did>— Check agent against threat intelligence databaseagc submit-indicator— Submit a threat indicatoragc intel-summary— Get global threat intelligence summaryagc full-check <did>— Full agent check — identity + trust + threat in parallelagc audit frameworks— List supported compliance frameworksagc audit framework <id>— Get framework details (EU_AI_ACT, NIST_AI_RMF, ISO_42001, SOC2, OWASP_LLM_TOP10)agc audit run— Run a compliance auditagc audit history— Get audit historyagc audit get <runId>— Get audit run detailsagc audit evidence <runId>— Submit audit evidenceagc audit schedule— Create an audit scheduleagc audit schedules— List audit schedulesagc shadow personas— List available honeypot personasagc shadow ttps— List known TTP patternsagc shadow deploy— Deploy a honeypot agentagc shadow list— List your honeypotsagc shadow get <id>— Get honeypot detailsagc shadow captures <honeypotId>— List attack captures for a honeypotagc shadow attackers— List attacker profilesagc shadow stats— Shadow network statisticsagc firewall modes— List firewall modesagc firewall create— Create a firewall configagc firewall list— List firewall configsagc firewall get <configId>— Get firewall config with rulesagc firewall delete <configId>— Delete a firewall configagc firewall add-rule <configId>— Add a firewall ruleagc firewall rules <configId>— List rules for a configagc firewall evaluate <configId>— Evaluate agent traffic against rulesagc firewall events— List firewall eventsagc firewall quarantine— List quarantined payloadsagc firewall stats— Firewall statisticsagc tracker sensors— List sensor typesagc tracker ingest— Ingest an agent sightingagc tracker list— List tracked agentsagc tracker get <agentId>— Get tracked agent profileagc tracker sightings <agentId>— Get sightings for an agentagc tracker correlate— Link two tracked agentsagc tracker alerts— Get alert feedagc tracker ack <alertId>— Acknowledge an alertagc tracker graph— Get relationship graph dataagc tracker auto-respond <agentId>— Auto-respond to high-risk agentagc tracker stats— Tracker dashboard statsagc chain info— Chain overviewagc chain blocks— List blocksagc chain block <height>— Get block by heightagc chain tx <txId>— Get transactionagc chain verify-tx <txId>— Verify transaction signatureagc chain nfts— List NFTsagc chain nft <id>— Get NFT detailsagc chain transfer-nft <nftId> <toAddress>— Transfer NFTagc chain burn-nft <nftId>— Burn an NFTagc chain health— Chain health checkagc chain verify-chain— Full chain integrity verificationagc payments wallets— List walletsagc payments wallet <id>— Get wallet detailagc payments fund <walletId> <amount>— Fund wallet with creditsagc payments send— Agent-to-agent paymentagc payments refund <paymentId>— Refund a paymentagc payments open-channel— Open a payment channelagc payments channels <agentId>— List channels for agentagc payments channel <id>— Get channel detailagc payments close-channel <channelId>— Close and settle channelagc payments history <agentId>— Transaction historyagc payments meters <agentId>— API usage metersagc payments stats— Payment statisticsagc marketplace tiers— List customization tiersagc marketplace tier <id>— Get tier detailagc marketplace customize— Apply customization to an agentagc marketplace chains— List supported blockchain chainsagc marketplace wallets— List supported wallet connectorsagc marketplace connect— Connect a crypto walletagc marketplace connections— List connected walletsagc marketplace pay-crypto— Create crypto paymentagc marketplace pay-stripe— Create Stripe paymentagc marketplace treasury— Platform treasury addressesagc marketplace stats— Marketplace statisticsagc health— Agent Chain platform health check
MCP configuration
Install dependencies in mcp/, then configure your MCP client with the absolute source path and your API key. The package is @agent-chain/mcp-server. Set AGENT_CHAIN_BASE_URL=https://api.agent-chain.io as shown below.
{
"mcpServers": {
"agent-chain": {
"command": "node",
"args": [
"/absolute/path/to/AgentChain/mcp/src/index.js"
],
"env": {
"AGENT_CHAIN_API_KEY": "ac_live_your_key",
"AGENT_CHAIN_BASE_URL": "https://api.agent-chain.io"
}
}
}
}
Read-only and destructive-action annotations are hints for MCP clients. Server authentication, permissions, payment checks and feature gates still apply. A listed client method or tool does not enable an unavailable backend. Native crypto checkout remains disabled.
All 120 MCP tool names
ac1_verify— Verify an AI agent identity and credentials by DID (mutation)ac1_register_agent— Register a new AI agent with name, description, and capabilities (mutation)ac1_list_agents— List your registered AI agents (read only)ac1_get_agent— Get full agent details including DID document (read only)ac1_issue_credential— Issue a verifiable credential (VC-JWT) for an agent (mutation)ac2_scan_response— Scan an agent response for manipulation, injection, exfiltration, jailbreak (mutation)ac2_scan_history— Get scan history with pagination (read only)ac2_scan_stats— Get scanning statistics (total, safe, flagged, by risk) (read only)ac2_create_scan_rule— Create a custom scanning detection rule (mutation)ac3_check_trust— Check trust score and recommendation for an agent by DID (read only)ac3_attest— Submit a peer attestation (positive/negative/neutral) for an agent (mutation)ac3_record_interaction— Record an agent interaction outcome for trust scoring (mutation)ac3_report_anomaly— Report an anomaly detected for an agent (mutation)ac4_check_threat— Check an agent against threat intelligence database by DID (read only)ac4_submit_indicator— Submit a threat indicator to the intelligence database (mutation)ac4_intel_summary— Get global threat intelligence summary (read only)ag_full_check— Full agent check — verify identity + trust score + threat intel in parallel (mutation)ac6_list_frameworks— List supported compliance frameworks (EU AI Act, NIST, ISO 42001, SOC2, OWASP LLM Top 10) (read only)ac6_get_framework— Get full framework details including all controls (read only)ac6_run_audit— Run a compliance audit against a framework (mutation)ac6_audit_history— Get audit history filtered by framework or agent (read only)ac6_get_audit_run— Get full details for a specific audit run (read only)ac6_submit_evidence— Submit manual evidence for an audit run (mutation)ac6_create_schedule— Create a recurring compliance audit schedule (mutation)ac6_list_schedules— List audit schedules (read only)ac6_delete_schedule— Delete an audit schedule (mutation; destructive hint)ac7_list_personas— List available honeypot personas (read only)ac7_list_ttps— List known TTP (Tactics, Techniques, Procedures) patterns (read only)ac7_deploy_honeypot— Deploy a new honeypot agent to lure and detect malicious agents (mutation)ac7_list_honeypots— List your honeypot deployments (read only)ac7_get_honeypot— Get honeypot details (read only)ac7_update_honeypot— Update honeypot configuration or status (mutation; destructive hint)ac7_capture_attack— Record an attack capture against a honeypot (mutation)ac7_get_captures— List attack captures for a honeypot (read only)ac7_list_attacker_profiles— List attacker profiles from shadow network (read only)ac7_get_attacker_profile— Get detailed attacker profile by fingerprint (read only)ac7_shadow_stats— Get shadow network statistics (read only)ac8_list_firewall_modes— List supported firewall deployment modes (read only)ac8_create_firewall_config— Create a firewall configuration (mutation)ac8_list_firewall_configs— List your firewall configurations (read only)ac8_get_firewall_config— Get firewall config details with rules (read only)ac8_update_firewall_config— Update a firewall configuration (mutation; destructive hint)ac8_delete_firewall_config— Delete a firewall configuration (cascades all rules) (mutation; destructive hint)ac8_create_rule— Create a firewall rule for a config (mutation)ac8_list_rules— List rules for a firewall config (read only)ac8_update_rule— Update a firewall rule (mutation; destructive hint)ac8_delete_rule— Delete a firewall rule (mutation; destructive hint)ac8_evaluate_traffic— Evaluate agent traffic against firewall rules (mutation)ac8_firewall_events— List firewall traffic events (read only)ac8_get_firewall_event— Get firewall event details with quarantine info (read only)ac8_list_quarantined— List quarantined payloads (read only)ac8_review_quarantine— Review a quarantined item — release or block permanently (mutation; destructive hint)ac8_firewall_stats— Get firewall statistics (action breakdown, latency, top threats) (read only)ac9_list_sensors— List supported tracker sensor types (read only)ac9_ingest_sighting— Ingest an agent sighting — primary data entry for tracking (mutation)ac9_list_tracked_agents— List tracked (shadow) agents with filtering and search (read only)ac9_get_tracked_agent— Get full tracked agent profile with sightings, correlations, sensor breakdown (read only)ac9_update_tracked_agent— Update tracked agent metadata (name, visibility, tags, notes) (mutation; destructive hint)ac9_agent_sightings— Get sighting history for a tracked agent (read only)ac9_add_correlation— Link two tracked agents via behavioral or campaign correlation (mutation)ac9_agent_correlations— Get correlations for a tracked agent (read only)ac9_tracker_alerts— Get tracker alert feed (read only)ac9_acknowledge_alert— Acknowledge a tracker alert (mutation; destructive hint)ac9_tracker_graph— Get relationship graph data for visualization (nodes + edges) (read only)ac9_auto_respond— Execute auto-response for a high-risk tracked agent (creates firewall rules + threat indicators) (mutation; destructive hint)ac9_tracker_stats— Get tracker dashboard statistics (read only)ac10_chain_info— Get chain overview: block height, totals, validator info (read only)ac10_list_blocks— List blocks (paginated) (read only)ac10_get_block— Get a block by height with transactions (read only)ac10_get_transaction— Get a transaction by ID (read only)ac10_verify_transaction— Verify a transaction signature (read only)ac10_list_nfts— List NFTs (filterable by owner, burned status) (read only)ac10_get_nft— Get NFT detail with transfer history and events (read only)ac10_get_nft_by_agent— Get NFT record by agent ID (read only)ac10_transfer_nft— Transfer NFT ownership to a new address (mutation; destructive hint)ac10_update_nft— Update NFT metadata or visibility (mutation; destructive hint)ac10_burn_nft— Burn (deactivate) an NFT (mutation; destructive hint)ac10_nft_events— Get events for an NFT (read only)ac10_record_event— Record an on-chain event (trust_update, audit_result, risk_change, etc.) (mutation)ac10_chain_health— Get chain health with integrity check (read only)ac10_verify_chain— Run full chain integrity verification (mutation)ac11_list_wallets— List wallets for your agents (read only)ac11_get_wallet— Get wallet detail with recent transactions (read only)ac11_fund_wallet— Fund a wallet with ACC micro-credits (mutation; destructive hint)ac11_make_payment— Make an agent-to-agent payment (mutation; destructive hint)ac11_refund_payment— Refund a payment (mutation; destructive hint)ac11_open_channel— Open a micropayment channel between agents (mutation; destructive hint)ac11_list_channels— List payment channels for an agent (read only)ac11_get_channel— Get payment channel detail (read only)ac11_channel_payment— Make a micropayment within a channel (mutation; destructive hint)ac11_close_channel— Close a payment channel and settle balances (mutation; destructive hint)ac11_payment_history— Get transaction history for an agent wallet (read only)ac11_usage_meters— Get API usage meters for an agent (read only)ac11_meter_api_call— Record a metered API call and charge (mutation; destructive hint)ac11_payment_stats— Get payment statistics (read only)ac12_list_tiers— List customization tiers with pricing and features (read only)ac12_get_tier— Get customization tier detail (read only)ac12_apply_customization— Apply a customization to an agent (mutation; destructive hint)ac12_list_customizations— List your customizations (read only)ac12_get_agent_customization— Get customization for a specific agent (read only)ac12_update_customization— Update customization fields (mutation; destructive hint)ac12_import_nft— Import external NFT as avatar (Premium tier only) (mutation; destructive hint)ac12_revoke_customization— Revoke a customization (mutation; destructive hint)ac12_supported_chains— List supported blockchain chains and tokens (read only)ac12_supported_wallets— List supported wallet connectors (MetaMask, Phantom, Ledger, etc.) (read only)ac12_wallets_for_chain— Get wallets that support a specific chain (read only)ac12_connect_wallet— Connect a crypto wallet (mutation; destructive hint)ac12_list_connected_wallets— List your connected wallets (read only)ac12_disconnect_wallet— Disconnect a wallet (mutation; destructive hint)ac12_create_crypto_payment— Create a crypto payment order (mutation; destructive hint)ac12_list_crypto_payments— List crypto payment orders (read only)ac12_confirm_crypto_payment— Confirm a crypto payment with blockchain transaction hash (mutation; destructive hint)ac12_create_stripe_payment— Create a Stripe payment order (mutation; destructive hint)ac12_confirm_stripe_payment— Confirm a Stripe payment (mutation; destructive hint)ac12_treasury— Get platform treasury wallet addresses (read only)ac12_marketplace_stats— Get marketplace statistics (read only)ac12_submit_review— Submit a review for a marketplace listing (must be buyer) (mutation)ac12_get_listing_reviews— Get reviews for a marketplace listing (read only)ac12_search_listings— Search marketplace listings with filters (q, type, minPrice, maxPrice, tag, sort) (read only)health— Agent Chain platform health check (read only)