mcp-github-server

mcp-github-server

使用GitHub API实现的Model Context Protocol服务器

简介

MCP-GitHub-Server 是一个使用 GitHub API 实现的 Model Context Protocol 服务器。

安装

npm install mcp-github-server

基本使用

const { MCPGitHubServer } = require('mcp-github-server');

// 创建服务器实例
const server = new MCPGitHubServer({
  token: 'your-github-token',
  owner: 'your-username',
  repo: 'your-repository'
});

// 启动服务器
server.start({ port: 3000 });

配置选项

参数说明类型默认值
tokenGitHub 个人访问令牌string-
owner仓库所有者string-
repo仓库名称string-
branch分支名称string'main'

更多资源