Skip to content

Index up to 100 valid MCP tools per server - #8

Open
APIAcre wants to merge 1 commit into
AgentTools-Cloud:mainfrom
APIAcre:fix/mcp-tool-inventory-cap
Open

Index up to 100 valid MCP tools per server#8
APIAcre wants to merge 1 commit into
AgentTools-Cloud:mainfrom
APIAcre:fix/mcp-tool-inventory-cap

Conversation

@APIAcre

@APIAcre APIAcre commented Aug 21, 2026

Copy link
Copy Markdown

Summary

  • retain a bounded per-server tool inventory
  • increase the cap from 60 to 100 capabilities
  • apply the cap after invalid tool rows are skipped
  • add regression coverage for both bounds

Why

The health probe records the full tool_count but stores only the first 60 advertised rows. Conformant servers with more than 60 tools therefore expose an internally inconsistent public record and silently lose valid capabilities from tool-level discovery. A 100-row limit remains bounded while covering larger legitimate servers.

Verification

PYTHONPATH=. python -m unittest discover -s tests -v

All 25 tests pass.

@APIAcre
APIAcre marked this pull request as ready for review August 21, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant