Skip to content

CLI Reference

Start an HTTP server for a component.

Terminal window
act serve <component.wasm> [options]
OptionDefaultDescription
--port3000HTTP port
--host[::1]Bind address

Start an MCP stdio server.

Terminal window
act mcp <component.wasm>

Reads JSON-RPC from stdin, writes to stdout. Use with Claude Desktop, Cursor, or any MCP client.

Call a tool directly.

Terminal window
act call <component.wasm> <tool-name> [options]
OptionDescription
--args <json>Tool arguments as JSON
--metadata <json>Metadata key-value pairs as JSON
Terminal window
act call my-tools.wasm search --args '{"query": "rust wasm"}'

List available tools in a component.

Terminal window
act tools <component.wasm>

Show component metadata. Reads the act:component custom section without instantiating the component.

Terminal window
act info <component.wasm>