# Gist

> GitHub Gist is a service provided by GitHub that allows users to share code snippets, notes, and other text-based content. It supports both public and pri…

GitHub Gist is a service provided by GitHub that allows users to share code snippets, notes, and other text-based content. It supports both public and private gists, enabling easy sharing and collaboration.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**Gist** authenticates with an API key. Generate the credential in your Gist account, then paste it into FlyMyAI the first time an agent uses a Gist action.

[Get your Gist credential →](https://app.getgist.com)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `Personal Access Token` | A personal access token generated from GitHub with the 'gist' scope enabled. _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `GIST_CHECK_GIST_STAR` | Tool to check if a gist is starred. Use when you need to determine if the authenticated user has starred a specific gist. | `gist_id` |
| `GIST_DELETE_GIST_COMMENT` | Tool to delete a comment on a gist. Use when you have both the gist_id and comment_id and want to remove that comment. Example prompt: "Delete comment 42 from gist 'aa5a315d61ae9438b18d'". | `gist_id`, `comment_id` |
| `GIST_GET_GIST` | Tool to retrieve a specific gist by its ID. Use when you have a gist_id and need complete gist details. | `gist_id` |
| `GIST_GET_GIST_COMMENT` | Tool to get a specific comment on a gist. Use when you need to retrieve details of a particular comment given gist_id and comment_id. | `gist_id`, `comment_id` |
| `GIST_GET_GIST_REVISION` | Tool to retrieve a specific gist revision. Use when you need details of a past state for an existing gist by commit SHA. | `gist_id`, `sha` |
| `GIST_LIST_GISTS` | Tool to list the authenticated user's gists or all public gists if called anonymously. Use after setting a valid GitHub token in headers. | - |
| `GIST_LIST_GIST_COMMENTS` | Tool to list comments on a gist. Use after confirming the gist_id to retrieve comments for a specific gist. Example: 'List comments for gist abc123'. | `gist_id` |
| `GIST_LIST_GIST_COMMITS` | Tool to list the commit history of a gist. Use after you have the gist ID to review its revisions. | `gist_id` |
| `GIST_LIST_GIST_FORKS` | Tool to list forks of a gist. Use after obtaining a gist_id to retrieve all forks for the gist. | `gist_id` |
| `GIST_LIST_STARRED_GISTS` | Tool to list the authenticated user's starred gists. Use when you need to retrieve all gists the user has starred. | - |
| `GIST_LIST_USER_GISTS` | Tool to list public gists for a specified GitHub user. Use when you have a username and need their gists. | `username` |
| `GIST_UNSTAR_GIST` | Tool to unstar a gist. Use after confirming the gist has been previously starred. | `gist_id` |
| `GIST_UPDATE_GIST_COMMENT` | Tool to update a Gist comment. Use when you need to modify an existing comment after confirming the gist_id and comment_id. | `gist_id`, `comment_id`, `body` |

## Links

- [Gist website](https://gist.github.com/)
- [Get API key / credential](https://app.getgist.com)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
