Skip to main content
Glama
cbunting99

MCP Code Analysis & Quality Server

by cbunting99
requirements.md2.08 kB
# Requirements Document ## Introduction The dependency-analysis-server has a bug in its tool schema definitions where Zod schemas are being passed directly as `inputSchema` to the MCP server tools, but MCP requires JSON Schema format. This causes the tools to not work properly as the schema validation fails. The fix involves converting the Zod schemas to proper JSON Schema format that MCP can understand and validate against. ## Requirements ### Requirement 1 **User Story:** As a developer using the dependency-analysis-server MCP tools, I want the tool schemas to be properly formatted so that the MCP client can validate my input parameters correctly. #### Acceptance Criteria 1. WHEN a tool is registered with the MCP server THEN the inputSchema SHALL be in valid JSON Schema format 2. WHEN a user calls any dependency analysis tool THEN the input parameters SHALL be validated against the correct JSON Schema 3. WHEN the server lists available tools THEN each tool SHALL have a properly formatted inputSchema property ### Requirement 2 **User Story:** As a developer maintaining the dependency-analysis-server, I want the schema conversion to be maintainable so that future schema changes are easy to implement. #### Acceptance Criteria 1. WHEN Zod schemas are defined THEN they SHALL be converted to JSON Schema using a reliable conversion method 2. WHEN new tools are added THEN the schema conversion pattern SHALL be consistent across all tools 3. WHEN schema validation fails THEN the error messages SHALL be clear and helpful to users ### Requirement 3 **User Story:** As a user of the MCP tools, I want all existing functionality to continue working after the schema fix so that my workflows are not disrupted. #### Acceptance Criteria 1. WHEN the schema fix is applied THEN all existing tool functionality SHALL remain unchanged 2. WHEN tools are called with valid parameters THEN they SHALL execute successfully and return expected results 3. WHEN tools are called with invalid parameters THEN they SHALL return appropriate validation error messages

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/cbunting99/mcp-code-analysis-server'

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