agentleFS
relaytorelayto/relayto-mcp/AGENTS.md

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.

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
  1. Very specific:

    Public content on a site published with RELAYTO: No account. Every such site serves a read-only MCP server at https://<host>/mcp …

    line 12
  2. Very specific:

    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 …

    line 21
  3. Distinctive:

    Search before you create, so you update the existing content instead of making a duplicate.

    line 51
  4. Common:

    Never ask for the user's RELAYTO password and never put tokens in files or chat.

    line 60
  5. Distinctive:

    When you change something:

    line 82
  6. Very specific:

    Keep description in both server.json files and the card at 100 characters or fewer.

    line 88
  7. Distinctive:

    Don't add endpoints, URLs or claims that don't answer today.

    line 92
  8. Very specific:

    Run npm install && npm run check (validator, build, unit tests) before opening a pull request, and npm run smoke after changing the SDK.

    line 93

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

  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 -y relayto-mcp --site <host>), a REST API at https://<host>/api/site/v1 (CLI and SDK: npx relayto … --site <host>, the relayto npm package), https://<host>/llms.txt, and the Markdown version of any page (<page URL>.md, or the page URL with Accept: text/markdown). Details: the relayto-read-published-site skill. 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.
  2. 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 (objectID in search results); settings, privacy, pages and analytics take slugs.
  • Links: /e/<slug> is a content and /hub/<slug> is a hub. Build them with getUrlBySlug rather 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 entry com.relayto/mcp, the platform server, remote only.
  • servers/mcp/server-card.json: its server card, served by the RELAYTO MCP server at https://mcp.relayto.com/mcp/server-card.
  • servers/site-content/server.json: the MCP Registry entry com.relayto/site-content: every site's server (https://{site}/mcp) and the relayto-mcp package with --site.
  • packages/relayto-mcp/: the relayto-mcp npm package, a stdio bridge (--site: built in, no dependencies; without it: mcp-remote with OAuth). Its mcpName is com.relayto/site-content: the registry lets one package version back one entry.
  • packages/relayto/: the relayto npm package, the TypeScript SDK and CLI for the site API, with no runtime dependencies.
  • test-fixtures/site-hosts.json: the --site rules 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 version for every metadata change: servers/site-content/server.json together with packages/relayto-mcp (its packages[0].version too); servers/mcp/server.json together with server-card.json. relayto has its own version.
  • Keep description in both server.json files and the card at 100 characters or fewer.
  • Describe tools only as the live server behaves. Check the tool list (tools/list after 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, and npm run smoke after changing the SDK.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.