Skip to content

fix: request.get -> requests.get + thread-safe MCPManager#818

Open
Jah-yee wants to merge 3 commits intoQwenLM:mainfrom
Jah-yee:main
Open

fix: request.get -> requests.get + thread-safe MCPManager#818
Jah-yee wants to merge 3 commits intoQwenLM:mainfrom
Jah-yee:main

Conversation

@Jah-yee
Copy link
Copy Markdown

@Jah-yee Jah-yee commented Mar 10, 2026

Description

Fix 1: Issue #825 - request.get -> requests.get

The issue #825 mentions that request.get should be requests.get for accuracy, as the requests library is the standard way to make HTTP requests in Python.

Fixed in:

  • qwen_agent/llm/openvino.py
  • qwen-agent-docs/website/content/en/guide/get_started/quickstart.md

Fix 2: MCPManager thread safety

The MCPManager class in qwen_agent/tools/mcp_manager.py uses a singleton pattern that is not thread-safe. Added a class-level threading lock to ensure atomic instance creation.

Testing

Both are documentation and code quality fixes - no functional changes to the core logic.

Jah-yee and others added 2 commits March 12, 2026 07:37
The code example incorrectly uses request.get instead of requests.get.
This fixes issue QwenLM#825.
The issue QwenLM#825 mentions that request.get should be requests.get
for accuracy, as the requests library is the standard way to
make HTTP requests in Python.
@Jah-yee Jah-yee changed the title fix: make MCPManager singleton thread-safe fix: request.get -> requests.get + thread-safe MCPManager Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants