Skip to content

tole-cli --no-default-features --features shell-tools fails to build (pre-existing) #175

Closed

Description

@ajianaz

What

cargo check -p tole-cli --no-default-features --features shell-tools
fails on develop (verified 2026-10-05 while closing PR #174 round 3):
tole_core::mcp_server::serve_stdio and build_server_registry are
referenced under a code path that is not fully gated behind the mcp
feature (E0433/E0425).

Why it slipped

CI never builds tole-cli without the mcp feature (only tole-core gets
the no-default-features cross-compile checks), so the breakage is
invisible in every run.

Fix sketch

Complete the cfg gates around the stdio MCP server command path, and
add a CI check for -p tole-cli --no-default-features --features shell-tools so the profile stays compiling.

Note: surfaced by CodeCora PR #174 round 3; the three
build_registry call sites it flagged were fixed in that PR — the
remaining errors reproduce on plain develop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions