Skip to content

MCP server for tech reports#95

Open
max-ostapenko wants to merge 1 commit intomainfrom
clear-asp
Open

MCP server for tech reports#95
max-ostapenko wants to merge 1 commit intomainfrom
clear-asp

Conversation

@max-ostapenko
Copy link
Contributor

@max-ostapenko max-ostapenko commented Mar 12, 2026

This pull request introduces a major refactor to the API controllers to streamline data access and adds a new endpoint for Model Context Protocol (MCP) integration.

The controllers for technologies, categories, versions, ranks, geos, and reports are all simplified to delegate querying logic to a shared service layer, improving maintainability and consistency.

Additionally, a new /mcp endpoint is implemented, exposing the API's data and metrics as structured MCP tools for programmatic access.

The dependencies @modelcontextprotocol/sdk and zod are added to support this integration.

Screenshot 2026-03-12 at 02 47 20

…querying data

- Updated geosController to utilize queryGeos from reportService.
- Refactored ranksController to use queryRanks from reportService.
- Simplified reportController by replacing Firestore queries with queryReport from reportService.
- Modified technologiesController to leverage queryTechnologies from reportService.
- Refactored versionsController to use queryVersions from reportService.
- Introduced reportService.js to centralize query logic for technologies, categories, reports, ranks, geos, and versions.
- Added MCP handler to manage Model Context Protocol requests and integrated various tools for technology and report metrics.
- Updated package.json and package-lock.json to include new dependencies for MCP and Zod.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant