Skip to main content
Glama
curtis-d-williams

mcp-license-header-guardian

mcp-license-header-guardian

Deterministic, network-free, read-only MCP guardian that enforces license headers in tracked Python files (Tier 1).

What this repo is for

Use this repository as the starting point for new guardians.

It provides:

  • A frozen V1 contract (docs/V1_CONTRACT.md)

  • Canonical output examples (docs/EXAMPLE_OUTPUTS.md)

  • Determinism guardrails (pytest)

Related MCP server: CodeAudit MCP

Invariants (do not violate under V1)

  • One tool only: check_license_header

  • Output schema keys are fixed

  • Fail-closed on invalid input or internal error

  • No timestamps, randomness, environment metadata

  • No network calls

  • No repo mutation / disk writes

If you need any of the above, declare V2.

Local development

Install editable:

python3 -m pip install -e .

Run tests:

pytest -q

Print canonical JSON output:

python3 -c "from mcp_license_header_guardian.server import check_license_header, canonical_json; print(canonical_json(check_license_header('.')))"

MCP server

Run:

mcp-license-header-guardian

Available Tools

1 tool
check_license_headerA

Deterministic, network-free, read-only Tier 1 guardian.

Checks .py files tracked by git to ensure the first 5 lines contain "Copyright" OR "SPDX-License-Identifier".

ParametersJSON Schema
NameRequiredDescriptionDefault
repo_pathYes

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key traits: deterministic, network-free, read-only, and Tier 1 guardian (implying low-risk or foundational). This covers safety and operational context well, though it could add more on error handling or output format.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is highly concise and well-structured, with two sentences that front-load key information (deterministic, network-free, read-only) and then specify the action and criteria. Every sentence adds value without waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (1 parameter, no annotations, but with an output schema), the description is mostly complete. It covers purpose, behavior, and scope, but lacks details on the parameter and output. Since an output schema exists, explaining return values is less critical, but the parameter gap slightly reduces completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, so the description must compensate. It does not explicitly mention the 'repo_path' parameter, but it implies the context ('.py files tracked by git'), which relates to repository paths. This adds some semantic meaning beyond the bare schema, though not directly naming or detailing the parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('checks .py files tracked by git') and resources ('.py files'), and distinguishes its scope (first 5 lines for specific license headers). It explicitly defines the deterministic, network-free, read-only nature, making it highly specific and self-contained.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context (checking license headers in Python files under git) but does not provide explicit guidance on when to use this tool versus alternatives, prerequisites, or exclusions. Since there are no sibling tools, the lack of comparative guidance is less critical, but it still lacks detailed usage instructions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A4/5.0
Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is singular and clearly defined.

Naming Consistency5/5

A single tool inherently has perfect naming consistency, as there are no other tools to compare against. The name 'check_license_header' follows a clear verb_noun pattern.

Tool Count2/5

One tool is too few for the server's apparent purpose of license header management, as it only provides a read-only check without any complementary tools for fixing, updating, or managing headers across files.

Completeness2/5

The tool surface is severely incomplete for license header management, lacking essential operations such as adding, removing, or modifying headers, which are necessary for a full workflow in this domain.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

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/curtis-d-williams/mcp-license-header-guardian'

If you have feedback or need assistance with the MCP directory API, please join our Discord server