Skip to main content
Glama
Gungnir MCP Server

Gungnir MCP Server

Gungnir MCP Server

CI

A Model Context Protocol (MCP) server for the Gungnir C++23 web framework and its .gnr language.

Developer preview: Group 9, version 0.9.0. Local stdio server supporting modern and legacy MCP protocols, trusted project configuration, native SDK discovery, structural project intelligence, and native compiler validation via gungnirc --check and read-only C++ IR verification via gungnirc --verify-ir. Includes pinned, version-aware official documentation resources and validated local SDK capability metadata. Application builds, C++ generation, migrations and file mutations remain unavailable.

Requirements

  • Node.js 24, npm, a compatible MCP stdio host.

  • Install a trusted Gungnir SDK with gungnirc to use compiler validation. Project intelligence and status remain usable without it.

  • Configure an explicit trusted project root for source validation.

Related MCP server: ai-disk-doctor-integrations

Setup

npm ci
npm run lint
npm run typecheck
npm run build
npm test
npm run pack:check

Run the compiled server from your MCP host with an explicitly trusted project, for example:

node dist/index.js --project-root "/work/inventory" --trusted-root "/work"

An MCP stdio server waits for client messages and reserves stdout for protocol traffic. Use npx @modelcontextprotocol/inspector node dist/index.js to inspect a server started without project access.

Available MCP tools

Tool

Function

gungnir_status

Server version, group, capabilities, trust state

gungnir_toolchain_info

Read-only Gungnir CLI, compiler, SDK and CMake discovery

gungnir_project_info

Trusted Gungnir project marker/profile, structure and counts

gungnir_list_modules

Bounded relative .gnr module listing

gungnir_check

Native structured project or single-file --check validation with structured diagnostic results

gungnir_verify_ir

Structured-project or indexed-source C++ IR verification; returns metadata and redacted verifier results

Calling gungnir_check with {} validates an explicitly trusted structured project. With {"file":"app/models/User.gnr"}, it checks one indexed, project-relative file, using compatibility mode when the project is legacy. Compiler errors return codes, locations and sanitized messages, not raw source excerpts or absolute paths.

Only fixed gungnirc --check and gungnirc --verify-ir operations are permitted. No caller-supplied compiler flags, executable paths, output targets or working directories are accepted.

MCP documentation resources

Group 9 registers 18 static resources through MCP resources/list and resources/read, with no HTTP requests at runtime:

  • 16 official framework guides at gungnir://docs/1.0.2/<topic> (including grammar, expressions, models, controllers, routing, ORM, authentication, validation, views, migrations and SDK packages).

  • gungnir://docs/catalog — JSON catalog with exact official source URLs, immutable commit and blob hashes.

  • gungnir://sdk/capabilities — sanitized SDK version, profile and adapter flags from an operator-selected local SDK manifest.

The official documents are pinned to Gungnir v1.0.2, bundled for offline reading and Git-blob-hash verified before serving. Unsupported version URIs, arbitrary paths, resource templates and wildcard reads are not accepted. The SDK resource requires GUNGNIR_MCP_SDK_ROOT or GUNGNIR_CMAKE_PREFIX; unlike toolchain discovery, it never guesses an SDK from PATH or executes native binaries.

See Documentation resources.

SDK selection and security

Select the trusted SDK using GUNGNIR_MCP_SDK_ROOT, or GUNGNIR_CMAKE_PREFIX, otherwise use a trusted absolute PATH. Explicit SDK overrides do not silently fall back to another compiler. Native version and check operations run through the bounded, no-shell subprocess runner.

Important: Native compilation checks necessarily read trusted source files and execute a local gungnirc binary. Only enable them for projects and toolchains you trust. Canonical filesystem checks and bounded scans are not a race-free OS sandbox.

Read Documentation resources, IR verification, Compiler validation, Process runner, Project intelligence, Configuration, Security and the 16-group roadmap.

CI uses Node.js 24 on Windows 2025 and Ubuntu 24.04. No automatic npm publication or deployment. MIT license.

Available Tools

1 tool
gungnir_statusA

Report the server's available read-only capabilities and trust state without exposing project paths.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 1 tool

    Disambiguation4/5

    With only a single tool there is no risk of misselection between tools, so ambiguity is effectively zero. It loses a point only because there is no second tool to establish clear boundaries or confirm the scope of the surface.

    Naming Consistency4/5

    The name 'gungnir_status' is a clear, readable snake_case resource_action pattern. There is only one name, so consistency across the set cannot really be demonstrated, but nothing is inconsistent or vague.

    Tool Count2/5

    A single status-reporting tool is extremely thin for a server that implies a broader capability/trust domain. It offers no actionable operations, making the surface feel under-scoped rather than deliberately minimal.

    Completeness2/5

    The only operation reports read-only capabilities and trust state; there is no tool to actually invoke any capability, query details, or perform a lifecycle action. Agents hitting this server will reach a dead end if they intend to do anything beyond discovery.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers