Skip to content

[Capability] Extract shared element name/description resolution - #481

Merged
chr-hertel merged 1 commit into
modelcontextprotocol:mainfrom
chr-hertel:fix/issue-13-metadata-dedup
Aug 24, 2026
Merged

[Capability] Extract shared element name/description resolution#481
chr-hertel merged 1 commit into
modelcontextprotocol:mainfrom
chr-hertel:fix/issue-13-metadata-dedup

Conversation

@chr-hertel

Copy link
Copy Markdown
Member

The $name = ... '__invoke' === $methodName ... / $description = ... derivation was copy-pasted four times in Discoverer::processMethod() and four more in ReflectedElementLoader::load(). Both now consume a single ElementMetadataResolver; the closure-case fallbacks (closure_tool_* etc.) stay inline as before. Behavior unchanged.

The injectable-parameter drift half of the underlying issue (phantom ClientGateway schema property) is fixed separately in the companion PR for chr-hertel#25.

Fork issue: chr-hertel#13

@chr-hertel chr-hertel added the Server Issues & PRs related to the Server component label Aug 24, 2026
@chr-hertel
chr-hertel merged commit ff0b5fa into modelcontextprotocol:main Aug 24, 2026
50 of 52 checks passed
@chr-hertel
chr-hertel deleted the fix/issue-13-metadata-dedup branch August 24, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Server Issues & PRs related to the Server component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant