Skip to content

关于StdioMCPClient #86

@ryh114514

Description

@ryh114514

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
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions