Sessions
/
Session 2
/
Slides
Slides es
Previous
Speaker script
Next
On this page
Session 2 — Tools & Agent Workflows
Where Session 1 left off
Chatbot vs. agent
Two tool surfaces, one agent
ITool (in-process)
MCP (Model Context Protocol)
Today's build, by the numbers
ITool — the contract
ToolMetadata — what the LLM sees
Registry vs. Executor
IToolRegistry
IToolExecutor
The approval gate, in 6 lines
Wiring it up — one extension method
🤖 Copilot moment — scaffold a tool
What is MCP, in 30 seconds
Why OpenClawNet has both
The 5 bundled MCP servers
Two transports out of the box
StdioMcpHost
InProcessMcpHost
Lifecycle: McpServerLifecycleService
McpToolOverride — your last line of defence
Secrets: DpapiSecretStore
Discoverability — /mcp-settings
🤖 Copilot moment — convert install command to definition
3 attacks every tool framework must block
FileSystem — kill traversal at resolution time
Shell — blocklist + timeout + approval
Web — block SSRF before the socket opens
NDJSON event types — same for both surfaces
What an agent loop actually does
DefaultAgentRuntime — the engine
How tools get into the prompt
The 5 demos at a glance
Demo 4 — Attach an MCP server (stdio)
Demo 5 — Hybrid agent (ITool + MCP)
Going further — built-in templates
Scroll to top
Ask AI about this page
Copy as Markdown
Was this page helpful?
Yes
No