reference-patterns
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@reference-patternssearch for singleton pattern in TypeScript"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
reference-patterns
Personal reference of implementation and testing patterns across languages
(TypeScript, Go, Protobuf — Rust and more as they come). Each pattern is a
self-contained, runnable example documented in its PATTERN.md, meant to be
consumed from other projects through MCP.
Layout
<language>/<category>/<pattern-slug>/
├── PATTERN.md # frontmatter (name, tags, description, origin, test command) + Problem/Solution/Path/Key points
└── ... # runnable code with its own manifest (package.json, go.mod, buf.yaml, ...)llms.txt is the generated index of every pattern — this is what MCP clients read first.
Patterns never depend on each other.
Each language directory is a workspace managed by its native tool:
pnpm-workspace.yaml(with acatalog:as the single place to bump TypeScript dependency versions),go.work, and per-crate Cargo for Rust. One rootpnpm installcovers every TypeScript pattern; bumping a catalog version + running./scripts/test-all.shre-verifies the whole reference at once. Toolchains needed locally: node + pnpm, go, buf, rust + cargo.
Related MCP server: MCP360 Universal Gateway
Consume via MCP (GitMCP)
This repo is served as an MCP server by GitMCP — no hosting, it reads the public repo directly. From any project:
claude mcp add --transport http patterns https://gitmcp.io/Skayfa/reference-patternsor in mcpServers:
"patterns": {
"type": "http",
"url": "https://gitmcp.io/Skayfa/reference-patterns"
}Exposed tools: fetch_reference_docs (returns llms.txt),
search_reference_docs, search_reference_code, fetch_generic_url_content.
Add a pattern
Copy
templates/pattern/PATTERN.mdinto<language>/<category>/<slug>/.Fill the frontmatter —
descriptionis what MCP search matches against;originrecords where the pattern was distilled from (source project + month);testis the commandscripts/test-all.shruns from the pattern directory (nonefor docs-only patterns).Add the runnable code with its own manifest. TypeScript patterns are picked up by the workspace glob automatically — use
"catalog:"versions (add new entries topnpm-workspace.yaml) andtest: pnpm test../scripts/generate-llms.shto refresh the index../scripts/test-all.sh— everything must pass before pushing.
Test everything
./scripts/test-all.shThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Skayfa/reference-patterns'
If you have feedback or need assistance with the MCP directory API, please join our Discord server