PhpCodeArcheology
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_health_score | Returns the overall code health score, grade, technical debt score, problem counts, and project statistics. |
| get_problems | Returns a filtered list of code problems. Filter by severity (error/warning/info), type keyword, and limit. |
| get_hotspots | Returns the top N code hotspots ranked by churn × cyclomatic complexity. Files that change often and are complex. |
| get_refactoring_priorities | Returns classes ranked by refactoring priority score. Includes recommendation and driving factors. |
| get_class_list | Returns a sorted and filtered list of classes with key metrics (CC, LLOC, MI, refactoring priority, coupling). |
| get_metrics | Returns all available metrics for a specific class, file, or function. Provide the entity name (e.g. 'UserService'). |
| get_dependencies | Returns dependency information for a specific class — outgoing dependencies, incoming usage, and coupling metrics. |
| get_graph | Returns the knowledge graph of the project as JSON with nodes, edges, clusters, and dependency cycles. |
| search_code | Search for classes, files, or functions by name. Returns matching entities with key metrics. |
| get_impact_analysis | Analyzes the impact of changing a method. Shows direct and transitive callers across classes, affected class count, and call chains. Provide class_name (required) and optionally method_name and depth (default 2). |
| get_test_coverage | Get test coverage analysis: test ratio, tested classes, and untested complex code gaps |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
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/PhpCodeArcheology/PhpCodeArcheology'
If you have feedback or need assistance with the MCP directory API, please join our Discord server