Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default | 
|---|---|---|---|
| MCP_TIMEOUT | No | Timeout for code analysis operations in milliseconds | 30000 | 
| MCP_LOG_LEVEL | No | Log level for the MCP server | info | 
| MCP_MAX_CODE_SIZE | No | Maximum code size that can be analyzed | 50000 | 
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description | 
|---|---|
No prompts  | |
Resources
Contextual data attached and managed by the client
| Name | Description | 
|---|---|
No resources  | |
Tools
Functions exposed to the LLM to take actions
| Name | Description | 
|---|---|
| analyze_code_quality | 分析代码质量,检测潜在问题和改进建议  | 
| generate_documentation | 为代码生成详细的文档和注释  | 
| detect_security_issues | 检测代码中的安全漏洞和风险  | 
| suggest_refactoring | 提供代码重构建议,改善代码结构和可读性  | 
| calculate_complexity | 计算代码复杂度指标(圈复杂度、认知复杂度等)  |