Skip to content

MCP updates, image viewer, terminal integration#34

Merged
xprilion merged 2 commits intomainfrom
dev
Apr 30, 2026
Merged

MCP updates, image viewer, terminal integration#34
xprilion merged 2 commits intomainfrom
dev

Conversation

@xprilion
Copy link
Copy Markdown
Owner

This pull request introduces several improvements and new features related to MCP (Model Context Protocol) server integration, enhances idempotency and reliability for agent message handling, and improves authentication for project file access. The most significant changes include full HTTP/HTTPS MCP server support with custom authentication, idempotency for agent message processing, and support for query-string token authentication for project file endpoints.

MCP Server Integration and Management:

  • Added new /api/mcp routes for testing MCP server connections and retrieving server statuses, supporting HTTP/HTTPS servers with custom headers and query parameters. [1] [2] [3] [4]
  • Updated the MCP integration to only support HTTP/HTTPS servers, with utilities for custom authentication and dynamic connection management. [1] [2] [3]
  • Registered the new MCP router in the FastAPI application. [1] [2]

Agent Message Idempotency and Reliability:

  • Implemented in-memory idempotency checks for agent messages using a request ID, preventing duplicate processing on both the API and background worker sides. [1] [2] [3] [4] [5]
  • Improved Celery task handling to detect and skip redelivered jobs, ensuring user messages are not duplicated in the database. [1] [2] [3]

Authentication Improvements for Project Files:

  • Enhanced the project file read endpoint to support authentication via a query-string ?token= parameter, enabling direct access for image tags and similar use cases. [1] [2]
  • Added an optional user dependency and logic to resolve users from access tokens in query parameters. [1] [2] [3]

Session Management Enhancements:

  • Switched session manager message processing to use per-conversation locks, allowing concurrent processing across different conversations without contention. [1] [2] [3]

Documentation Updates:

  • Updated the README.md to clarify MCP server support (now explicitly HTTP/HTTPS with custom authentication) and terminal tab description.

These changes collectively improve extensibility, reliability, and usability for MCP server integration and agent workflows.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 29, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots

See analysis details on SonarQube Cloud

@xprilion xprilion merged commit 5db4858 into main Apr 30, 2026
5 of 6 checks passed
@xprilion xprilion deleted the dev branch May 1, 2026 17:19
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