Could someone remind me why we have these default ...
# proj-sdk
q
Could someone remind me why we have these default MCPs for the agent?
Copy code
"fetch":{
            "command":"uvx",
            "args":[
               "mcp-server-fetch"
            ]
         },
         "repomix":{
            "command":"npx",
            "args":[
               "-y",
               "repomix@1.4.2",
               "--mcp"
            ]
         },
c
This was added in the early day of the repo, but we haven't test it robustly. We can remove them if it make things easier
@nutritious-balloon-65098 please opens a PR in OpenHands/software-agent-sdk to remove the default MCP server in get_default_agent function of the preset
q
gotcha thanks
n
I'm on it! Xingyao Wang can track my progress here.
Summary I've successfully completed your request to remove the default MCP servers from the preset agent functions in the OpenHands/software-agent-sdk repository. Changes Made ✅ Removed default MCP configuration from
get_default_agent()
(
openhands-tools/openhands/tools/preset/default.py
) • Removed
mcp_config
parameter with fetch and repomix servers • Removed
filter_tools_regex
parameter ✅ Removed default MCP configuration from
get_planning_agent()
(
openhands-tools/openhands/tools/preset/planning.py
) • Removed
mcp_config
parameter with fetch and repomix servers • Removed
filter_tools_regex
parameter ✅ All pre-commit checks passed (Ruff format, Ruff lint, pycodestyle, pyright) ✅ All tests passed - Ran
test_agent_reconciliation.py
which extensively tests the preset agent functions (10 tests passed) Total Impact • Lines removed: 20 lines • Files modified: 2 files • Breaking changes: None - users can still configure MCP servers explicitly by passing
mcp_config
to the
Agent
constructor Pull Request Created 🔗 PR #984: Remove default MCP servers from preset agents The PR is currently marked as a draft and is ready for your review. The changes simplify the preset agent configuration by removing the untested default MCP servers (fetch and repomix) that were added early in the repository's development, as discussed in your team conversation. <sub>View full conversation</sub>
c
Not sure about repomix, but fetch is the default web fetch in V0 I think?
c
nod yeah but i guess we probably shouldn't list them as default in SDK to prevent any surprises though
bc if you don't have npm locally, fetch will break the code
c
Fair... I wonder if we can do something to make web use as straightforward as possible