← @bgSponge

“You Said No MCP!”

Summary

Earendil Engineering explains why Pi added the Model Context Protocol (MCP): current MCP is better, and Codemode makes its tools composable inside a JavaScript sandbox.

  1. Pi moved MCP into its core after the supporting changes proved useful beyond MCP.

    The same interpreter sandbox also enables the use of Jev more easily within Pi.

    We believe the best way to positively influence something is to embrace it.

  2. MCP's remaining weakness is composition.

    Earendil says many servers dump text-returning tools into context and argues for structured data plus documentation-based discovery, closer to OpenAPI.

    The way we like to think about MCP at this point is that it should be much closer to OpenAPI with intelligent tool discovery.

  3. Codemode lets agents orchestrate tools inside the harness.

    Its JavaScript sandbox combines calls in the order the agent chooses, while keeping state in the session transcript.

    Codemode is special in that it runs where the harness runs.

  4. Modern model capabilities changed Pi's tool configuration needs.

    Deferred tool loading, mid-conversation system messages, and reasoning-level changes require tools to be deferred or Codemode-specific.

  5. Earendil is adopting MCP to shape its small-harness future.

    The post says servers and usage patterns still need improvement.

    The biggest issue with MCP continues to be that it’s hard to compose.

Read the original ↗Save to Sponge

Summarized with Sponge. Quotes are the author’s own words.

More from @bg

All readings →