mcp-ai-agent-guidelines
Version:
A comprehensive Model Context Protocol server providing advanced tools, resources, and prompts for implementing AI agent best practices
42 lines • 1.38 kB
JavaScript
/**
* Code Scorer Agent Definition
*
* @module agents/definitions/code-scorer-agent
*/
/**
* Agent for analyzing code quality and returning clean code scores.
* Provides 0-100 scoring with breakdown by category (hygiene, coverage, TypeScript, etc.).
*/
export const codeScorerAgent = {
name: "code-scorer",
description: "Analyzes code quality and returns a 0-100 clean code score with breakdown by category",
capabilities: ["code-analysis", "quality-metrics", "scoring"],
toolName: "clean-code-scorer",
inputSchema: {
type: "object",
properties: {
coverageMetrics: {
type: "object",
properties: {
lines: { type: "number" },
branches: { type: "number" },
functions: { type: "number" },
statements: { type: "number" },
},
},
projectPath: { type: "string" },
codeContent: { type: "string" },
language: { type: "string" },
framework: { type: "string" },
},
},
outputSchema: {
type: "object",
properties: {
overallScore: { type: "number" },
breakdown: { type: "object" },
recommendations: { type: "array" },
},
},
};
//# sourceMappingURL=code-scorer-agent.js.map