cpp26-adapter
The cpp26-adapter server provides tools to access, search, and check compiler implementation status of C++26 papers, helping LLM coding assistants generate idiomatic C++26 code instead of outdated patterns.
lookup_paper— Retrieve the full markdown reference for a specific C++26 WG21 paper by ID (e.g.,P2996,P2900), including title, problem statement, key syntax, canonical code examples, pre-C++26 equivalents, gotchas, and related papers.search— Perform free-text fuzzy search across the indexed C++26 paper corpus using queries like'reflection','enum to string', or'contracts assert'. Results are ranked by relevance and include paper ID, title, tier, category, and path. Supports atop_kparameter to control the number of matches.compiler_status— Look up the implementation status of a specific C++26 paper across compilers (clang, gcc, msvc, clang-p2996), returning support level (none/partial/shipped) and version info. Intended for classifying review diagnostics ascompiler-lagvs.bug, not for gating code recommendations.
Scaffolds C++26-ready CMake projects via the /cpp26-init command, setting CXX_STANDARD to 26, -std=c++2c, and CMAKE_EXPORT_COMPILE_COMMANDS ON, along with .clangd configuration.
cpp26-adapter
Turn your LLM coding assistant into a C++26 specialist.
A Claude Code plugin (and standalone MCP server) that biases generation toward ISO/IEC 14882:2026 final-form idioms — reflection, contracts, senders, inplace_vector, #embed — even when your local clang hasn't caught up.
Quick Start
Full plugin (Claude Code — skill + MCP + reviewer + hooks + slash command):
/plugin marketplace add parasxos/claude-plugins
/plugin install cpp26-adapter@parasxos/claude-pluginsMCP server only (any MCP-compatible client):
pip install cpp26-refRelated MCP server: Context7 MCP
What it does
Six concrete idiom shifts on the same prompts a vanilla LLM would answer with pre-C++26 patterns:
You ask for… | Vanilla LLM emits |
|
enum → string | X-macros / |
|
precondition |
|
|
async pipeline |
|
|
fixed-capacity vector |
|
|
embed binary asset |
|
|
Nth pack element |
|
|
The hook — ask for "enum to string"
Vanilla falls back to X-macros. With cpp26-adapter — straight from P2996 reflection + P1306 expansion statements:
template <typename E> requires std::is_enum_v<E>
constexpr std::string_view enum_name(E v) {
template for (constexpr auto e :
std::define_static_array(std::meta::enumerators_of(^^E))) {
if (v == [: e :]) return std::meta::identifier_of(e);
}
return "<unknown>";
}No macros. No third-party dep. No codegen. More side-by-side examples (contracts, senders, #embed): docs/examples.md.
Compatible clients
Client | Recommended path |
Claude Code |
|
Claude Desktop |
|
Cursor |
|
VS Code (Cline / Continue) |
|
Any other MCP client |
|
Configuration
Claude Code
After /plugin install cpp26-adapter@parasxos/claude-plugins, everything wires itself up: the skill loads into context, the MCP starts on demand, the reviewer subagent is callable as @cpp26-reviewer, the hook lints on every C++ edit, and /cpp26-init is available.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"cpp26-ref": {
"command": "cpp26-ref"
}
}
}Requires pip install cpp26-ref on a Python (≥3.11) reachable from the Claude Desktop process.
Cursor / VS Code / generic MCP client
{
"mcpServers": {
"cpp26-ref": { "command": "cpp26-ref" }
}
}Verify the install
After install + restart, three sanity checks:
Ask the assistant "write enum-to-string for
enum class E { A, B }" — the response should usestd::metareflection, not X-macros ormagic_enum.(Full plugin only) Run
@cpp26-reviewer src/foo.cpp— should return a YAML report withstatus: pass | needs-changes | compiler-lag-only.(Full plugin only) Run
/cpp26-initin an empty directory — the scaffoldedCMakeLists.txtshould build a#include <print>+std::print("hi\n")hello-world.
MCP tools
The cpp26-ref server exposes three stdio tools over MCP, in-memory over 216 indexed C++26 papers (no SQLite, no embeddings, no build step):
Tool | Signature | Returns |
|
| Full reference: title, problem statement, key syntax, canonical example, pre-C++26 equivalent, gotchas, related papers |
|
| Top-N papers ranked by |
|
| Per-compiler implementation status: |
Cold start ~352 ms. 17 tests pass under pytest mcp-server/tests.
Use cases
Generate idiomatic C++26 code. Ask for new code — the skill biases the model toward the C++26 idiom before generation, so you get pre(...) instead of assert(...), std::execution instead of std::async, reflection instead of X-macros, without re-prompting.
Review existing code for C++26 modernization. Run @cpp26-reviewer src/foo.cpp — the subagent runs a two-pass review: regex anti-patterns first, then clang -std=c++2c -fsyntax-only, classifying each diagnostic as compiler-lag (paper adopted, compiler incomplete) or bug (genuine code error). You see both axes side by side.
Initialize a new C++26 project. Run /cpp26-init — scaffolds CMakeLists.txt (CXX_STANDARD 26, -std=c++2c, CMAKE_EXPORT_COMPILE_COMMANDS ON), .clangd, and .cpp26-adapter.yaml.
Get authoritative paper references. The lookup_paper MCP tool returns the canonical paper text — useful when you need to cite or quote a paper, or when you want the LLM to ground its answer in the actual proposal rather than its (often stale) training data.
The invariant
Recommendations follow the standard, not the toolchain. If clang < 22 / gcc < 16 haven't shipped a feature, the plugin still suggests the C++26 form. Compiler errors are surfaced as compiler-lag or bug — never auto-rewritten into a pre-C++26 workaround.
The suggestion path (skill + MCP) is compiler-agnostic; compiler awareness lives only in the reviewer's Pass-2 syntax check and the SessionStart probe. Full architecture diagram: docs/architecture.md.
Eval
37/39 (95%) with plugin ON vs 14/39 (36%) OFF on a 39-task held suite; bar ≥85%. Per-task scoring + methodology: eval/results-v0.9.0.md, docs/papers.md.
Status
v1.0.0 — eval gate held across two successive refreshes. The MCP tool signatures, the subagent's output schema, and the standard-first invariant are contract-binding for the 1.x line.
License
Dual-licensed by directory:
Code (everything outside
corpus/): MIT —LICENSE-CODE.Knowledge corpus (
corpus/): CC-BY-SA 4.0 —LICENSE-CORPUS.
See also
docs/architecture.md— full invariant, component diagram, walkthroughdocs/examples.md— contracts, senders,#embedside-by-sidedocs/papers.md— the 16 deep-tier papers + eval methodologydocs/FAQ.md— clang/gcc compatibility, legacy code, refresh cadencePlugin repo: github.com/parasxos/cpp26-adapter · Marketplace: github.com/parasxos/claude-plugins · PyPI: pypi.org/project/cpp26-ref
Available Tools
3 toolscompiler_statusA
Look up compiler implementation status for a C++26 paper.
INFORMATIONAL ONLY. The cpp26-adapter suggestion path is compiler-agnostic by design — the model must not gate recommendations on this. Use it for classifying review diagnostics as bug-vs-compiler-lag, never for choosing which idiom to write.
Args: paper_id: WG21 paper id (e.g. 'P2996'). compiler: optional compiler key — 'clang-22', 'clang-p2996', 'gcc-16', 'msvc-19.40'. When omitted, returns status for every known compiler.
Returns: A dict containing at minimum {paper_id, informational_only: True}. For known entries: {support, note, version, ...} (schema depends on corpus/status.yaml). For unknown paper or compiler: {support: 'unknown', note: ...}.
Inputs: paper_id (required), compiler. Returns: object
lookup_paperA
Return the full markdown reference for a C++26 paper.
Args: paper_id: WG21 paper identifier (e.g. 'P2996', 'P2900').
Returns: The contents of corpus/references/<paper_id>.md, including the YAML frontmatter (id, title, revision, tier, keywords, canonical_url, …) and the prose body (problem, syntax, canonical example, pre-C++26 equivalent, gotchas, related).
Raises: FileNotFoundError when the paper is unknown to the index, or known but its reference markdown has not yet been authored.
Inputs: paper_id (required). Returns: result
searchA
Free-text search over the C++26 paper index.
Matches against title (weighted ×2), keywords, and category using rapidfuzz's WRatio scorer (a robust fuzzy match for short strings).
Args: query: free-text query, e.g. 'reflection', 'enum to string', 'contracts assert'. top_k: number of matches to return (default 5).
Returns: A list of dicts: {id, title, tier, category, score (0-100), path}. Empty list when the index is empty or the query is blank.
Inputs: query (required), top_k. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool serves a distinct purpose: compiler_status checks compiler support, lookup_paper retrieves full paper details, and search performs free-text queries. There is no functional overlap.
All tool names use lowercase with underscores, but 'compiler_status' and 'lookup_paper' follow a verb_noun pattern while 'search' is a single verb. The inconsistency is minor.
With 3 tools, the server is well-scoped for its purpose. Each tool provides essential functionality without being excessive or too sparse.
The tools cover searching, retrieving paper details, and checking compiler support. A missing feature is a way to list all papers, but the search tool can approximate this with broad queries.
Maintenance
Related MCP Connectors
Patterns for designing and reviewing AI skills, agents, and multi-agent workflows. Find guidance on context economy, delegation, verification, and tool design; inspect claims, worked examples, maturity labels, and source references. Five read-only tools let agents discover relevant patterns, compare concise cards, read specific sections, and explore relationships. Hosted Streamable HTTP at https://agentic-atlas.dev/mcp/ — no installation, account, or API key required. Browse the atlas at https://agentic-atlas.dev/.
Rivul is a free, read-only remote MCP server for searching scholarly literature. It runs semantic search over more than 300 million paper records from a dated OpenAlex snapshot, so an agent can find papers by meaning rather than exact keywords, then open the full record for any result. Tools: - search_papers: semantic search with optional filters for publication year range, minimum citation count, open access only, topic and field. Sort by relevance, most cited, newest or oldest. - get_paper_details: the full record for one work by its OpenAlex ID: title, every author, venue, work type, topic, field, publication date, citation count, DOI and open-access links. - usage_status: the workspace's MCP usage for the current day. Results come only from the index, never from a model. Each result carries a stable OpenAlex ID so the source can be checked, and every response states the snapshot date. Useful for literature reviews, scoping reviews, finding highly cited or open-access papers on a topic, citation chasing, and checking that a cited paper exists. Free for every account, with no plans or payment. Sign in with Google through OAuth 2.1 (PKCE, dynamic client registration), or use an MCP key from rivul.ai. Endpoint: https://rivul.ai/mcp (Streamable HTTP). Setup and docs: https://rivul.ai/features/atlas
Research intelligence for AI coding agents. 2M+ CS papers with evidence and tradeoffs.
Web search, scraping, RAG answers with citations, and translation as MCP tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that connects LLMs to the Compiler Explorer API, enabling them to compile code, explore compiler features, and analyze optimizations across different compilers and languages.516MIT
- AlicenseAqualityBmaintenanceA Model Context Protocol server that fetches up-to-date, version-specific documentation and code examples from libraries directly into LLM prompts, helping developers get accurate answers without outdated or hallucinated information.265,338MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides code review functionality using OpenAI, Google, and Anthropic models, serving as a "second opinion" tool that works with any MCP client.134MIT
- AlicenseNot gradedqualityCmaintenanceEnables reviewing and managing AI research paper candidates from arXiv, Semantic Scholar, and Hugging Face Daily Papers, scored against personal interests, via MCP tools in Claude Desktop or Cowork.9MIT