Skip to content

MahoneyContextProtocol/mcp-foundation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcp-foundation

Part of Mahoney Context Protocol.

Portable, config-driven generators for the agent-native protocol layer of any website. Each feature ships one check against Cloudflare's Agent Readiness scanner.

Repo: https://github.com/MahoneyContextProtocol/mcp-foundation

Status

Feature Surface Status
01 robots.txt (validity + AI bot rules + Content Signals) shipped
02 sitemap.xml planned
03 Link headers (RFC 8288) planned
04 Markdown content negotiation planned
05 Content Signals (covered by 01) n/a
06 API Catalog (RFC 9727) planned
07 OAuth/OIDC discovery (RFC 8414) planned
08 OAuth Protected Resource (RFC 9728) planned
09 MCP Server Card planned
10 A2A Agent Card planned
11 Agent Skills index planned
12 WebMCP runtime planned

Install

npm install

Requires Node 20+.

Generate robots.txt

cp config.example.yml config.yml      # edit values
npm run generate -- config.yml        # writes ./output/robots.txt

Override the output directory:

npm run generate -- config.yml --output ./public

Test

npm test                              # unit tests (vitest)
npm run test:verify -- https://yoursite.example.com  # live scan

The test:verify script runs the same checks Cloudflare's scanner runs for the robots.txt portion of the score:

  1. 200 OK with text/plain content-type
  2. User-agent: * block present
  3. At least one AI bot User-agent line
  4. Content-Signal: directive present
  5. Absolute Sitemap: URL
  6. Sitemap reachable (warns; full validation in Feature 02)

Config

See config.example.yml for the full annotated config. Schema is strict — unknown fields fail validation.

Layout

src/
  generators/robots-txt.ts   # pure function: Config -> string
  schemas/config.schema.json # JSON Schema, strict
  cli.ts                     # argv -> read yaml -> generate -> write
  index.ts                   # library entry point
test/
  fixtures/                  # valid + invalid configs
  verify/robots-txt.sh       # live URL scanner
examples/                    # ready-to-edit configs
output/                      # generated artifacts (gitignored)

About

Portable, config-driven generator for agent-native protocol files. 19 generators covering RFC + W3C agent-readiness specs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors