Skip to content

Fix zero-argument prompt handling - #436

Open
avinashgola wants to merge 1 commit into
exa-labs:mainfrom
avinashgola:codex/fix-zero-argument-prompt
Open

avinashgola wants to merge 1 commit into
exa-labs:mainfrom
avinashgola:codex/fix-zero-argument-prompt

Conversation

@avinashgola

Copy link
Copy Markdown

Summary

  • register web_search_help as a true no-argument prompt so clients may omit params.arguments
  • add a regression test that exercises the SDK prompts/get handler without an arguments object

Verification

  • npx vitest run tests/unit/mcp-handler.test.ts
  • npm run format:check
  • npm run typecheck
  • npm test

Closes #358

This branch has not been deployed

No deployments
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.

prompts/get rejects omitted optional arguments for zero-argument prompt web_search_help

1 participant