Skip to main content
Glama

CodeAnalysis MCP Server

by 0xjcf

calculate-metrics

Analyze code by calculating specific metrics such as complexity, lines of code, and maintainability. Supports direct code input or repository URLs for multiple programming languages.

Input Schema

NameRequiredDescriptionDefault
fileContentNoSource code content to analyze directly instead of from a repository
filePathNoPath to the file within the repository (e.g., 'src/main.ts')
languageNoProgramming language of the code (e.g., 'javascript', 'python', 'typescript', 'rust')
metricsNoSpecific metrics to calculate, such as 'complexity', 'linesOfCode', 'maintainability', 'functions', 'classes'
repositoryUrlNoURL of the repository to analyze (e.g., 'https://github.com/username/repo')

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "fileContent": { "description": "Source code content to analyze directly instead of from a repository", "type": "string" }, "filePath": { "description": "Path to the file within the repository (e.g., 'src/main.ts')", "type": "string" }, "language": { "description": "Programming language of the code (e.g., 'javascript', 'python', 'typescript', 'rust')", "type": "string" }, "metrics": { "description": "Specific metrics to calculate, such as 'complexity', 'linesOfCode', 'maintainability', 'functions', 'classes'", "items": { "type": "string" }, "type": "array" }, "repositoryUrl": { "description": "URL of the repository to analyze (e.g., 'https://github.com/username/repo')", "type": "string" } }, "type": "object" }

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/0xjcf/MCP_CodeAnalysis'

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