workos-github-mcp-server 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- workos_github_mcp_server-1.0.0/LICENSE +21 -0
- workos_github_mcp_server-1.0.0/PKG-INFO +194 -0
- workos_github_mcp_server-1.0.0/README.md +168 -0
- workos_github_mcp_server-1.0.0/pyproject.toml +49 -0
- workos_github_mcp_server-1.0.0/setup.cfg +4 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/__init__.py +26 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/__main__.py +4 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/client.py +576 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/config.py +54 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/server.py +60 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/tools/__init__.py +1 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/tools/commits.py +35 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/tools/gists.py +45 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/tools/issues.py +139 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/tools/pulls.py +84 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/tools/repos.py +71 -0
- workos_github_mcp_server-1.0.0/src/github_mcp_server/tools/users.py +26 -0
- workos_github_mcp_server-1.0.0/src/workos_github_mcp_server.egg-info/PKG-INFO +194 -0
- workos_github_mcp_server-1.0.0/src/workos_github_mcp_server.egg-info/SOURCES.txt +23 -0
- workos_github_mcp_server-1.0.0/src/workos_github_mcp_server.egg-info/dependency_links.txt +1 -0
- workos_github_mcp_server-1.0.0/src/workos_github_mcp_server.egg-info/entry_points.txt +2 -0
- workos_github_mcp_server-1.0.0/src/workos_github_mcp_server.egg-info/requires.txt +2 -0
- workos_github_mcp_server-1.0.0/src/workos_github_mcp_server.egg-info/top_level.txt +1 -0
- workos_github_mcp_server-1.0.0/tests/test_client.py +121 -0
- workos_github_mcp_server-1.0.0/tests/test_repos.py +75 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 WorkOS Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: workos-github-mcp-server
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: MCP server for GitHub operations — manage repos, issues, pull requests, commits, gists, and more.
|
|
5
|
+
Author: WorkOS Contributors
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/workos/workos-github-mcp-server
|
|
8
|
+
Project-URL: Repository, https://github.com/workos/workos-github-mcp-server
|
|
9
|
+
Project-URL: Issues, https://github.com/workos/workos-github-mcp-server/issues
|
|
10
|
+
Keywords: mcp,github,model-context-protocol,ai-tools,devtools
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: fastmcp>=2.0.0
|
|
24
|
+
Requires-Dist: httpx>=0.27.0
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# GitHub MCP Server
|
|
28
|
+
|
|
29
|
+
<!-- mcp-name: io.github.workos/github-mcp-server -->
|
|
30
|
+
|
|
31
|
+
A production-ready [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for GitHub operations. Connect any AI agent to GitHub — manage repos, issues, pull requests, commits, gists, search code, and look up user profiles.
|
|
32
|
+
|
|
33
|
+
**This is an independent, generalized MCP server.** It is not tied to any specific project and can be connected to any AI agent that supports MCP (Claude Desktop, Cursor, WorkOS, or custom agents).
|
|
34
|
+
|
|
35
|
+
## Features
|
|
36
|
+
|
|
37
|
+
- 📦 **Repositories**: List, search, and get repo details
|
|
38
|
+
- 🐛 **Issues**: Create, read, update, search issues
|
|
39
|
+
- 🔀 **Pull Requests**: List, create, and inspect PRs
|
|
40
|
+
- 📝 **Commits**: Browse commit history
|
|
41
|
+
- 🔍 **Search**: Search code and issues across GitHub
|
|
42
|
+
- 👤 **Users**: Look up user profiles
|
|
43
|
+
- 📋 **Gists**: List and create gists
|
|
44
|
+
|
|
45
|
+
## Installation
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pip install workos-github-mcp-server
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Or install from source:
|
|
52
|
+
```bash
|
|
53
|
+
git clone https://github.com/workos/workos-github-mcp-server
|
|
54
|
+
cd workos-github-mcp-server
|
|
55
|
+
pip install -e .
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Quick Start
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
export GITHUB_TOKEN="ghp_your-personal-access-token"
|
|
62
|
+
|
|
63
|
+
# Run the server
|
|
64
|
+
github-mcp-server
|
|
65
|
+
|
|
66
|
+
# Or run as a Python module
|
|
67
|
+
python -m github_mcp_server
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Configuration
|
|
71
|
+
|
|
72
|
+
### Environment Variables
|
|
73
|
+
|
|
74
|
+
| Variable | Required | Description |
|
|
75
|
+
|----------|----------|-------------|
|
|
76
|
+
| `GITHUB_TOKEN` | ✅ Yes | GitHub Personal Access Token (`ghp_...` or `github_pat_...`) |
|
|
77
|
+
|
|
78
|
+
### Getting a GitHub Token
|
|
79
|
+
|
|
80
|
+
1. Go to [github.com/settings/tokens](https://github.com/settings/tokens)
|
|
81
|
+
2. Click **"Generate new token (classic)"** or **"Fine-grained tokens"**
|
|
82
|
+
3. Select scopes:
|
|
83
|
+
- `repo` — full repository access (issues, PRs, commits)
|
|
84
|
+
- `gist` — create and list gists
|
|
85
|
+
- `read:user` — read user profiles
|
|
86
|
+
4. Copy the generated token
|
|
87
|
+
|
|
88
|
+
## Connecting to AI Agents
|
|
89
|
+
|
|
90
|
+
### Claude Desktop
|
|
91
|
+
|
|
92
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"mcpServers": {
|
|
97
|
+
"github": {
|
|
98
|
+
"command": "github-mcp-server",
|
|
99
|
+
"env": {
|
|
100
|
+
"GITHUB_TOKEN": "ghp_your-token"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Cursor
|
|
108
|
+
|
|
109
|
+
Add to `.cursor/mcp.json`:
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"mcpServers": {
|
|
114
|
+
"github": {
|
|
115
|
+
"command": "github-mcp-server",
|
|
116
|
+
"env": {
|
|
117
|
+
"GITHUB_TOKEN": "ghp_your-token"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### WorkOS / Custom Agents
|
|
125
|
+
|
|
126
|
+
Add to `.mcp.json`:
|
|
127
|
+
|
|
128
|
+
```json
|
|
129
|
+
{
|
|
130
|
+
"mcpServers": {
|
|
131
|
+
"github": {
|
|
132
|
+
"transport": "stdio",
|
|
133
|
+
"command": "python",
|
|
134
|
+
"args": ["-m", "github_mcp_server"],
|
|
135
|
+
"env": {
|
|
136
|
+
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Available Tools (15)
|
|
144
|
+
|
|
145
|
+
| Tool | Description |
|
|
146
|
+
|------|-------------|
|
|
147
|
+
| `github_list_repos` | List repositories for a user or the authenticated user |
|
|
148
|
+
| `github_get_repo` | Get detailed repository information |
|
|
149
|
+
| `github_search_repos` | Search repositories across GitHub |
|
|
150
|
+
| `github_list_issues` | List issues in a repository |
|
|
151
|
+
| `github_create_issue` | Create a new issue |
|
|
152
|
+
| `github_get_issue` | Get issue details |
|
|
153
|
+
| `github_update_issue` | Update an existing issue |
|
|
154
|
+
| `github_search_issues` | Search issues and PRs across GitHub |
|
|
155
|
+
| `github_list_pull_requests` | List pull requests in a repository |
|
|
156
|
+
| `github_get_pull_request` | Get pull request details |
|
|
157
|
+
| `github_create_pull_request` | Create a new pull request |
|
|
158
|
+
| `github_list_commits` | List recent commits |
|
|
159
|
+
| `github_list_gists` | List gists for the authenticated user |
|
|
160
|
+
| `github_create_gist` | Create a new gist |
|
|
161
|
+
| `github_get_user` | Get user profile information |
|
|
162
|
+
|
|
163
|
+
## Development
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
git clone https://github.com/workos/workos-github-mcp-server
|
|
167
|
+
cd workos-github-mcp-server
|
|
168
|
+
pip install -e .
|
|
169
|
+
|
|
170
|
+
# Run tests
|
|
171
|
+
pytest
|
|
172
|
+
|
|
173
|
+
# Run the server locally
|
|
174
|
+
GITHUB_TOKEN=ghp_test python -m github_mcp_server
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## Publishing
|
|
178
|
+
|
|
179
|
+
### To PyPI
|
|
180
|
+
```bash
|
|
181
|
+
pip install build twine
|
|
182
|
+
python -m build
|
|
183
|
+
twine upload dist/*
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### To MCP Registry
|
|
187
|
+
```bash
|
|
188
|
+
mcp-publisher login github
|
|
189
|
+
mcp-publisher publish
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## License
|
|
193
|
+
|
|
194
|
+
MIT — see [LICENSE](LICENSE) for details.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# GitHub MCP Server
|
|
2
|
+
|
|
3
|
+
<!-- mcp-name: io.github.workos/github-mcp-server -->
|
|
4
|
+
|
|
5
|
+
A production-ready [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for GitHub operations. Connect any AI agent to GitHub — manage repos, issues, pull requests, commits, gists, search code, and look up user profiles.
|
|
6
|
+
|
|
7
|
+
**This is an independent, generalized MCP server.** It is not tied to any specific project and can be connected to any AI agent that supports MCP (Claude Desktop, Cursor, WorkOS, or custom agents).
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- 📦 **Repositories**: List, search, and get repo details
|
|
12
|
+
- 🐛 **Issues**: Create, read, update, search issues
|
|
13
|
+
- 🔀 **Pull Requests**: List, create, and inspect PRs
|
|
14
|
+
- 📝 **Commits**: Browse commit history
|
|
15
|
+
- 🔍 **Search**: Search code and issues across GitHub
|
|
16
|
+
- 👤 **Users**: Look up user profiles
|
|
17
|
+
- 📋 **Gists**: List and create gists
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pip install workos-github-mcp-server
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Or install from source:
|
|
26
|
+
```bash
|
|
27
|
+
git clone https://github.com/workos/workos-github-mcp-server
|
|
28
|
+
cd workos-github-mcp-server
|
|
29
|
+
pip install -e .
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Quick Start
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
export GITHUB_TOKEN="ghp_your-personal-access-token"
|
|
36
|
+
|
|
37
|
+
# Run the server
|
|
38
|
+
github-mcp-server
|
|
39
|
+
|
|
40
|
+
# Or run as a Python module
|
|
41
|
+
python -m github_mcp_server
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Configuration
|
|
45
|
+
|
|
46
|
+
### Environment Variables
|
|
47
|
+
|
|
48
|
+
| Variable | Required | Description |
|
|
49
|
+
|----------|----------|-------------|
|
|
50
|
+
| `GITHUB_TOKEN` | ✅ Yes | GitHub Personal Access Token (`ghp_...` or `github_pat_...`) |
|
|
51
|
+
|
|
52
|
+
### Getting a GitHub Token
|
|
53
|
+
|
|
54
|
+
1. Go to [github.com/settings/tokens](https://github.com/settings/tokens)
|
|
55
|
+
2. Click **"Generate new token (classic)"** or **"Fine-grained tokens"**
|
|
56
|
+
3. Select scopes:
|
|
57
|
+
- `repo` — full repository access (issues, PRs, commits)
|
|
58
|
+
- `gist` — create and list gists
|
|
59
|
+
- `read:user` — read user profiles
|
|
60
|
+
4. Copy the generated token
|
|
61
|
+
|
|
62
|
+
## Connecting to AI Agents
|
|
63
|
+
|
|
64
|
+
### Claude Desktop
|
|
65
|
+
|
|
66
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
67
|
+
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"mcpServers": {
|
|
71
|
+
"github": {
|
|
72
|
+
"command": "github-mcp-server",
|
|
73
|
+
"env": {
|
|
74
|
+
"GITHUB_TOKEN": "ghp_your-token"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Cursor
|
|
82
|
+
|
|
83
|
+
Add to `.cursor/mcp.json`:
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"mcpServers": {
|
|
88
|
+
"github": {
|
|
89
|
+
"command": "github-mcp-server",
|
|
90
|
+
"env": {
|
|
91
|
+
"GITHUB_TOKEN": "ghp_your-token"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### WorkOS / Custom Agents
|
|
99
|
+
|
|
100
|
+
Add to `.mcp.json`:
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"mcpServers": {
|
|
105
|
+
"github": {
|
|
106
|
+
"transport": "stdio",
|
|
107
|
+
"command": "python",
|
|
108
|
+
"args": ["-m", "github_mcp_server"],
|
|
109
|
+
"env": {
|
|
110
|
+
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Available Tools (15)
|
|
118
|
+
|
|
119
|
+
| Tool | Description |
|
|
120
|
+
|------|-------------|
|
|
121
|
+
| `github_list_repos` | List repositories for a user or the authenticated user |
|
|
122
|
+
| `github_get_repo` | Get detailed repository information |
|
|
123
|
+
| `github_search_repos` | Search repositories across GitHub |
|
|
124
|
+
| `github_list_issues` | List issues in a repository |
|
|
125
|
+
| `github_create_issue` | Create a new issue |
|
|
126
|
+
| `github_get_issue` | Get issue details |
|
|
127
|
+
| `github_update_issue` | Update an existing issue |
|
|
128
|
+
| `github_search_issues` | Search issues and PRs across GitHub |
|
|
129
|
+
| `github_list_pull_requests` | List pull requests in a repository |
|
|
130
|
+
| `github_get_pull_request` | Get pull request details |
|
|
131
|
+
| `github_create_pull_request` | Create a new pull request |
|
|
132
|
+
| `github_list_commits` | List recent commits |
|
|
133
|
+
| `github_list_gists` | List gists for the authenticated user |
|
|
134
|
+
| `github_create_gist` | Create a new gist |
|
|
135
|
+
| `github_get_user` | Get user profile information |
|
|
136
|
+
|
|
137
|
+
## Development
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
git clone https://github.com/workos/workos-github-mcp-server
|
|
141
|
+
cd workos-github-mcp-server
|
|
142
|
+
pip install -e .
|
|
143
|
+
|
|
144
|
+
# Run tests
|
|
145
|
+
pytest
|
|
146
|
+
|
|
147
|
+
# Run the server locally
|
|
148
|
+
GITHUB_TOKEN=ghp_test python -m github_mcp_server
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Publishing
|
|
152
|
+
|
|
153
|
+
### To PyPI
|
|
154
|
+
```bash
|
|
155
|
+
pip install build twine
|
|
156
|
+
python -m build
|
|
157
|
+
twine upload dist/*
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### To MCP Registry
|
|
161
|
+
```bash
|
|
162
|
+
mcp-publisher login github
|
|
163
|
+
mcp-publisher publish
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## License
|
|
167
|
+
|
|
168
|
+
MIT — see [LICENSE](LICENSE) for details.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "workos-github-mcp-server"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "MCP server for GitHub operations — manage repos, issues, pull requests, commits, gists, and more."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "WorkOS Contributors" }
|
|
14
|
+
]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 4 - Beta",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.10",
|
|
20
|
+
"Programming Language :: Python :: 3.11",
|
|
21
|
+
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Programming Language :: Python :: 3.13",
|
|
23
|
+
"Topic :: Software Development :: Libraries",
|
|
24
|
+
"Topic :: Software Development :: Version Control :: Git",
|
|
25
|
+
]
|
|
26
|
+
keywords = ["mcp", "github", "model-context-protocol", "ai-tools", "devtools"]
|
|
27
|
+
|
|
28
|
+
dependencies = [
|
|
29
|
+
"fastmcp>=2.0.0",
|
|
30
|
+
"httpx>=0.27.0",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Homepage = "https://github.com/workos/workos-github-mcp-server"
|
|
35
|
+
Repository = "https://github.com/workos/workos-github-mcp-server"
|
|
36
|
+
Issues = "https://github.com/workos/workos-github-mcp-server/issues"
|
|
37
|
+
|
|
38
|
+
[project.scripts]
|
|
39
|
+
github-mcp-server = "github_mcp_server:main"
|
|
40
|
+
|
|
41
|
+
[tool.setuptools.packages.find]
|
|
42
|
+
where = ["src"]
|
|
43
|
+
|
|
44
|
+
[tool.setuptools.package-dir]
|
|
45
|
+
"" = "src"
|
|
46
|
+
|
|
47
|
+
[tool.pytest.ini_options]
|
|
48
|
+
testpaths = ["tests"]
|
|
49
|
+
asyncio_mode = "auto"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""
|
|
2
|
+
GitHub MCP Server — Model Context Protocol server for GitHub operations.
|
|
3
|
+
|
|
4
|
+
An independent, generalized MCP server that can connect to any AI agent
|
|
5
|
+
supporting the Model Context Protocol. Not tied to any specific project.
|
|
6
|
+
|
|
7
|
+
Quick start:
|
|
8
|
+
pip install workos-github-mcp-server
|
|
9
|
+
GITHUB_TOKEN=ghp_... github-mcp-server
|
|
10
|
+
|
|
11
|
+
Or run as a module:
|
|
12
|
+
python -m github_mcp_server
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
__version__ = "1.0.0"
|
|
16
|
+
|
|
17
|
+
from github_mcp_server.server import create_server
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def main():
|
|
21
|
+
"""Entry point for the github-mcp-server CLI command."""
|
|
22
|
+
server = create_server()
|
|
23
|
+
server.run()
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
__all__ = ["main", "create_server", "__version__"]
|