[{"data":1,"prerenderedAt":88},["ShallowReactive",2],{"navigation_docs":3,"-hosts":48,"-hosts-surround":83},[4,24],{"title":5,"path":6,"stem":7,"children":8,"icon":23},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Defining Tools","\u002Fguide\u002Fdefining-tools","1.guide\u002F02.defining-tools",{"title":16,"path":17,"stem":18},"Validation and Errors","\u002Fguide\u002Fvalidation","1.guide\u002F03.validation",{"title":20,"path":21,"stem":22},"Moving a Package Over","\u002Fguide\u002Fmigrating","1.guide\u002F04.migrating","i-lucide-book-open",{"title":25,"path":26,"stem":27,"children":28,"icon":47},"Hosts","\u002Fhosts","2.hosts\u002F00.index",[29,31,35,39,43],{"title":30,"path":26,"stem":27},"Every host",{"title":32,"path":33,"stem":34},"MCP","\u002Fhosts\u002Fmcp","2.hosts\u002F01.mcp",{"title":36,"path":37,"stem":38},"Pi","\u002Fhosts\u002Fpi","2.hosts\u002F02.pi",{"title":40,"path":41,"stem":42},"OMP","\u002Fhosts\u002Fomp","2.hosts\u002F03.omp",{"title":44,"path":45,"stem":46},"AI SDK","\u002Fhosts\u002Fai-sdk","2.hosts\u002F04.ai-sdk","i-lucide-table",{"id":49,"title":25,"body":50,"description":76,"extension":77,"links":78,"meta":79,"navigation":80,"path":26,"seo":81,"stem":27,"__hash__":82},"docs\u002F2.hosts\u002F00.index.md",{"type":51,"value":52,"toc":71},"minimark",[53,56,60,65,68],[54,55],"host-roster",{},[57,58,59],"p",{},"Four hosts, four adapters, one list of tools. Every peer is optional, so a package that only ships an MCP server never installs the AI SDK. Each row links to what that host really receives, registered in your browser from the same definition the landing uses.",[61,62,64],"h2",{"id":63},"which-ones-do-i-need","Which ones do I need?",[57,66,67],{},"All of them, if you're an agntn package. That's the deal: every package serves the same tools to MCP, Pi, OMP and the AI SDK.",[57,69,70],{},"For your own project, the ones your users run. An MCP server reaches Claude Code, Cursor and every other MCP client. Pi and OMP are coding agents with their own extension systems, and a native extension beats going through MCP there: prompt snippets, approval tiers, status lines. The AI SDK is for when you're the one building the agent.",{"title":72,"searchDepth":73,"depth":73,"links":74},"",2,[75],{"id":63,"depth":73,"text":64},"The four hosts one tool definition reaches. What each adapter gives its host and which peer it needs","md",null,{"icon":47},{"title":30},{"title":25,"description":76},"U0hNK5AaLorrOF6OjU0F9WWOCTqHjdPmtst5CGHRQWU",[84,86],{"title":20,"path":21,"stem":22,"description":85,"children":-1},"Take a package that declares its tools four times and bring it down to one definition. Step by step with the traps marked",{"title":32,"path":33,"stem":34,"description":87,"children":-1},"createMcpServer builds an MCP server on SDK v2 for any list of tools. With the error handling the SDK's own McpServer gets wrong",1790784241443]