relayto-mcp
AGENTS.md0 starsChanged 17 days agoMITView on GitHub
Instructions for coding agents (Claude Code, Codex, Cursor, Windsurf, Copilot and others) that work with RELAYTO, and for agents editing this repository. RELAYTO (https://relayto.com) publishes PDFs, decks, reports and web pages as interactive content, groups them into hubs, serves them on RELAYTO subdomains or a company's own domain, and measures them page by page. 1. Public content on a site published with RELAYTO. No account. Every such site serves a read-only MCP server at https://<host>/mcp (search_content, list_hubs, get_content; stdio: npx…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 1 is common, 3 are distinctive, and 4 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 12
Public content on a site published with RELAYTO: No account. Every such site serves a read-only MCP server at https://<host>/mcp …
- Very specific: line 21
A RELAYTO workspace the user belongs to: Use the RELAYTO MCP server at https://mcp.relayto.com/mcp (Streamable HTTP, OAuth sign-in with the …
- Distinctive: line 51
Search before you create, so you update the existing content instead of making a duplicate.
- Common: line 60
Never ask for the user's RELAYTO password and never put tokens in files or chat.
- Distinctive: line 82
When you change something:
- Very specific: line 88
Keep description in both server.json files and the card at 100 characters or fewer.
- Distinctive: line 92
Don't add endpoints, URLs or claims that don't answer today.
- Very specific: line 93
Run npm install && npm run check (validator, build, unit tests) before opening a pull request, and npm run smoke after changing the SDK.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md: RELAYTO for AI coding agents
Instructions for coding agents (Claude Code, Codex, Cursor, Windsurf, Copilot and others) that work with RELAYTO, and for agents editing this repository.
RELAYTO (https://relayto.com) publishes PDFs, decks, reports and web pages as interactive content, groups them into hubs, serves them on RELAYTO subdomains or a company's own domain, and measures them page by page.
Two ways in. Pick by whose content it is
- Public content on a site published with RELAYTO. No account. Every such site
serves a read-only MCP server at
https://<host>/mcp(search_content,list_hubs,get_content; stdio:npx -y relayto-mcp --site <host>), a REST API athttps://<host>/api/site/v1(CLI and SDK:npx relayto … --site <host>, therelaytonpm package),https://<host>/llms.txt, and the Markdown version of any page (<page URL>.md, or the page URL withAccept: text/markdown). Details: therelayto-read-published-siteskill. Don't scrape the JavaScript viewer, and don't try to read content the publisher has gated (private, password, email form, unlisted): every one of these leaves it out on purpose. - A RELAYTO workspace the user belongs to. Use the RELAYTO MCP server at
https://mcp.relayto.com/mcp(Streamable HTTP, OAuth sign-in with the user's RELAYTO account). It can search, create and edit contents, build hubs, set privacy, invite people, host files, create forms and read analytics, always as the signed-in user. Skills for these jobs: relayto/agent-skills.
Connect the MCP server
# Claude Code
claude mcp add --transport http relayto https://mcp.relayto.com/mcp// Cursor (~/.cursor/mcp.json) and most clients with remote MCP support
{ "mcpServers": { "relayto": { "url": "https://mcp.relayto.com/mcp" } } }// Clients that only start local servers: the npm bridge (Node.js 20.18.1+)
{ "mcpServers": { "relayto": { "command": "npx", "args": ["-y", "relayto-mcp"] } } }Skills, plugin and agent rules
They live in relayto/agent-skills:
npx skills add relayto/agent-skills, or the relayto plugin there.
Rules that keep agents out of trouble
- Search before you create, so you update the existing content instead of making a duplicate.
- Privacy changes, hub removals, settings overwrites, file overwrites and invitations have effects people outside the chat see at once. State the change and get a clear yes first.
- Ids and slugs are different things: hub membership tools take content and hub ids
(
objectIDin search results); settings, privacy, pages and analytics take slugs. - Links:
/e/<slug>is a content and/hub/<slug>is a hub. Build them withgetUrlBySlugrather than by hand. - Never ask for the user's RELAYTO password and never put tokens in files or chat.
- Report only changes the server confirmed.
Working on this repository
Layout:
servers/mcp/server.json: the official MCP Registry entrycom.relayto/mcp, the platform server, remote only.servers/mcp/server-card.json: its server card, served by the RELAYTO MCP server athttps://mcp.relayto.com/mcp/server-card.servers/site-content/server.json: the MCP Registry entrycom.relayto/site-content: every site's server (https://{site}/mcp) and therelayto-mcppackage with--site.packages/relayto-mcp/: therelayto-mcpnpm package, a stdio bridge (--site: built in, no dependencies; without it: mcp-remote with OAuth). ItsmcpNameiscom.relayto/site-content: the registry lets one package version back one entry.packages/relayto/: therelaytonpm package, the TypeScript SDK and CLI for the site API, with no runtime dependencies.test-fixtures/site-hosts.json: the--siterules both packages must agree on..claude/CLAUDE.md: points Claude Code at this file. The skills, the plugin and the agent rules for other tools are in relayto/agent-skills.
When you change something:
- A registry version can't be republished, so bump
versionfor every metadata change:servers/site-content/server.jsontogether withpackages/relayto-mcp(itspackages[0].versiontoo);servers/mcp/server.jsontogether withserver-card.json.relaytohas its own version. - Keep
descriptionin bothserver.jsonfiles and the card at 100 characters or fewer. - Describe tools only as the live server behaves. Check the tool list
(
tools/listafter signing in) before documenting a tool or parameter. - Don't add endpoints, URLs or claims that don't answer today.
- Run
npm install && npm run check(validator, build, unit tests) before opening a pull request, andnpm run smokeafter changing the SDK.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

