Skip to content

Emit strict object-shaped input schemas for MCP tools; remove integer types; add schema test#5

Open
alexmahrou wants to merge 1 commit into
mainfrom
codex/fix-mcp-tool-schemas-for-codex-compatibility
Open

Emit strict object-shaped input schemas for MCP tools; remove integer types; add schema test#5
alexmahrou wants to merge 1 commit into
mainfrom
codex/fix-mcp-tool-schemas-for-codex-compatibility

Conversation

@alexmahrou
Copy link
Copy Markdown
Owner

Summary

  • generate strict tool argument schemas with tool_with_args and dynamic models
  • normalize tools/list output to always use object schemas and drop integer types
  • add regression test enforcing object-shaped schemas

Testing

  • pytest -q (fails: ToolError: endpoint requires authentication)
  • pytest tests/tests_tool_schemas.py -q

https://chatgpt.com/codex/tasks/task_e_689d3d3f2834832ea9c256b00c44b3a1

@alexmahrou alexmahrou force-pushed the codex/fix-mcp-tool-schemas-for-codex-compatibility branch 2 times, most recently from cf2a504 to a31c35b Compare August 24, 2025 12:38
@alexmahrou alexmahrou force-pushed the codex/fix-mcp-tool-schemas-for-codex-compatibility branch from a31c35b to 8c933cb Compare September 2, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant