feat: provide the chat of the rag by MCP#27
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new MCP Server component, including build and deployment setup, OpenAPI client generation, dependency injection, and an application entry point.
- Added multi-stage Dockerfile and Poetry configuration for the MCP server.
- Generated OpenAPI client code under
src/rag_backend_clientwith an API generator script. - Configured dependency injection (
dependency_container.py), entry point (main.py), and Tiltfile updates for build, live update, and linting.
Reviewed Changes
Copilot reviewed 57 out of 57 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| mcp-server/Dockerfile | Defines multi-stage build for the MCP server image |
| mcp-server/pyproject.toml | Poetry setup with project dependencies and dev tools |
| mcp-server/src/dependency_container.py | Declarative DI container wiring settings, API client, server |
| mcp-server/src/main.py | Application entry point with logging and container bootstrap |
| Tiltfile | Adds MCP server image build, live update, and lint resource |
| mcp-server/api-generator.sh | Bash script to generate OpenAPI Python client |
| mcp-server/src/rag_backend_client/openapi_client/docs/DeleteRequest.md | Generated API model documentation |
Comments suppressed due to low confidence (2)
Tiltfile:202
- [nitpick] The linter resource name
backis ambiguous. Consider renaming it to something likemcp-server-lintfor clarity.
create_linter_command(mcp_context, "back"),
mcp-server/src/rag_backend_client/openapi_client/docs/DeleteRequest.md:9
- The
metadataproperty lacks a description. Consider adding a description in the OpenAPI spec so that generated docs are more informative.
**metadata** | [**List[KeyValuePair]**](KeyValuePair.md) | | [optional]
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…sport handling in RagMcpServer
…r, and improve model serialization methods
…ion, and clean up unused files
huhn511
requested changes
Jun 20, 2025
Collaborator
huhn511
left a comment
There was a problem hiding this comment.
Nitpick: change the description of the OpenAPI Generator with correct name (STACKIT instead of Stackit) and a better description.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new "MCP Server" component to the project, including its build process, configuration, and integration into the existing infrastructure. It adds Dockerfile definitions, dependency management, OpenAPI client generation, and Tiltfile updates for deployment. Below are the most significant changes categorized by theme:
MCP Server Setup and Build
mcp-server/Dockerfileto define a multi-stage build process for the MCP server, including dependency installation and environment setup.mcp-server/pyproject.tomlfor dependency and development tool configuration using Poetry.OpenAPI Client Integration
mcp-server/src/rag_backend_client/openapi_client/for interacting with the backend API, including models, API classes, and documentation. [1] [2] [3]mcp-server/api-generator.shto automate OpenAPI client generation.Dependency Injection and Application Entry
mcp-server/src/dependency_container.pyto manage application dependencies using a dependency injection container.mcp-server/src/main.pyas the entry point for running the MCP server, including logging setup.Deployment and Configuration
Tiltfileto include the MCP server in the deployment pipeline, with Docker build and live update configurations.Tiltfile.Miscellaneous
.openapi-generator-ignoreand.openapi-generator/VERSIONto manage OpenAPI generator output and versioning. [1] [2]