Back to Home
nschwermann icon

agent_fabric

Verified Safe

by nschwermann

Overview

Enables AI agents to safely interact with paid APIs and on-chain workflows on Cronos EVM using scoped, programmable permissions via the Model Context Protocol (MCP).

Installation

Run Command
pnpm --filter mcp-server dev

Environment Variables

  • DATABASE_URL
  • SERVER_PRIVATE_KEY
  • NEXT_APP_URL
  • MCP_CLIENT_SECRET

Security Notes

The project demonstrates robust security practices with the core smart contract design, implementing ERC-7702 delegation with session key support for granular control (least privilege, time bounds, revocability). Sensitive data like session key private keys and API headers are handled using standard, strong hybrid encryption (RSA-OAEP and AES-256-GCM), protecting them at rest and in transit. The API proxy URL validation (blocking localhost/private IPs) helps prevent Server-Side Request Forgery (SSRF) attacks. A potential area for concern lies in the workflow engine's expression resolution (`resolveAllExpressions`). While it does not use `eval` and employs regex for path parsing, if malicious users could create or inject arbitrary workflow definitions, they might theoretically craft expressions to disclose sensitive information from the `WorkflowContext` (which includes wallet addresses and session IDs). However, this risk is mitigated by the fact that workflow definitions are typically created and managed by authenticated users with appropriate permissions. The permissive CORS configuration (`origin: true`) means clients must be diligent in verifying origins, but this is a common setup for public-facing APIs.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens300
Stars0
Forks0
Last Update2026-01-19

Tags

AI AgentsBlockchainx402 PaymentsSmart AccountsMCP Protocol