@facet-aex/mcp-server
v0.4.0
Published
Local stdio MCP server for FACET capability discovery and policy-bounded Avalanche x402 invocation.
Readme
FACET MCP Server (@facet-aex/mcp-server)
Public local stdio Model Context Protocol (MCP) server (
facet-mcp) enabling AI agents to discover, pay for, and invoke FACET capabilities.
Overview
mcp-server (published to npm as @facet-aex/mcp-server) bridges AI assistants and autonomous agents with the FACET marketplace. Running locally over stdio, it discovers published capabilities, enforces local buyer policies, signs x402 fUSD authorizations, and returns execution outputs with verifiable on-chain proof.
Role in FACET
- Canonical MCP Tools: Exposes
search_facets,get_facet, andinvoke_facetusing natural-key identifiers (provider,facetName, SemVerversion) acrossAPI,ACTOR, andAGENTmodalities. - Policy-Bounded Signing: Delegates wallet custody, default-deny spend checks, and local ledger accounting to
@facet-aex/cliso private keys never enter LLM context or MCP config files. - Reliable x402 Execution: Signs EIP-3009 authorizations for
PAY_PER_RUNandPAY_PER_RESULTchallenges, retainsPAYMENT-SIGNATUREacross202pending retries without double-paying, and surfaces settled amounts and transaction links.
Tech Stack
| Layer | Technology |
|---|---|
| Language & Runtime | TypeScript, Node.js (>=22.0.0, ESM) |
| Protocol & SDK | @modelcontextprotocol/sdk, Zod, @facet-aex/cli |
| x402 & Web3 | @x402/core, @x402/evm, viem |
| Distribution | Public npm (@facet-aex/mcp-server, OIDC Trusted Publishing) |
| Testing | Vitest, Prettier |
Part of FACET (facet-aex) — Federated Agent Capability Exchange & Trust on Avalanche · Documentation
