We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c54c9db commit cfe2d77Copy full SHA for cfe2d77
src/mcp_shell_server/server.py
@@ -100,10 +100,11 @@ async def run_tool(self, arguments: dict) -> Sequence[TextContent]:
100
101
# Add stderr if present and not a process group message
102
stderr = result.get("stderr")
103
- if stderr and not stderr.startswith("bash: cannot set terminal process group"):
+ if stderr and not stderr.startswith(
104
+ "bash: cannot set terminal process group"
105
+ ):
106
content.append(TextContent(type="text", text=stderr))
107
-
108
except asyncio.TimeoutError as e:
109
raise ValueError(f"Command timed out after {timeout} seconds") from e
110
0 commit comments