Fix Metadata delegation in DelegatingMcpServerTool/Prompt/Resource (#1338)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
This commit is contained in:
parent
34d4cd7552
commit
79b2dbeb20
3 changed files with 188 additions and 0 deletions
|
|
@ -23,6 +23,9 @@ public abstract class DelegatingMcpServerPrompt : McpServerPrompt
|
|||
/// <inheritdoc />
|
||||
public override Prompt ProtocolPrompt => _innerPrompt.ProtocolPrompt;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override IReadOnlyList<object> Metadata => _innerPrompt.Metadata;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override ValueTask<GetPromptResult> GetAsync(
|
||||
RequestContext<GetPromptRequestParams> request,
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@ public abstract class DelegatingMcpServerResource : McpServerResource
|
|||
/// <inheritdoc />
|
||||
public override ResourceTemplate ProtocolResourceTemplate => _innerResource.ProtocolResourceTemplate;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override IReadOnlyList<object> Metadata => _innerResource.Metadata;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool IsMatch(string uri) => _innerResource.IsMatch(uri);
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ public abstract class DelegatingMcpServerTool : McpServerTool
|
|||
/// <inheritdoc />
|
||||
public override Tool ProtocolTool => _innerTool.ProtocolTool;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override IReadOnlyList<object> Metadata => _innerTool.Metadata;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override ValueTask<CallToolResult> InvokeAsync(
|
||||
RequestContext<CallToolRequestParams> request,
|
||||
|
|
|
|||
Loading…
Reference in a new issue