Skip to content

feat: Enable arrays for MCP tool arguments - #101

Merged
carlesonielfa merged 1 commit into
mainfrom
enable-arrays-mcp
Aug 17, 2026
Merged

carlesonielfa merged 1 commit into
mainfrom
enable-arrays-mcp

Conversation

@carlesonielfa

Copy link
Copy Markdown
Contributor

Summary

Fixes NUCLIADB-AGENTIC-API-27.

Smart Agent correctly discovered and exposed configured MCP tools, but Hyperforge’s MCP tool conversion rebuilt parameter schemas using only type and description. This discarded JSON Schema details required by the LLM API.

For the Hugging Face MCP hub_repo_search tool, the repo_types array parameter lost its required items schema, causing the planner request to fail with invalid_function_parameters.

The MCP conversion now preserves full parameter schemas from the MCP tool definition, including:

  • Array item schemas
  • Enum values
  • Nested object schemas
  • Other JSON Schema constraints

Testing

Added a regression test for an MCP tool with the Hugging Face-style repo_types array parameter, asserting its items schema is retained during MCP function publication.

@carlesonielfa
carlesonielfa requested a review from a team August 17, 2026 12:46
@carlesonielfa
carlesonielfa added this pull request to the merge queue Aug 17, 2026
Merged via the queue into main with commit 27201a8 Aug 17, 2026
4 checks passed
@carlesonielfa
carlesonielfa deleted the enable-arrays-mcp branch August 17, 2026 12:58
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.

2 participants