diff --git a/CHANGELOG.md b/CHANGELOG.md index 188aeb2..9793d7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.12] - 2025-04-14 + +### Fixed + +- ⏳ **Disabled SSE Read Timeout to Prevent Inactivity Errors**: Resolved an issue where Server-Sent Events (SSE) MCP tools would unexpectedly terminate after 5 minutes of no activity—ensuring durable, always-on connections for real-time workflows like streaming updates, live dashboards, or long-running agents. + ## [0.0.11] - 2025-04-12 ### Added diff --git a/pyproject.toml b/pyproject.toml index 02cbda7..b52d4c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mcpo" -version = "0.0.11" +version = "0.0.12" description = "A simple, secure MCP-to-OpenAPI proxy server" authors = [ { name = "Timothy Jaeryang Baek", email = "tim@openwebui.com" } diff --git a/src/mcpo/main.py b/src/mcpo/main.py index 38d6e4c..8fba53e 100644 --- a/src/mcpo/main.py +++ b/src/mcpo/main.py @@ -98,7 +98,7 @@ async def lifespan(app: FastAPI): await create_dynamic_endpoints(app, api_dependency=api_dependency) yield if server_type == "sse": - async with sse_client(url=args[0]) as (reader, writer): + async with sse_client(url=args[0], sse_read_timeout=None) as (reader, writer): async with ClientSession(reader, writer) as session: app.state.session = session await create_dynamic_endpoints(app, api_dependency=api_dependency)