Skip to content

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:

MCPACT
tools/listlist-tools(metadata)
tools/callcall-tool(tool-call)
Terminal window
# Start MCP stdio server
act 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.

Pure REST endpoints — simpler than MCP’s JSON-RPC + SSE:

EndpointMethodDescription
/toolsGETList all tools
/call/{tool}POSTCall a tool
/metadata-schemaGETGet metadata JSON Schema
Terminal window
# Start HTTP server (default [::1]:3000)
act serve my-component.wasm --port 8080
# List tools
curl http://localhost:8080/tools
# Call a tool
curl -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:

Terminal window
# Call a specific tool
act call my-component.wasm tool-name \
--args '{"key": "value"}' \
--metadata '{"key": "value"}'
# List tools
act tools my-component.wasm
# Show component info
act info my-component.wasm