Transport Bindings
ACT is a component contract, not a transport protocol. Transport adapters bridge external protocols to the ACT host.
The MCP adapter translates between the Model Context Protocol and ACT:
| MCP | ACT |
|---|---|
tools/list | list-tools(metadata) |
tools/call | call-tool(tool-call) |
# Start MCP stdio serveract mcp my-component.wasm
# Use with Claude Desktop, Cursor, etc.Metadata is configured by the host (API keys, connection strings). The agent sends tool calls through standard MCP JSON-RPC.
HTTP (ACT-HTTP)
Section titled “HTTP (ACT-HTTP)”Pure REST endpoints — simpler than MCP’s JSON-RPC + SSE:
| Endpoint | Method | Description |
|---|---|---|
/tools | GET | List all tools |
/call/{tool} | POST | Call a tool |
/metadata-schema | GET | Get metadata JSON Schema |
# Start HTTP server (default [::1]:3000)act serve my-component.wasm --port 8080
# List toolscurl http://localhost:8080/tools
# Call a toolcurl -X POST http://localhost:8080/call/base64_encode \ -H "Content-Type: application/json" \ -d '{"arguments": {"input": "hello"}}'ACT-HTTP is also a standard for non-WASM implementations. Any HTTP server implementing these endpoints is an ACT-HTTP component.
Direct command-line invocation:
# Call a specific toolact call my-component.wasm tool-name \ --args '{"key": "value"}' \ --metadata '{"key": "value"}'
# List toolsact tools my-component.wasm
# Show component infoact info my-component.wasm