MCPcopy
hub / github.com/github/github-mcp-server / NewToolResultResourceLink

Function NewToolResultResourceLink

pkg/utils/result.go:51–61  ·  view source on GitHub ↗
(message string, link *mcp.ResourceLink)

Source from the content-addressed store, hash-verified

49}
50
51func NewToolResultResourceLink(message string, link *mcp.ResourceLink) *mcp.CallToolResult {
52 return &mcp.CallToolResult{
53 Content: []mcp.Content{
54 &mcp.TextContent{
55 Text: message,
56 },
57 link,
58 },
59 IsError: false,
60 }
61}
62
63// NewToolResultAwaitingFormSubmission signals to the agent that a tool call
64// has been intercepted to show an MCP App form to the user and has NOT

Callers 1

GetFileContentsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected