Back to MCP directory
publicPublicdnsLocal runtime

mcp-server-gist

一个基于MCP协议的服务器,封装了GitHub创建Gist的API,可作为MCP工具使用。

article

README

🚀 mcp-server-gist

mcp-server-gist是一个借助MCP创建gist的工具。它封装了GitHub的create gist API,可作为MCP服务器使用,能帮助用户方便地在GitHub上创建gist。

🚀 快速开始

使用该工具前,你需要一个精细粒度的令牌

✨ 主要特性

工具功能

  • create-gist
    • 功能:创建一个gist到你的GitHub账户。
    • 输入参数
      • gistContent(字符串):gist文件的内容。
      • isPublic(布尔值):是否公开,默认为false
      • filename(字符串):gist文件的名称,如果没有指定,则会自动生成。
    • 返回值:gist链接

💻 使用示例

基础用法

以下是使用该工具的配置示例:

{
  "mcpServers": {
    "create-gist": {
      "command": "node",
      "args": [
        "LOCAL_ABSOLUTE_PATH/mcp-server-gist/build/index.js"
      ],
      "env": {
        "GITHUB_GIST_TOKEN": "你的GitHub令牌"
      }
    }
  }
}

请将LOCAL_ABSOLUTE_PATH替换为实际的本地绝对路径,你的GitHub令牌替换为你自己的GitHub令牌。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client