Expand description
System One MCP - ask the configured decision model one typed
question (mcp__forge__systemone__*).
One tool per primitive, each asking exactly one question about one
state; several questions about one state are several parallel calls.
All three are any-caller, and they are injected ONLY when
[systemone] is present and enabled - a disabled feature leaves no
tool to call.
facade- theSystemOneFacadeseam (prod over the boot-built client + a mock for tool tests).
Re-exportsยง
use std::sync::Arc;๐use forge_sdk::mcp::server::McpServerBuilder;๐use forge_sdk::mcp::tool::Tool;๐use forge_sdk::mcp::tool::ToolInput;๐use forge_sdk::mcp::tool::ToolOutput;๐use forge_system_one::AskOutcome;๐use forge_system_one::NoulCriteria;๐use forge_system_one::Question;๐use forge_system_one::SystemOneError;๐use crate::mcp::systemone::facade::SystemOneFacade;๐use crate::mcp::systemone::types::ChoiceArgs;๐use crate::mcp::systemone::types::NoulArgs;๐use crate::mcp::systemone::types::ScoreArgs;๐
Modulesยง
- facade ๐
SystemOneFacade- the seam between the systemone MCP tools and the boot-built decision client. Production holds the client directly (asking needs nothing else of the workspace); the mock records calls and answers canned outcomes for tool tests.- types ๐
- Argument shapes for the systemone tools.
Structsยง
Functionsยง
- add_
tools ๐ - Attach the three systemone tools; called only when a client exists, for both session kinds (any-caller).
- choice_
question ๐ - format_
ask_ ๐error - noul_
question ๐ - outcome_
to_ ๐text - The tool-output shape: what answered, the typed answer, and what it cost when the provider reported it.
- score_
question ๐ - tool_
error ๐