Skip to content

Commit 6a2735d

Browse files
committed
fix: resolve ruff lint errors in client_connection example
1 parent 4cc3e0b commit 6a2735d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • packages/mcp/examples/client_connection

packages/mcp/examples/client_connection/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
- Tool calling on authenticated servers
1111
"""
1212

13-
import asyncio
1413
import os
1514
from contextlib import asynccontextmanager
1615

@@ -116,13 +115,13 @@ async def homepage(request: Request) -> HTMLResponse:
116115
</form>
117116
"""
118117
elif session.is_failed:
119-
html += f"""
118+
html += """
120119
<h2>Connection Failed</h2>
121120
<p>The connection to the MCP server failed.</p>
122121
<p><a href="/reconnect">Try Reconnecting</a></p>
123122
"""
124123
else:
125-
html += f"""
124+
html += """
126125
<h2>Connecting...</h2>
127126
<p>Connection in progress. <a href="/">Refresh</a> to check status.</p>
128127
"""

0 commit comments

Comments
 (0)