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 8f4e6df commit 947935bCopy full SHA for 947935b
src/mcp_shell_server/server.py
@@ -98,11 +98,9 @@ async def run_tool(self, arguments: dict) -> Sequence[TextContent]:
98
if result.get("stdout"):
99
content.append(TextContent(type="text", text=result["stdout"]))
100
101
- # Add stderr if present and not a process group message
+ # Add stderr if present (filter out specific messages)
102
stderr = result.get("stderr")
103
- if stderr and not stderr.startswith(
104
- "bash: cannot set terminal process group"
105
- ):
+ if stderr and "cannot set terminal process group" not in stderr:
106
content.append(TextContent(type="text", text=stderr))
107
108
except asyncio.TimeoutError as e:
0 commit comments