add_gist_comment
Add a comment to a gist
Keep notes and snippets in GitHub Gists and change them in place: find-and-replace inside one file, add or rename files, and answer the comments people leave.
LABSCO SUMMARY
edit_gist_file takes old_string and new_string and stops when the match is not unique unless replace_all is passed, which is what makes it safe to point an agent at a long note. The server keeps its own cache of your gists, and refresh_gists is there because another client can change them behind its back. The default listing hides daily notes, prompts and archived gists, so something you cannot find in the list may still be reachable by id.
A server over your GitHub Gists — gist and file lifecycle, targeted edits and comment threads — in 16 tools.
GITHUB_TOKEN for the account whose gists you want reachable. MIT.
One command plus a key — npx -y gistpad-mcp, then supply credentials
USE CASES
Find the gist in the listing, read the file you are changing, and replace the exact string — the edit fails rather than guessing when that string appears more than once.
Create the gist public or secret, add the extra files it needs, and give it a description that will still make sense when it turns up in the listing months later.
Read the thread, reply in place, and correct your own comment rather than posting a second one underneath it.
Rename files into something consistent, drop the ones that no longer belong, and refresh the server's cache so changes made from another client are visible.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add_gist_commentAdd a comment to a gist
add_gist_fileAdd a new file to a gist
create_gistCreate a new GitHub Gist
delete_gistDelete a GitHub Gist by ID
delete_gist_commentDelete a comment from a gist
delete_gist_fileDelete a file from a gist
duplicate_gistCreate a copy of an existing gist
edit_gist_commentUpdate the content of an existing gist comment
edit_gist_fileEdit a file in a gist using find-and-replace. More efficient than update_gist_file for targeted changes. The old_string must uniquely identify the text to replace - if multiple matches exist, the edit will fail unless replace_all is true.
get_gistGet the full contents of a GitHub Gist by ID (including file contents).
list_gist_commentsList all comments on a gist
list_gistsList all of your GitHub Gists (excluding daily notes, prompts, and archived gists)
refresh_gistsRefresh the server's cache of gists, to ensure it picks up any changes made by external clients.
rename_gist_fileRename a file in a gist
update_gist_descriptionUpdate a GitHub Gist's description
update_gist_fileUpdate the content of a file in a gist
BEFORE YOU INSTALL
16 tools when we connected; the project documents 30. Four tool sets are off by default: --daily adds five daily-note tools, while --starred, --archived and --prompts add three each. The prompt tools are named add_gist_prompt and delete_gist_prompt, not add_prompt and delete_prompt.
INSTALLATION
npx -y gistpad-mcpInstall the GistPad extension from https://aka.ms/gistpad, reload VS Code, open the GistPad tab and sign in with your GitHub account
{
"mcpServers": {
"gistpad": {
"command": "npx",
"args": [
"-y",
"gistpad-mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_PAT>"
}
}
}
}{
"mcpServers": {
"gistpad": {
"command": "npx",
"args": [
"-y",
"gistpad-mcp",
"--daily",
"--starred",
"--archived",
"--prompts"
],
"env": {
"GITHUB_TOKEN": "<YOUR_PAT>"
}
}
}
}