Repository navigation
v1.0.11 — MCP addresses and agent fallbacks
This release mostly fixes what an agent is told. A field report on building against the Xano Engine turned up behavior the docs didn't mention, and one case where they were wrong. The route manifest now carries MCP server addresses, and a fresh project stops repeating a notice on every dev and build.
npm install @xano/sdk@1.0.11routes.gen.ts carries MCP server addresses
The route manifest now exports MCP_SERVERS, mcpPath() and mcpUrl() next to socketUrl(), so a frontend that shows users "connect your MCP client here" no longer hard-codes /x2/mcp/<canonical>/mcp/stream. mcpUrl builds the same URL as mcpServer().getUrl(): a /tenant/<name> base URL is handled for you, and an already-resolved URL is refused.
import { mcpUrl } from "./xano/routes.gen";
mcpUrl("notes_mcp", window.XANO_HOST);caught() docs now match what the engine binds, so agent fallbacks can branch
The docs said caught("message") was empty for engine errors. It isn't: it holds the precondition's, engine's or LLM provider's text. A failed s.ai.agent.run also binds a structured result ({ name: "AI_APICallError", statusCode, isRetryable, data }), so a fallback can branch on withFilters(caught("result"), fl.get("statusCode")). name is empty for an s.throw without one.
MCP endpoints refuse browser origins, now documented
A request to an MCP server that carries a browser Origin gets 403 Forbidden: Origin not allowed. Requests with no Origin (curl, servers, MCP clients) are served. The bundle can't allow an origin, so call MCP servers from a server, not from page JS.
xano-free agents need Xano's cloud, now documented
On the Xano Engine on your machine, an xano-free agent fails with The free model is not available in this process. Use a provider with an API key there, or deploy to an ephemeral.
The filter list shows each filter's operand type
Zero-argument filters are grouped by operand type (array:, text:, …). fl.reverse() on text returns the text unchanged, with no error.
A fresh project no longer repeats "No API queries registered"
dev, build, typecheck and xano:deploy in a new init project stopped printing the notice on every run. Plain xanosdk routes still prints it.
Notes
Two other issues from the same report are Xano Engine bugs, not SDK ones, and are being fixed there: a seeded f.password() value is stored empty, and s.realtime.publish from a table trigger or a task is not delivered. Both work on an ephemeral.