Skip to main content

Module systemone

Module systemone 

Source
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 - the SystemOneFacade seam (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ยง

AskChoice ๐Ÿ”’
AskNoul ๐Ÿ”’
AskScore ๐Ÿ”’

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 ๐Ÿ”’