# NousResearch/hermes-agent · MCP Python-SDK tool results sent twice bug

## Open now

- 1 issue, 2 PRs open on GitHub.
- #124451: \[Bug\]: MCP results from Python-SDK servers (\`-> str\` / \`-> list\`) reach the model twice since #116693
- PR #124452: fix(mcp): send a Python-SDK tool result once, not twice
- PR #124493: fix(mcp): dedupe SDK results without flattening typed values (#124451)

A bug where MCP tool results from Python-SDK servers are duplicated before reaching the model, introduced in a specific change. Multiple fix attempts address deduplication without incorrectly flattening typed values.

## TL;DR

- 5 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 2 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #124451: \[Bug\]: MCP results from Python-SDK servers (\`-> str\` / \`-> list\`) reach the model twice since #116693

## Prior & competing PRs

- **#124452: fix(mcp): send a Python-SDK tool result once, not twice**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `bc954fcee0`, `65f1a73ba1`, `bc954fcee0`, `#124493`
  - files: `tests/tools/test_mcp_structured_content.py`, `tools/mcp_tool_handlers.py`, `website/docs/user-guide/features/plugins.md`
- **#124484: fix(mcp): dedupe SDK results without flattening values**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#124485`, `#124485`, `#124451`
- **#124485: fix(mcp): dedupe SDK results without flattening values**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#124484`, `#124484`, `#124484`
- **#124493: fix(mcp): dedupe SDK results without flattening typed values (#124451)**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `tests/tools/test_mcp_structured_content.py`, `tools/mcp_tool_handlers.py`, `website/docs/user-guide/features/plugins.md`

## Fix status

- No merged fix on record.
- Subsystem: `mcp`
