Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Tools

Functions exposed to the LLM to take actions

NameDescription
check_naming
检查 C++ 标识符命名是否符合规范 参数: identifier: 要检查的标识符名称 category: 标识符类别,可选值: - variable: 变量 - constant: 常量 - function: 函数 - class: 类 - namespace: 命名空间 - member_variable: 成员变量 - template_parameter: 模板参数 - file_naming: 文件命名 返回: 检查结果,包含是否符合规范、详细说明和建议
check_include_guard
检查 C++ 头文件的包含保护是否正确 参数: code: 头文件的完整代码 file_path: 可选的文件路径,用于生成建议的保护宏名 返回: 检查结果,包含是否符合规范、详细说明和建议
analyze_memory_safety
分析 C++ 代码中的内存安全问题 参数: code: 要分析的 C++ 代码 返回: 内存安全分析报告,包括潜在的内存泄漏、悬空指针、不安全操作等
suggest_modern_cpp
建议将代码升级为现代 C++ 写法 参数: code: 要分析的 C++ 代码 target_standard: 目标 C++ 标准,可选值: - cpp11: C++11 - cpp14: C++14 - cpp17: C++17 (默认) - cpp20: C++20 - cpp23: C++23 返回: 现代化建议报告,包括可以使用的新特性和重写示例
check_const_correctness
检查 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

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/SongJiangzhou/cpp_guidelines'

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