Skip to content

Commit 31f5cfe

Browse files
committed
Increase HTTP client timeout values in client.py and update example in README.md.
1 parent eb5f94c commit 31f5cfe

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ npm install -g mcp-remote
683683
"headers": {
684684
"Authorization": "Bearer YOUR_API_KEY_HERE"
685685
},
686-
"timeout": 60000
686+
"timeout": 310000
687687
}
688688
}
689689
}

src/core/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def codealive_lifespan(server: FastMCP) -> AsyncIterator[CodeAliveContext]
6868
"Authorization": f"Bearer {config.api_key}",
6969
"Content-Type": "application/json",
7070
},
71-
timeout=60.0,
71+
timeout=300.0,
7272
verify=config.verify_ssl,
7373
)
7474
else:
@@ -78,7 +78,7 @@ async def codealive_lifespan(server: FastMCP) -> AsyncIterator[CodeAliveContext]
7878
headers={
7979
"Content-Type": "application/json",
8080
},
81-
timeout=60.0,
81+
timeout=300.0,
8282
verify=config.verify_ssl,
8383
)
8484

0 commit comments

Comments
 (0)