# rest-rpc > Type-safe REST APIs, for developers and agents ## Changelog - [v0.8.0](https://rest-rpc.vercel.app/changelog/v0-8-0): server: Add createToolsFromRoutes(), which turns a route tree into tools shaped like MCP tools: a definition and a call function, to register with an MCP… - [v0.7.0](https://rest-rpc.vercel.app/changelog/v0-7-0): core: isDefinedError() takes an optional second argument, a client route or tree or a route or route tree, and narrows the error to their defined errors. A… - [v0.6.0](https://rest-rpc.vercel.app/changelog/v0-6-0): core, server: Custom codecs take precedence over the built-in ones for every media type they match, patterns included. A codec such as bodyCodec(/.*/, ...)… - [v0.5.0](https://rest-rpc.vercel.app/changelog/v0-5-0): core: Show a client call's resolved response, such as { status: 200; body: Post; ... }, on hover in editors instead of an internal ClientResponseEntry type… - [v0.4.0](https://rest-rpc.vercel.app/changelog/v0-4-0): core: BodyValue types the chunks of streams a serializer returns, as ReadableStream or AsyncIterable. Other chunks already… - [v0.3.0](https://rest-rpc.vercel.app/changelog/v0-3-0): core: The client passes response bodies to codecs directly. A response body that fails while it is read now rejects like a body that cannot be decoded, with… - [v0.2.0](https://rest-rpc.vercel.app/changelog/v0-2-0): core: InferClientRequest, InferClientResponse, InferClientError, and InferClientStreamData accept the type of a client route function or client tree, such as… - [v0.1.1](https://rest-rpc.vercel.app/changelog/v0-1-1): Initial release ## Docs - [Type-safe REST APIs, for developers and agents.](https://rest-rpc.vercel.app/docs): Write a route once, and it's a validated HTTP endpoint, a typed client call, TanStack Query options, an OpenAPI operation and a tool for MCP servers and agent SDKs. - [Quickstart](https://rest-rpc.vercel.app/docs/quickstart): Define routes, serve them, and call them from a typed client. - [Cheatsheet](https://rest-rpc.vercel.app/docs/cheatsheet): Common rest-rpc patterns, each a complete example, with links to the documentation. - [Route Builder](https://rest-rpc.vercel.app/docs/route-builder): Define a route's method, path, request, responses and handler. - [Middleware and Context](https://rest-rpc.vercel.app/docs/middleware): Run code around handlers, pass values to them, and describe routes with metadata. - [Errors](https://rest-rpc.vercel.app/docs/errors): Define errors on routes, throw them, and handle them typed on the client. - [Server-Sent Events](https://rest-rpc.vercel.app/docs/server-sent-events): Stream typed events from a route and read them on the client. - [Contract-first](https://rest-rpc.vercel.app/docs/contract-first): Define routes in a shared contract, implement them on the server, and call them from the client. - [API Reference](https://rest-rpc.vercel.app/docs/api-reference): Generated API reference for each rest-rpc package. ### HTTP Behavior - [Validation](https://rest-rpc.vercel.app/docs/http-behavior/validation): What is validated, when, and which type each side sees. - [Content Types and Codecs](https://rest-rpc.vercel.app/docs/http-behavior/encoding): How requests and responses are encoded, and how to send formats other than JSON. ### Server - [Serving Routes](https://rest-rpc.vercel.app/docs/server/overview): Serve routes with any framework or none, on Fetch runtimes or Node. - [Framework Integration](https://rest-rpc.vercel.app/docs/server/framework-integration): Serve routes from Hono, Express or another framework. - [Interceptors](https://rest-rpc.vercel.app/docs/server/interceptors): Run code around every request the app serves. ### Client - [Contract Extraction](https://rest-rpc.vercel.app/docs/client/contract-extraction): Give a browser client your routes' types without bundling server code. - [Fetch Client](https://rest-rpc.vercel.app/docs/client/fetch-client): Call your routes over HTTP with a typed client. - [TanStack Query](https://rest-rpc.vercel.app/docs/client/tanstack-query): Typed query and mutation options for TanStack Query. - [Local Calls](https://rest-rpc.vercel.app/docs/client/local-calls): Run a route in the same process with call(), without HTTP. ### Tooling - [OpenAPI](https://rest-rpc.vercel.app/docs/tooling/openapi): Generate an OpenAPI document from your routes. - [MCP Tools](https://rest-rpc.vercel.app/docs/tooling/mcp-tools): Give agents your routes as MCP server tools or agent SDK tools. ### Design - [Type Safety](https://rest-rpc.vercel.app/docs/design/type-safety): What the types protect, and where they deliberately stop. - [Architecture](https://rest-rpc.vercel.app/docs/design/architecture): What a route is at runtime, and what happens to a request on its way through it. ## RSS Feeds - [rest-rpc — Changelog](https://rest-rpc.vercel.app/changelog/rss.xml) ## Agent skills - [rest-rpc](https://rest-rpc.vercel.app/.well-known/agent-skills/rest-rpc/SKILL.md): Use rest-rpc in TypeScript apps with implementation-first route builders or contract-first API design, Node and Fetch server runtimes, framework integration, typed clients, TanStack Query, OpenAPI, streaming, and monorepo architecture. Start from the cheatsheet in the installed package's README. ## Agent resources - [llms-full.txt](https://rest-rpc.vercel.app/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://rest-rpc.vercel.app/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://rest-rpc.vercel.app/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://rest-rpc.vercel.app/openapi.json. - [MCP server](https://rest-rpc.vercel.app/mcp): Streamable HTTP Model Context Protocol server with search_docs, get_page, list_pages, and get_navigation tools, plus every page as a resource. Discovery document: https://rest-rpc.vercel.app/.well-known/mcp.json - [Agent skills](https://rest-rpc.vercel.app/.well-known/agent-skills/index.json): Agent Skills discovery index of the skills this site publishes. - [API catalog](https://rest-rpc.vercel.app/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [AI catalog](https://rest-rpc.vercel.app/.well-known/ai-catalog.json): ARD manifest of the agent-facing resources on this site (MCP server, skills, APIs). - [agent-readability.json](https://rest-rpc.vercel.app/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://rest-rpc.vercel.app/sitemap.xml): Every indexable page URL with its last-modified date.