Skip to main content
Glama
SongJiangzhou

C++ Style Guide MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
check_namingA
检查 C++ 标识符命名是否符合规范

参数:
    identifier: 要检查的标识符名称
    category: 标识符类别,可选值:
             - variable: 变量
             - constant: 常量
             - function: 函数
             - class: 类
             - namespace: 命名空间
             - member_variable: 成员变量
             - template_parameter: 模板参数
             - file_naming: 文件命名

返回:
    检查结果,包含是否符合规范、详细说明和建议
check_include_guardA
检查 C++ 头文件的包含保护是否正确

参数:
    code: 头文件的完整代码
    file_path: 可选的文件路径,用于生成建议的保护宏名

返回:
    检查结果,包含是否符合规范、详细说明和建议
analyze_memory_safetyC
分析 C++ 代码中的内存安全问题

参数:
    code: 要分析的 C++ 代码

返回:
    内存安全分析报告,包括潜在的内存泄漏、悬空指针、不安全操作等
suggest_modern_cppB
建议将代码升级为现代 C++ 写法

参数:
    code: 要分析的 C++ 代码
    target_standard: 目标 C++ 标准,可选值:
                    - cpp11: C++11
                    - cpp14: C++14
                    - cpp17: C++17 (默认)
                    - cpp20: C++20
                    - cpp23: C++23

返回:
    现代化建议报告,包括可以使用的新特性和重写示例
check_const_correctnessB
检查 C++ 代码中的 const 正确性

参数:
    code: 要检查的 C++ 代码

返回:
    const 正确性检查报告,包括缺少 const 的地方和改进建议

Prompts

Interactive templates invoked by user choice

NameDescription
code_review 生成 C++ 代码审查提示模板 参数: focus: 审查重点,可选值: - general: 综合审查(默认) - performance: 性能优化 - safety: 内存和类型安全 - readability: 可读性和维护性 - modern: 现代 C++ 特性使用
refactor_suggestion 生成代码重构建议提示模板 参数: target_standard: 目标 C++ 标准 - cpp11: C++11 - cpp14: C++14 - cpp17: C++17 - cpp20: C++20 - cpp23: C++23

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clearly distinct purpose within C++ code analysis: memory safety, const correctness, include guards, naming conventions, and modern C++ suggestions. There is no overlap in functionality, and an agent can easily distinguish which tool to use for each specific code quality concern.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with snake_case (e.g., analyze_memory_safety, check_const_correctness, suggest_modern_cpp). The naming is predictable and readable throughout the set, with no deviations in style or convention.

Tool Count5/5

With 5 tools, this server is well-scoped for a C++ style guide purpose. Each tool addresses a distinct aspect of code quality (memory, constness, includes, naming, modernization), making the count appropriate and manageable without being too sparse or overwhelming.

Completeness4/5

The tool set covers key areas of C++ style and safety analysis effectively, including memory, const correctness, includes, naming, and modernization. A minor gap is the lack of tools for other common style aspects like formatting, error handling patterns, or performance optimization suggestions, but core workflows are well-covered.

Maintenance

ActivityInactive
ResponsivenessNo issues