Skip to content

feat: add structured capability types - #30

Merged
dsp-ant merged 1 commit into
mainfrom
davidsp/capabilities
Nov 7, 2024
Merged

feat: add structured capability types#30
dsp-ant merged 1 commit into
mainfrom
davidsp/capabilities

Conversation

@dsp-ant

@dsp-ant dsp-ant commented Nov 6, 2024

Copy link
Copy Markdown
Member

Replace generic capability dictionaries with structured types for prompts,
resources, tools, and roots. This improves type safety and makes capability
features like listChanged and subscribe more explicit in the protocol.

@dsp-ant
dsp-ant requested a review from jspahrsummers November 6, 2024 23:14
@dsp-ant
dsp-ant force-pushed the davidsp/capabilities branch 5 times, most recently from 004581b to 3ad24ae Compare November 6, 2024 23:47
@dsp-ant dsp-ant linked an issue Nov 7, 2024 that may be closed by this pull request
Comment thread mcp_python/types.py Outdated
Comment thread mcp_python/types.py Outdated
@dsp-ant
dsp-ant force-pushed the davidsp/capabilities branch from 3ad24ae to 383725a Compare November 7, 2024 14:47
Replace generic capability dictionaries with structured types for prompts,
resources, tools, and roots. This improves type safety and makes capability
features like listChanged and subscribe more explicit in the protocol.
@dsp-ant
dsp-ant force-pushed the davidsp/capabilities branch from 383725a to 5497da0 Compare November 7, 2024 14:49
@dsp-ant
dsp-ant merged commit b0787fd into main Nov 7, 2024
@dsp-ant
dsp-ant deleted the davidsp/capabilities branch November 7, 2024 14:51
ksteiny pushed a commit to ksteiny/python-sdk that referenced this pull request Dec 5, 2025
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.

Turn ClientCapabilities and ServerCapabilities fields into real models

2 participants