II.
Adapter overview
Reference · liveadapter:tools-adapter
tools-adapter overview
Implementation pattern includes realtime anycli (wrap any CLI as a callable tool), MCP→CLI gateway, CLI→MCP gateway, and tool-level hooks layered on hooks-adapter PreToolUse / PostToolUse.
Attributes
displayName
tools-adapter
protocolType
tool
nativeSide
- native built-in tools
- MCP servers
- A2A tool servers
- CLI tools wrapped as anycli
- arbitrary external tool protocols
canonicalSide
Unified tool-call request/response
position
Between Agent-Runtime tool dispatch and the actual tool execution boundary
bridgingConcerns
- argument schema translation (tool-call JSON ↔ CLI flags)
- streaming tool output (some MCP tools stream, most CLI tools don\'t)
- error envelope mapping
- secret redaction in tool args/output
- attestation envelope (Trust Chain link for the tool call)
- tool-call modes — direct (no model intermediation) vs normal (model loop)
- background tool calls (long-running async with pending status, resolved via follow-up event)
- per-tool timeouts (separate from Invocation timeout)
- MCP transport support per agent (stdio universal, SSE Claude+Cursor, streamable-HTTP newer Claude+Codex)
catalogInputNodeKinds
- ToolDescriptor
- ToolServer
- MCPTransport
trustChainParticipation
planned
description
Implementation pattern includes realtime anycli (wrap any CLI as a
callable tool), MCP→CLI gateway, CLI→MCP gateway, and tool-level
hooks layered on hooks-adapter PreToolUse / PostToolUse.
Outgoing edges
bridges_for15
- agentVersion:claude:ge-0-0-0·AgentVersionClaude Code
- agentVersion:codex:ge-0-119-0·AgentVersionCodex CLI
- agentVersion:cursor:ge-0-0-0·AgentVersionCursor
- agentVersion:gemini:ge-0-43-0·AgentVersionGemini CLI
- agentVersion:opencode:ge-0-0-0·AgentVersionOpenCode
- agentVersion:claude:ge-0-0-0·AgentVersionClaude Code
- agentVersion:codex:ge-0-119-0·AgentVersionCodex CLI
- agentVersion:cursor:ge-0-0-0·AgentVersionCursor
- agentVersion:gemini:ge-0-43-0·AgentVersionGemini CLI
- agentVersion:opencode:ge-0-0-0·AgentVersionOpenCode
- agentVersion:claude:ge-0-0-0·AgentVersionClaude Code
- agentVersion:codex:ge-0-119-0·AgentVersionCodex CLI
- agentVersion:cursor:ge-0-0-0·AgentVersionCursor
- agentVersion:gemini:ge-0-43-0·AgentVersionGemini CLI
- agentVersion:opencode:ge-0-0-0·AgentVersionOpenCode
bridges_protocol_type3
- layer:5-agent-runtime·LayerAgent-Runtime
- layer:5-agent-runtime·LayerAgent-Runtime
- layer:5-agent-runtime·LayerAgent-Runtime
Incoming edges
None.