Document MCP Name Kebab Case

document-mcp-name-kebab-case

info experience: namingexperience: consistency spec: document

MCP server name should be kebab-case.

MCP server name should be lower kebab-case.

Rule definition

The full Spotlight rule — drop it into a ruleset (.spotlight.yaml / .spectral.yaml) and run it with any Spotlight tool.

document-mcp-name-kebab-case:
  title: Document MCP Name Kebab Case
  reference: https://spotlight-rules.com/spec/rules/mcp/document-mcp-name-kebab-case/
  description: MCP server name should be lower kebab-case.
  message: MCP server name should be kebab-case.
  given: $.name
  severity: info
  then:
    function: pattern
    functionOptions:
      match: ^[a-z0-9]+(?:-[a-z0-9]+)*$
  tags:
    - format:mcp
    - spec:document
    - experience:naming
    - experience:consistency
  prompt: "You are editing a MCP document to satisfy the Spotlight API governance
    rule 'document-mcp-name-kebab-case' (Document MCP Name Kebab Case).
    Requirement: MCP server name should be lower kebab-case. To fix: Ensure the
    targeted value matches the regular expression `^[a-z0-9]+(?:-[a-z0-9]+)*$`;
    rewrite any value that does not. This rule is evaluated at the JSONPath
    `$.name` — inspect every location it matches and correct only what violates
    the rule. Make the smallest change that satisfies the rule, leave all
    unrelated content, key order, comments, and formatting unchanged, and keep
    the document valid MCP. Return only the complete corrected document, with no
    commentary."
AI fix prompt — send this to Claude, Gemini, or ChatGPT with your artifact to auto-fix this rule
You are editing a MCP document to satisfy the Spotlight API governance rule 'document-mcp-name-kebab-case' (Document MCP Name Kebab Case). Requirement: MCP server name should be lower kebab-case. To fix: Ensure the targeted value matches the regular expression `^[a-z0-9]+(?:-[a-z0-9]+)*$`; rewrite any value that does not. This rule is evaluated at the JSONPath `$.name` — inspect every location it matches and correct only what violates the rule. Make the smallest change that satisfies the rule, leave all unrelated content, key order, comments, and formatting unchanged, and keep the document valid MCP. Return only the complete corrected document, with no commentary.
ArtifactMCP
Applies at (given)$.name
Severityinfo — educational by default; raise to warn/error to enforce
Referencehttps://spotlight-rules.com/spec/rules/mcp/document-mcp-name-kebab-case/