60aef5d2e3
Move from `mark3labs/mcp-go` to `modelcontextprotocol/go-sdk`. This is mostly focused on updating tool schema and tool handler signatures, along with any associated internal changes related to those changes. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com> Co-authored-by: LuluBeatson <lulubeatson@github.com> Co-authored-by: Lulu <59149422+LuluBeatson@users.noreply.github.com> Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com> Co-authored-by: Sam Morrow <info@sam-morrow.com>
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
{
|
|
"annotations": {
|
|
"readOnlyHint": true,
|
|
"title": "Get file or directory contents"
|
|
},
|
|
"description": "Get the contents of a file or directory from a GitHub repository",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"owner",
|
|
"repo"
|
|
],
|
|
"properties": {
|
|
"owner": {
|
|
"type": "string",
|
|
"description": "Repository owner (username or organization)"
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"description": "Path to file/directory (directories must end with a slash '/')",
|
|
"default": "/"
|
|
},
|
|
"ref": {
|
|
"type": "string",
|
|
"description": "Accepts optional git refs such as `refs/tags/{tag}`, `refs/heads/{branch}` or `refs/pull/{pr_number}/head`"
|
|
},
|
|
"repo": {
|
|
"type": "string",
|
|
"description": "Repository name"
|
|
},
|
|
"sha": {
|
|
"type": "string",
|
|
"description": "Accepts optional commit SHA. If specified, it will be used instead of ref"
|
|
}
|
|
}
|
|
},
|
|
"name": "get_file_contents"
|
|
} |