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

Function MarshalledTextResult

pkg/github/server.go:195–202  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

193}
194
195func MarshalledTextResult(v any) *mcp.CallToolResult {
196 data, err := json.Marshal(v)
197 if err != nil {
198 return utils.NewToolResultErrorFromErr("failed to marshal text result to json", err)
199 }
200
201 return utils.NewToolResultText(string(data))
202}

Callers 15

CreateOrUpdateFileFunction · 0.85
GetIssueFunction · 0.85
GetIssueCommentsFunction · 0.85
GetIssueParentFunction · 0.85
ListIssuesFunction · 0.85
createProjectFunction · 0.85
createIterationFieldFunction · 0.85
GetPullRequestFunction · 0.85
GetPullRequestFilesFunction · 0.85
GetPullRequestCommitsFunction · 0.85

Calls 2

NewToolResultTextFunction · 0.92

Tested by

no test coverage detected