Agents
How agents work with Streams: llms.txt and raw markdown, the MCP server, the stream definition schema, and OpenAPI.
Streams docs are meant to be read by coding agents as well as people. This site is the source of truth. Package repositories do not keep a second copy.
Read the docs
| URL | What you get |
|---|---|
| /llms.txt | An index of every docs page, as markdown links, following llmstxt.org. Built on each request from the same index as search. |
| /llms-full.txt | The same pages, inlined. Use this when you need the text and cannot fetch each link. |
/docs/{id}.md and /docs/{package}/{id}.md |
The source of one page, with its title as a heading. Drop .md for the HTML page. |
| /search/docs.json | The Cmd+K index: title, description, URL, markdown URL, and an excerpt. |
| /docs/api/openapi.yaml | The generic OpenAPI 3 description of streams/api, copied from the package. It is not generated from your app's streams. |
| /schema/streams.schema.json | The JSON Schema for streams/*.json definition files. See Stream definition schema. |
HTML pages also emit <link rel="alternate" type="text/markdown"> pointing at the .md URL.
These routes are dynamic. They read the docs streams through App\Support\DocsSearchIndex and cache the text for 15 minutes (docs.llms.index, docs.llms.full, docs.search.index). Adding a markdown file under streams/data/{docs,core_docs,ui_docs,api_docs,sdk_docs,testing_docs,client_docs}/ publishes it on the next cache miss. There is no generate step.
What to trust
Documented behavior on a page marked status: ready was checked against package source. If a page and the code disagree, the code wins, and the page should be corrected here.
Two names stay distinct until a later rename lands:
- SDK (
streams/sdk) is the PHP Artisan generators and the local MCP server. See the command reference. - Client (
@laravel-streams/api-client) is the JavaScript client for the REST API.
Work inside an app
Inside a Laravel app with streams/sdk, an agent doesn't have to read source files to learn the domain model:
- MCP server.
php artisan mcp:start streamsexposes 14 tools (list and describe streams, entry and definition schemas, validate definitions, entry CRUD, docs search, and themake-streamandmake-addongenerators), two resources, and thedesign-streamprompt. It needslaravel/mcp, which needs Laravel 11.45+ or 12.41+. See MCP server. - CLI with JSON output. On any supported Laravel version,
php artisan streams:list --jsonlists the streams andphp artisan streams:validate --jsonchecks definition files. See the command reference. - Definition schema.
make:streamwrites"$schema": "https://streams.dev/schema/streams.schema.json", and this site serves that file at /schema/streams.schema.json.streams:schemawrites a schema for the entries of each of your streams; that is a different file.