jd-opensource / jd-opensource/OxyGent
关于StdioMCPClient
Open
- Dominant language
- Python
- Stars
- 2.1k
- Forks
- 278
- PR merge metrics
- No merged PRs in 30d
Description
## Issue content
> 在一个mcptool中,使用subprocess执行一个命令,一般命令都可以执行,但执行python XXXX.py时会卡住,永远执行不下去,但直接调用这个函数或使用FunctionHub就正常运行,后来发现单独将mcp sse启动,然后使用SSEMCPClient也没问题,不清楚是哪里的原因
try:
# 3. 启动进程
process = subprocess.Popen(
command,
cwd=target_dir,
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
shell=True,
text=False,
bufsize=0
)
Contributor guide
Assessment
This issue has not been assessed yet.