Skip to content

Commit 1c10267

Browse files
committed
Update run_mcp_qwen3.py
1 parent e68cfaa commit 1c10267

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

community_usecase/qwen3_mcp/run_mcp_qwen3.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,18 @@ async def main():
267267

268268
# Set default task - a simple example query
269269
default_task = (
270-
"部署一个网页,显示你好。"
270+
"Visit the Qwen3 GitHub repository, summarize the introduction of the repository."
271+
"Write a comprehensive HTML documentation site with the following features:"
272+
"A clear introduction to Qwen3"
273+
"Well-organized sections of the technical documentation"
274+
"Practical code examples"
275+
"A visually appealing purple technology theme (e.g. modern, clean, purple-accented design)"
276+
"Finally, deploy the HTML site and open it in the browser."
271277
)
272278

273279
# Use command line argument if provided, otherwise use default task
274280
task = sys.argv[1] if len(sys.argv) > 1 else default_task
275281

276-
# 创建 MCP 工具包实例
277282
mcp_toolkit = MCPToolkit(config_path=str(config_path))
278283

279284
try:
@@ -302,7 +307,6 @@ async def main():
302307
except Exception as e:
303308
print(Fore.RED + f"Error occurred: {e}")
304309
finally:
305-
# 使用单一的方法处理关闭连接
306310
print(Fore.YELLOW + "Shutting down connections...")
307311
try:
308312
await asyncio.wait_for(
@@ -317,7 +321,6 @@ async def main():
317321
except Exception as e:
318322
print(Fore.RED + f"Error during disconnect: {e}")
319323

320-
# 确保有机会清理
321324
try:
322325
await asyncio.sleep(0.5)
323326
except:

0 commit comments

Comments
 (0)