Skip to content

Commit 426915b

Browse files
committed
improved timeout handling further
1 parent a3023a4 commit 426915b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+457
-591
lines changed

debug/mcp_timeout_bug_demo.py

Lines changed: 0 additions & 298 deletions
This file was deleted.

examples/demo_langchain_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def _arun( # noqa: D401
4343
@register_tool(name="palindrome_tool")
4444
class PalindromeAdapter:
4545
"""
46-
Thin adapter that forwards the call to the LangChain tools
46+
Thin adapter that forwards the call to the LangChain tool's
4747
async API and simply returns its result.
4848
"""
4949

examples/execution_strategies_custom_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def stream_run(self, calls, timeout=None):
5353
# Try it out
5454
# ---------------------------------------------------------------------
5555
async def main() -> None:
56-
registry = await initialize() # we dont need real tools for this demo
56+
registry = await initialize() # we don't need real tools for this demo
5757
calls = [ToolCall(tool="ping"), ToolCall(tool="echo")]
5858
executor = ToolExecutor(registry=registry, strategy=ShoutStrategy())
5959

examples/mcp_stdio_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Prerequisites
77
-------------
8-
Nothing but `uv` installed the time-server will be fetched on-the-fly
8+
Nothing but `uv` installed - the time-server will be fetched on-the-fly
99
(`uvx mcp-server-time …`).
1010
1111
What it shows

examples/mcp_stdio_example_resources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
-------------
1010
* `server_config.json` must contain a server entry called "sqlite"
1111
that can be started with `uvx` or any other command.
12-
* Run inside the projects virtual-env.
12+
* Run inside the project's virtual-env.
1313
1414
Usage
1515
-----
@@ -63,7 +63,7 @@ async def bootstrap() -> StreamManager:
6363
and return the ready `StreamManager`.
6464
"""
6565
if not CONFIG_FILE.exists():
66-
logger.error("Missing %s add a 'sqlite' server definition first.", CONFIG_FILE)
66+
logger.error("Missing %s - add a 'sqlite' server definition first.", CONFIG_FILE)
6767
raise SystemExit(1)
6868

6969
_, sm = await setup_mcp_stdio(
@@ -119,7 +119,7 @@ def show_prompts(payload: Any) -> None:
119119
for p in prompts:
120120
line = f" • {p.get('name', '<unnamed>')}"
121121
if desc := p.get("description"):
122-
line += f" {desc}"
122+
line += f" - {desc}"
123123
print(line)
124124

125125

0 commit comments

Comments
 (0)