fix(mcp): Handle `None` arguments in tool and prompt handlers by alexander-alderman-webb · Pull Request #7387 · getsentry/sentry-python · GitHub
Skip to content

fix(mcp): Handle None arguments in tool and prompt handlers - #7387

Open
alexander-alderman-webb wants to merge 1 commit into
webb/mcp/inline-extract_handler_data_from_argsfrom
webb/mcp/allow-none-arguments
Open

fix(mcp): Handle None arguments in tool and prompt handlers#7387
alexander-alderman-webb wants to merge 1 commit into
webb/mcp/inline-extract_handler_data_from_argsfrom
webb/mcp/allow-none-arguments

Conversation

@alexander-alderman-webb

Copy link
Copy Markdown
Contributor

Description

Just following the types, arguments can be None. For example:

https://github.com/modelcontextprotocol/python-sdk/blob/d060b36e1d095ef6e93e07ba5d59bb69b2ad449a/src/mcp-types/mcp_types/_types.py#L1449-L1453

The prompt case is recorded in the reported issue.

Issues

Closes #7374

Reminders

@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner September 4, 2026 12:53
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

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.

MCP integration: prompts/get without arguments crashes with 'NoneType' object has no attribute 'items' (mcp v1 server, positional arguments=None)

1 participant