codeasier-gitcode-mcp 0.3.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.
- codeasier_gitcode_mcp-0.3.0/.gitignore +44 -0
- codeasier_gitcode_mcp-0.3.0/CHANGELOG.md +25 -0
- codeasier_gitcode_mcp-0.3.0/LICENSE +21 -0
- codeasier_gitcode_mcp-0.3.0/MIGRATION_SOURCE.json +229 -0
- codeasier_gitcode_mcp-0.3.0/PKG-INFO +144 -0
- codeasier_gitcode_mcp-0.3.0/README.md +120 -0
- codeasier_gitcode_mcp-0.3.0/published-cli.json +30 -0
- codeasier_gitcode_mcp-0.3.0/pyproject.toml +47 -0
- codeasier_gitcode_mcp-0.3.0/scripts/migration_acceptance.py +434 -0
- codeasier_gitcode_mcp-0.3.0/scripts/published_cli_acceptance.py +272 -0
- codeasier_gitcode_mcp-0.3.0/scripts/release_check.py +187 -0
- codeasier_gitcode_mcp-0.3.0/scripts/release_environment.py +100 -0
- codeasier_gitcode_mcp-0.3.0/scripts/volume_acceptance.py +655 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/__init__.py +3 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/__main__.py +83 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/api.py +285 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/askpass.py +40 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/clone.py +208 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/config.py +170 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/file_writes.py +132 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/oauth.py +636 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/oauth_config.py +135 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/oauth_http.py +163 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/oauth_store.py +431 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/oauth_upstream.py +320 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/server.py +218 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/smoke.py +64 -0
- codeasier_gitcode_mcp-0.3.0/src/gitcode_mcp/tools.py +689 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_api.py +282 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_clone.py +210 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_config.py +67 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_file_writes.py +530 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_migration_metadata.py +93 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_oauth_config.py +271 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_oauth_http.py +723 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_oauth_recovery.py +204 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_oauth_store.py +375 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_oauth_upstream.py +462 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_published_cli_acceptance.py +373 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_release_check.py +168 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_release_environment.py +114 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_release_workflow.py +158 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_server.py +138 -0
- codeasier_gitcode_mcp-0.3.0/tests/test_tools.py +487 -0
- codeasier_gitcode_mcp-0.3.0/tests_checkout/test_bounded_read_services.py +221 -0
- codeasier_gitcode_mcp-0.3.0/tests_checkout/test_repo_service.py +176 -0
- codeasier_gitcode_mcp-0.3.0/tests_checkout/test_transport.py +43 -0
- codeasier_gitcode_mcp-0.3.0/tests_source/test_file_service.py +200 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.pyo
|
|
5
|
+
*.egg-info/
|
|
6
|
+
*.egg
|
|
7
|
+
dist/
|
|
8
|
+
build/
|
|
9
|
+
*.whl
|
|
10
|
+
|
|
11
|
+
# Virtual environments
|
|
12
|
+
.venv/
|
|
13
|
+
venv/
|
|
14
|
+
env/
|
|
15
|
+
|
|
16
|
+
# Testing
|
|
17
|
+
.pytest_cache/
|
|
18
|
+
.coverage
|
|
19
|
+
coverage.xml
|
|
20
|
+
htmlcov/
|
|
21
|
+
|
|
22
|
+
# Linting / Type checking
|
|
23
|
+
.ruff_cache/
|
|
24
|
+
.mypy_cache/
|
|
25
|
+
.basedpyright/
|
|
26
|
+
|
|
27
|
+
# IDE
|
|
28
|
+
.idea/
|
|
29
|
+
.vscode/
|
|
30
|
+
*.swp
|
|
31
|
+
*.swo
|
|
32
|
+
|
|
33
|
+
# OS
|
|
34
|
+
.DS_Store
|
|
35
|
+
Thumbs.db
|
|
36
|
+
|
|
37
|
+
# Project-specific
|
|
38
|
+
.worktrees/
|
|
39
|
+
.features/
|
|
40
|
+
.claude/
|
|
41
|
+
.trae/
|
|
42
|
+
.omc/
|
|
43
|
+
output/
|
|
44
|
+
**/AGENTS.md
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# MCP changelog
|
|
2
|
+
|
|
3
|
+
Versions and release tags in this file belong only to `codeasier-gitcode-mcp`.
|
|
4
|
+
A source entry is not evidence that the version has been published to PyPI.
|
|
5
|
+
|
|
6
|
+
## [Unreleased]
|
|
7
|
+
|
|
8
|
+
## [0.3.0]
|
|
9
|
+
|
|
10
|
+
- Preserve the migrated 31-tool runtime (19 read, 12 write tools), OAuth state
|
|
11
|
+
format, single-file code publishing, and clone helper from the recorded
|
|
12
|
+
`codex-codeasier` baseline.
|
|
13
|
+
- Delegate existing repository and clone-metadata reads to the published
|
|
14
|
+
`RepoService.get`, preserving MCP authorization, transport and result behavior.
|
|
15
|
+
- Pin the published `pygitcode==0.1.7` and delegate existing file tools to its
|
|
16
|
+
`FileService`, preserving MCP validation, bearer transport and result semantics.
|
|
17
|
+
- Keep the immutable legacy migration seed and rollback on MCP `0.3.0` /
|
|
18
|
+
`pygitcode==0.1.6`; candidate acceptance requires the new `0.1.7` runtime
|
|
19
|
+
dependency.
|
|
20
|
+
- Maintain independent Python 3.11+ packaging and release validation in
|
|
21
|
+
`gitcode-cli`, including clean wheel/sdist installation, offline protocol and
|
|
22
|
+
legacy-token checks, real synthetic Compose-volume takeover/rollback CI, and
|
|
23
|
+
a tag-only publication path with no long-lived PyPI token.
|
|
24
|
+
|
|
25
|
+
No production deployment, downstream dependency switch, or publication is implied.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 codeasier
|
|
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,229 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"source_repository": "https://github.com/codeasier/codex-codeasier",
|
|
4
|
+
"source_commit": "f93b67bb7048e556b44322d48664522f32651920",
|
|
5
|
+
"source_pull_request": "https://github.com/codeasier/codex-codeasier/pull/8",
|
|
6
|
+
"source_merge_commit": "27b542521c8483b5cf051ae001e791e08e92bb40",
|
|
7
|
+
"destination_repository": "https://github.com/codeasier/gitcode-cli",
|
|
8
|
+
"distribution": "codeasier-gitcode-mcp",
|
|
9
|
+
"distribution_version": "0.3.0",
|
|
10
|
+
"license": {
|
|
11
|
+
"spdx": "MIT",
|
|
12
|
+
"source_path": "LICENSE",
|
|
13
|
+
"source_blob_sha": "9c1d94e52351fefff9267baf08300114e6764a56",
|
|
14
|
+
"destination_path": "packages/gitcode-mcp/LICENSE"
|
|
15
|
+
},
|
|
16
|
+
"notes": [
|
|
17
|
+
"Source blob SHAs record the imported baseline, not the hashes after destination-specific documentation and packaging edits.",
|
|
18
|
+
"Runtime source and original regression tests are carried over without behavioral changes.",
|
|
19
|
+
"The source merge commit has the same tree as the reviewed source commit.",
|
|
20
|
+
"This manifest does not assert that destination CI or production migration has passed."
|
|
21
|
+
],
|
|
22
|
+
"files": [
|
|
23
|
+
{
|
|
24
|
+
"source_path": "deploy/gitcode-mcp/Dockerfile",
|
|
25
|
+
"destination_path": "deploy/gitcode-mcp/Dockerfile",
|
|
26
|
+
"source_blob_sha": "0c630af266217741a405b586e183c618f56911c1"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"source_path": "deploy/gitcode-mcp/Dockerfile.dockerignore",
|
|
30
|
+
"destination_path": "deploy/gitcode-mcp/Dockerfile.dockerignore",
|
|
31
|
+
"source_blob_sha": "36d604954f5534c14b1b84fe0c7d6515ed625985"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"source_path": "deploy/gitcode-mcp/compose.oauth.yaml",
|
|
35
|
+
"destination_path": "deploy/gitcode-mcp/compose.oauth.yaml",
|
|
36
|
+
"source_blob_sha": "44cdcfe4f411f1b1d0a1608da6326087b2c7fc26"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"source_path": "deploy/gitcode-mcp/compose.yaml",
|
|
40
|
+
"destination_path": "deploy/gitcode-mcp/compose.yaml",
|
|
41
|
+
"source_blob_sha": "9ed9721476b7ae226a6ac67a9c130f47800fa3e0"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"source_path": "deploy/gitcode-mcp/nginx.oauth.conf.example",
|
|
45
|
+
"destination_path": "deploy/gitcode-mcp/nginx.oauth.conf.example",
|
|
46
|
+
"source_blob_sha": "bf611654da31dc8101d5eefd0284aec90a132abf"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"source_path": "deploy/gitcode-mcp/oauth.env.example",
|
|
50
|
+
"destination_path": "deploy/gitcode-mcp/oauth.env.example",
|
|
51
|
+
"source_blob_sha": "71eae415ec88529770eed66e5e068fd37a404167"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"source_path": "docs/gitcode/README.md",
|
|
55
|
+
"destination_path": "docs/gitcode/README.md",
|
|
56
|
+
"source_blob_sha": "e8be2b3c33d755cd89211151999dc2654ff08fa5"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"source_path": "docs/gitcode/code-publishing.md",
|
|
60
|
+
"destination_path": "docs/gitcode/code-publishing.md",
|
|
61
|
+
"source_blob_sha": "0f8bed531d43aa050ee5bdd4d64a2c8f7a06bb78"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"source_path": "docs/gitcode/connect-dot.md",
|
|
65
|
+
"destination_path": "docs/gitcode/connect-dot.md",
|
|
66
|
+
"source_blob_sha": "6718e56f6fafe7fc2f347fa3b3fb182d9ccb16ae"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"source_path": "docs/gitcode/connect-tunnel.md",
|
|
70
|
+
"destination_path": "docs/gitcode/connect-tunnel.md",
|
|
71
|
+
"source_blob_sha": "cdcd225c825b3988aad1826b6e18183089e1266d"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"source_path": "docs/gitcode/deployment.md",
|
|
75
|
+
"destination_path": "docs/gitcode/deployment.md",
|
|
76
|
+
"source_blob_sha": "c3792a7b722806ba47590aea5cd82cb5f4c92857"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"source_path": "docs/gitcode/oauth.md",
|
|
80
|
+
"destination_path": "docs/gitcode/oauth.md",
|
|
81
|
+
"source_blob_sha": "28192c8ca09bef8ea2f4f392f7b623b0466963d6"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"source_path": "docs/gitcode/setup.md",
|
|
85
|
+
"destination_path": "docs/gitcode/setup.md",
|
|
86
|
+
"source_blob_sha": "a961a1fddd19dd129fc90452140dc103d46c72fa"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"source_path": "docs/gitcode/tools.md",
|
|
90
|
+
"destination_path": "docs/gitcode/tools.md",
|
|
91
|
+
"source_blob_sha": "edc1b494d169d321e1a8b0f3bef40ef14c0250cc"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"source_path": "packages/gitcode-mcp/README.md",
|
|
95
|
+
"destination_path": "packages/gitcode-mcp/README.md",
|
|
96
|
+
"source_blob_sha": "cc9757079c6688e37fe6351452b592a42af2c964"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"source_path": "packages/gitcode-mcp/pyproject.toml",
|
|
100
|
+
"destination_path": "packages/gitcode-mcp/pyproject.toml",
|
|
101
|
+
"source_blob_sha": "4e44fcf5ef5934fb078e7bf9d5f42a58a5f4075c"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/__init__.py",
|
|
105
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/__init__.py",
|
|
106
|
+
"source_blob_sha": "c0ef75c776eeb56c2e79e0932ebf13f019355e23"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/__main__.py",
|
|
110
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/__main__.py",
|
|
111
|
+
"source_blob_sha": "6ac19575fcab4b740d06943b9cef5d2bf4165c3c"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/api.py",
|
|
115
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/api.py",
|
|
116
|
+
"source_blob_sha": "97ce3e02594cf54097466cd5cb7ca9b2a955d612"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/askpass.py",
|
|
120
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/askpass.py",
|
|
121
|
+
"source_blob_sha": "a76c0074761bc0d1746c63486027df6c00a21230"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/clone.py",
|
|
125
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/clone.py",
|
|
126
|
+
"source_blob_sha": "e42df2e181bddb35f4bec9808f279c70e89c4392"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/config.py",
|
|
130
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/config.py",
|
|
131
|
+
"source_blob_sha": "30c2fc59bd304506e01bb9cb67fabc56c4fd17ff"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/file_writes.py",
|
|
135
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/file_writes.py",
|
|
136
|
+
"source_blob_sha": "95bc0b579cb09a6ac6621f0cbc3d9db4f627b7b8"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/oauth.py",
|
|
140
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/oauth.py",
|
|
141
|
+
"source_blob_sha": "1b4ed2f6966b4d549f15b1d7745783f1e828ac32"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/oauth_config.py",
|
|
145
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/oauth_config.py",
|
|
146
|
+
"source_blob_sha": "5d585161371951c5ba2107b4bf64b6d48a66a409"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/oauth_http.py",
|
|
150
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/oauth_http.py",
|
|
151
|
+
"source_blob_sha": "c59aee7118f8493d054bc208fdffdd3ecde19337"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/oauth_store.py",
|
|
155
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/oauth_store.py",
|
|
156
|
+
"source_blob_sha": "cfeba1e49d401de2d1f17dc42897d8fb35600d8d"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/oauth_upstream.py",
|
|
160
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/oauth_upstream.py",
|
|
161
|
+
"source_blob_sha": "063ad447d22a459d779f95c1e060f6ecc2b6cbda"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/server.py",
|
|
165
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/server.py",
|
|
166
|
+
"source_blob_sha": "4e9ad20b4dbf6780dd9d7a82fdd96a4ed5238dd4"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/smoke.py",
|
|
170
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/smoke.py",
|
|
171
|
+
"source_blob_sha": "175bd3844abb3651514c92a7193d559b1ff8f8cd"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"source_path": "packages/gitcode-mcp/src/gitcode_mcp/tools.py",
|
|
175
|
+
"destination_path": "packages/gitcode-mcp/src/gitcode_mcp/tools.py",
|
|
176
|
+
"source_blob_sha": "28c59f3b5d16a4d00d343cb815eeb15def85dec1"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"source_path": "packages/gitcode-mcp/tests/test_api.py",
|
|
180
|
+
"destination_path": "packages/gitcode-mcp/tests/test_api.py",
|
|
181
|
+
"source_blob_sha": "9dc79ab9df281483684a092f3c3ec7ec7cf6ca81"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"source_path": "packages/gitcode-mcp/tests/test_clone.py",
|
|
185
|
+
"destination_path": "packages/gitcode-mcp/tests/test_clone.py",
|
|
186
|
+
"source_blob_sha": "f29f9b3319eb3c046b03ed66916e6c7cacd0b33a"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"source_path": "packages/gitcode-mcp/tests/test_config.py",
|
|
190
|
+
"destination_path": "packages/gitcode-mcp/tests/test_config.py",
|
|
191
|
+
"source_blob_sha": "8e7ee8bfa9b62e324abf5ebedf8a91ea26c7a914"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"source_path": "packages/gitcode-mcp/tests/test_file_writes.py",
|
|
195
|
+
"destination_path": "packages/gitcode-mcp/tests/test_file_writes.py",
|
|
196
|
+
"source_blob_sha": "fba1d4f30dacda5100187970ff78047a858e67f1"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"source_path": "packages/gitcode-mcp/tests/test_oauth_config.py",
|
|
200
|
+
"destination_path": "packages/gitcode-mcp/tests/test_oauth_config.py",
|
|
201
|
+
"source_blob_sha": "5258bc245ff9a4c0a06fafceafd5323fe0981930"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"source_path": "packages/gitcode-mcp/tests/test_oauth_http.py",
|
|
205
|
+
"destination_path": "packages/gitcode-mcp/tests/test_oauth_http.py",
|
|
206
|
+
"source_blob_sha": "fb9b2edd4c1672b835e03a958f73e2dae48ce49d"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"source_path": "packages/gitcode-mcp/tests/test_oauth_store.py",
|
|
210
|
+
"destination_path": "packages/gitcode-mcp/tests/test_oauth_store.py",
|
|
211
|
+
"source_blob_sha": "9472494b6005fc704842b97c1b54d725041c14be"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"source_path": "packages/gitcode-mcp/tests/test_oauth_upstream.py",
|
|
215
|
+
"destination_path": "packages/gitcode-mcp/tests/test_oauth_upstream.py",
|
|
216
|
+
"source_blob_sha": "1d986a173d51966306ce0b90b2d0f9287b844b6f"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"source_path": "packages/gitcode-mcp/tests/test_server.py",
|
|
220
|
+
"destination_path": "packages/gitcode-mcp/tests/test_server.py",
|
|
221
|
+
"source_blob_sha": "06b767aefa1790c3dae19cb87feab95cb8096d41"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"source_path": "packages/gitcode-mcp/tests/test_tools.py",
|
|
225
|
+
"destination_path": "packages/gitcode-mcp/tests/test_tools.py",
|
|
226
|
+
"source_blob_sha": "60aa7056f5f6a72fa945267b8596a593b542894f"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: codeasier-gitcode-mcp
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: GitCode repository, code publishing, issue, and pull request tools for MCP clients
|
|
5
|
+
Project-URL: Repository, https://github.com/codeasier/gitcode-cli
|
|
6
|
+
Project-URL: Documentation, https://github.com/codeasier/gitcode-cli/tree/main/docs/gitcode
|
|
7
|
+
Author: Codeasier
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Python: >=3.11
|
|
11
|
+
Requires-Dist: anyio<5,>=4.9
|
|
12
|
+
Requires-Dist: cryptography<49,>=44
|
|
13
|
+
Requires-Dist: httpx<1,>=0.28.1
|
|
14
|
+
Requires-Dist: mcp==2.3.0
|
|
15
|
+
Requires-Dist: pydantic<3,>=2.12
|
|
16
|
+
Requires-Dist: pygitcode==0.1.7
|
|
17
|
+
Requires-Dist: uvicorn<1,>=0.31.1
|
|
18
|
+
Provides-Extra: dev
|
|
19
|
+
Requires-Dist: build<2,>=1.2; extra == 'dev'
|
|
20
|
+
Requires-Dist: packaging<26,>=24; extra == 'dev'
|
|
21
|
+
Requires-Dist: pytest<10,>=8.3; extra == 'dev'
|
|
22
|
+
Requires-Dist: ruff<1,>=0.11; extra == 'dev'
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# Codeasier GitCode MCP
|
|
26
|
+
|
|
27
|
+
An independently installable MCP server for GitCode repositories, file publishing,
|
|
28
|
+
issues and pull requests. It reuses `pygitcode` services and supports stdio and Streamable HTTP.
|
|
29
|
+
Public HTTPS deployments include a GitCode OAuth broker for connecting ChatGPT
|
|
30
|
+
directly by Server URL.
|
|
31
|
+
|
|
32
|
+
Requires Python 3.11 or later. From a checkout of `codeasier/gitcode-cli`:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
python -m pip install ./packages/gitcode-mcp
|
|
36
|
+
gitcode-mcp --help
|
|
37
|
+
python -m gitcode_mcp.smoke
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
For local stdio or controlled static-bearer HTTP clients, supply `GITCODE_TOKEN`
|
|
41
|
+
(or `GC_TOKEN`) through the process environment or your secret manager. This is the
|
|
42
|
+
default `GITCODE_MCP_AUTH_MODE=bearer`. Set `GITCODE_MCP_READ_ONLY=true` to expose only read tools and
|
|
43
|
+
`GITCODE_MCP_ALLOWED_REPOS=owner/repository,owner/other` to constrain repository
|
|
44
|
+
access. Tokens are never MCP tool arguments.
|
|
45
|
+
|
|
46
|
+
For public HTTP, set `GITCODE_MCP_AUTH_MODE=oauth` and follow the
|
|
47
|
+
[OAuth setup guide](https://github.com/codeasier/gitcode-cli/blob/main/docs/gitcode/oauth.md).
|
|
48
|
+
Configure a GitCode OAuth application, a separate preregistered MCP client, exact
|
|
49
|
+
HTTPS callbacks, and persistent encrypted SQLite state. OAuth mode rejects PAT
|
|
50
|
+
and static HTTP bearer configuration; each authorized connection uses its own
|
|
51
|
+
GitCode identity and receives separate MCP access tokens. It supports PKCE,
|
|
52
|
+
explicit consent, refresh and revocation, with a fixed authorization lifetime.
|
|
53
|
+
The environment-file and Compose examples are in `deploy/gitcode-mcp`.
|
|
54
|
+
|
|
55
|
+
The server exposes 31 tools: 19 reads and 12 writes. `gitcode_create_file`,
|
|
56
|
+
`gitcode_update_file` and `gitcode_delete_file` publish a single file change to an
|
|
57
|
+
explicit remote branch using GitCode's Contents API. Updates and deletions require
|
|
58
|
+
the current file Blob SHA. Each call creates a separate commit; there is no atomic
|
|
59
|
+
multi-file commit or force-ref operation. See the
|
|
60
|
+
[code publishing guide](https://github.com/codeasier/gitcode-cli/blob/main/docs/gitcode/code-publishing.md)
|
|
61
|
+
for limits, verification and the Issue-to-PR workflow.
|
|
62
|
+
|
|
63
|
+
These API writes use the connection's GitCode authorization. OAuth connections
|
|
64
|
+
with `gitcode:write` and the required upstream permissions need no additional Git
|
|
65
|
+
credentials for file publishing. The server's read-only mode and repository
|
|
66
|
+
allowlist still apply. After upgrading the runtime, restart it and refresh the
|
|
67
|
+
client's tool metadata. Existing write grants cover these tools; an existing
|
|
68
|
+
read-only grant needs a new authorization to obtain write scope.
|
|
69
|
+
|
|
70
|
+
The built-in smoke command checks stdio. Automated OAuth tests use mocked GitCode
|
|
71
|
+
responses; verify the final HTTPS authorization flow and a real ChatGPT read before
|
|
72
|
+
considering a deployment connected.
|
|
73
|
+
|
|
74
|
+
The separate `gitcode-clone OWNER/REPO DESTINATION` command clones into the machine
|
|
75
|
+
where it is executed. A remote MCP connection does not share its filesystem with
|
|
76
|
+
dot or Codex. Run this helper in the actual coding environment, using an existing
|
|
77
|
+
Git credential helper, SSH, or the documented temporary PAT authentication.
|
|
78
|
+
The MCP server does not execute a shell or run project tests. Native Git operations
|
|
79
|
+
and test execution remain tasks for an actual coding environment.
|
|
80
|
+
|
|
81
|
+
See the repository's [setup and operation guide](https://github.com/codeasier/gitcode-cli/tree/main/docs/gitcode)
|
|
82
|
+
for local plugin installation, direct HTTPS/OAuth connection, the optional private
|
|
83
|
+
tunnel route and the Issue-to-PR workflow. This source package is not assumed to
|
|
84
|
+
be published on PyPI.
|
|
85
|
+
|
|
86
|
+
## Migration provenance and compatibility
|
|
87
|
+
|
|
88
|
+
This package was imported from `codeasier/codex-codeasier` at
|
|
89
|
+
`f93b67bb7048e556b44322d48664522f32651920` (PR #8, subsequently merged as
|
|
90
|
+
`27b542521c8483b5cf051ae001e791e08e92bb40` with the same tree).
|
|
91
|
+
[`MIGRATION_SOURCE.json`](MIGRATION_SOURCE.json) records the original file mapping
|
|
92
|
+
and blob hashes; [`LICENSE`](LICENSE) retains the original MIT copyright notice.
|
|
93
|
+
The original regression tests preserve that baseline. The CLI package remains
|
|
94
|
+
separately versioned: this source now pins the published `pygitcode==0.1.7`, rather
|
|
95
|
+
than implicitly importing a sibling checkout. The MCP version remains `0.3.0`;
|
|
96
|
+
this dependency change does not publish or deploy an MCP release.
|
|
97
|
+
|
|
98
|
+
The existing file-read/create/update/delete tools delegate to the installed
|
|
99
|
+
`FileService`. MCP still owns its stricter path policy (including rejection of
|
|
100
|
+
literal `?`, `#` and `%`), canonical Base64 and size limits, explicit branch and
|
|
101
|
+
expected Blob SHA requirements, authorization, and normalized results. The
|
|
102
|
+
service receives decoded paths and quotes them exactly once, then uses MCP's
|
|
103
|
+
bounded bearer-only transport. No tool, schema, retry, automatic SHA refresh or
|
|
104
|
+
multi-file atomicity is added.
|
|
105
|
+
|
|
106
|
+
The existing `gitcode_get_repository` and `gitcode_get_clone_info` tools also
|
|
107
|
+
delegate their single metadata read to the installed `RepoService.get`. MCP
|
|
108
|
+
retains repository validation and allowlists, bearer-only transport, response
|
|
109
|
+
redaction, and credential-free clone URLs. This does not add tools or consume
|
|
110
|
+
unreleased CLI service methods.
|
|
111
|
+
|
|
112
|
+
Normal tests exercise this published dependency. A separate artifact matrix
|
|
113
|
+
installs the actual CLI wheel and sdist on Python 3.11–3.13, verifies their hashes
|
|
114
|
+
and installed origin, and runs both `tests/` and `tests_source/` in isolation.
|
|
115
|
+
Separately,
|
|
116
|
+
`gitcode-mcp-services.yml` installs the CLI checkout with `--no-deps`, verifies all
|
|
117
|
+
installed client/service hashes, and explicitly runs `tests_source/` and
|
|
118
|
+
`tests_checkout/` alongside the full MCP suite. The latter directory tests
|
|
119
|
+
unreleased repository branch/tree/commit primitives, Issue/PR single-page reads
|
|
120
|
+
and the raw structured-diff envelope directly with MCP's transport, not production
|
|
121
|
+
tool delegation. The Issue/PR primitives make one request and leave pagination,
|
|
122
|
+
shape validation and result envelopes to consumers. Existing eager comments,
|
|
123
|
+
files collection and text diff methods are unchanged. The checkout-only tests
|
|
124
|
+
are excluded from normal pinned tests and the published `0.1.7` artifact matrix.
|
|
125
|
+
Production consumption requires
|
|
126
|
+
a separately authorized CLI release, real artifact validation and a subsequent
|
|
127
|
+
consumer change. That forward-compatibility probe does not change the exact
|
|
128
|
+
production pin or authorize consuming unreleased services. Migration acceptance
|
|
129
|
+
keeps the immutable legacy MCP `0.3.0` / `pygitcode==0.1.6` installation for seed
|
|
130
|
+
and rollback; candidate checks require `pygitcode==0.1.7` even though its MCP
|
|
131
|
+
version is also `0.3.0`.
|
|
132
|
+
|
|
133
|
+
See the [migration and rollback guide](../../docs/gitcode/migration.md) before
|
|
134
|
+
upgrading an existing OAuth deployment. Repository migration does not authorize
|
|
135
|
+
a production switch, change the state schema or encryption key, or require new
|
|
136
|
+
user grants. A destination CI pass is required before switching a downstream
|
|
137
|
+
bridge to its exact commit or artifact.
|
|
138
|
+
|
|
139
|
+
## Independent release preparation
|
|
140
|
+
|
|
141
|
+
See the [release guide](../../docs/gitcode/releases.md) for `mcp-vX.Y.Z` tags,
|
|
142
|
+
artifact gates, and the separately authorized PyPI setup. Manual release-workflow
|
|
143
|
+
runs validate only; they cannot publish. Merging this workflow does not publish a
|
|
144
|
+
package, change downstream pins, or deploy a server.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Codeasier GitCode MCP
|
|
2
|
+
|
|
3
|
+
An independently installable MCP server for GitCode repositories, file publishing,
|
|
4
|
+
issues and pull requests. It reuses `pygitcode` services and supports stdio and Streamable HTTP.
|
|
5
|
+
Public HTTPS deployments include a GitCode OAuth broker for connecting ChatGPT
|
|
6
|
+
directly by Server URL.
|
|
7
|
+
|
|
8
|
+
Requires Python 3.11 or later. From a checkout of `codeasier/gitcode-cli`:
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
python -m pip install ./packages/gitcode-mcp
|
|
12
|
+
gitcode-mcp --help
|
|
13
|
+
python -m gitcode_mcp.smoke
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
For local stdio or controlled static-bearer HTTP clients, supply `GITCODE_TOKEN`
|
|
17
|
+
(or `GC_TOKEN`) through the process environment or your secret manager. This is the
|
|
18
|
+
default `GITCODE_MCP_AUTH_MODE=bearer`. Set `GITCODE_MCP_READ_ONLY=true` to expose only read tools and
|
|
19
|
+
`GITCODE_MCP_ALLOWED_REPOS=owner/repository,owner/other` to constrain repository
|
|
20
|
+
access. Tokens are never MCP tool arguments.
|
|
21
|
+
|
|
22
|
+
For public HTTP, set `GITCODE_MCP_AUTH_MODE=oauth` and follow the
|
|
23
|
+
[OAuth setup guide](https://github.com/codeasier/gitcode-cli/blob/main/docs/gitcode/oauth.md).
|
|
24
|
+
Configure a GitCode OAuth application, a separate preregistered MCP client, exact
|
|
25
|
+
HTTPS callbacks, and persistent encrypted SQLite state. OAuth mode rejects PAT
|
|
26
|
+
and static HTTP bearer configuration; each authorized connection uses its own
|
|
27
|
+
GitCode identity and receives separate MCP access tokens. It supports PKCE,
|
|
28
|
+
explicit consent, refresh and revocation, with a fixed authorization lifetime.
|
|
29
|
+
The environment-file and Compose examples are in `deploy/gitcode-mcp`.
|
|
30
|
+
|
|
31
|
+
The server exposes 31 tools: 19 reads and 12 writes. `gitcode_create_file`,
|
|
32
|
+
`gitcode_update_file` and `gitcode_delete_file` publish a single file change to an
|
|
33
|
+
explicit remote branch using GitCode's Contents API. Updates and deletions require
|
|
34
|
+
the current file Blob SHA. Each call creates a separate commit; there is no atomic
|
|
35
|
+
multi-file commit or force-ref operation. See the
|
|
36
|
+
[code publishing guide](https://github.com/codeasier/gitcode-cli/blob/main/docs/gitcode/code-publishing.md)
|
|
37
|
+
for limits, verification and the Issue-to-PR workflow.
|
|
38
|
+
|
|
39
|
+
These API writes use the connection's GitCode authorization. OAuth connections
|
|
40
|
+
with `gitcode:write` and the required upstream permissions need no additional Git
|
|
41
|
+
credentials for file publishing. The server's read-only mode and repository
|
|
42
|
+
allowlist still apply. After upgrading the runtime, restart it and refresh the
|
|
43
|
+
client's tool metadata. Existing write grants cover these tools; an existing
|
|
44
|
+
read-only grant needs a new authorization to obtain write scope.
|
|
45
|
+
|
|
46
|
+
The built-in smoke command checks stdio. Automated OAuth tests use mocked GitCode
|
|
47
|
+
responses; verify the final HTTPS authorization flow and a real ChatGPT read before
|
|
48
|
+
considering a deployment connected.
|
|
49
|
+
|
|
50
|
+
The separate `gitcode-clone OWNER/REPO DESTINATION` command clones into the machine
|
|
51
|
+
where it is executed. A remote MCP connection does not share its filesystem with
|
|
52
|
+
dot or Codex. Run this helper in the actual coding environment, using an existing
|
|
53
|
+
Git credential helper, SSH, or the documented temporary PAT authentication.
|
|
54
|
+
The MCP server does not execute a shell or run project tests. Native Git operations
|
|
55
|
+
and test execution remain tasks for an actual coding environment.
|
|
56
|
+
|
|
57
|
+
See the repository's [setup and operation guide](https://github.com/codeasier/gitcode-cli/tree/main/docs/gitcode)
|
|
58
|
+
for local plugin installation, direct HTTPS/OAuth connection, the optional private
|
|
59
|
+
tunnel route and the Issue-to-PR workflow. This source package is not assumed to
|
|
60
|
+
be published on PyPI.
|
|
61
|
+
|
|
62
|
+
## Migration provenance and compatibility
|
|
63
|
+
|
|
64
|
+
This package was imported from `codeasier/codex-codeasier` at
|
|
65
|
+
`f93b67bb7048e556b44322d48664522f32651920` (PR #8, subsequently merged as
|
|
66
|
+
`27b542521c8483b5cf051ae001e791e08e92bb40` with the same tree).
|
|
67
|
+
[`MIGRATION_SOURCE.json`](MIGRATION_SOURCE.json) records the original file mapping
|
|
68
|
+
and blob hashes; [`LICENSE`](LICENSE) retains the original MIT copyright notice.
|
|
69
|
+
The original regression tests preserve that baseline. The CLI package remains
|
|
70
|
+
separately versioned: this source now pins the published `pygitcode==0.1.7`, rather
|
|
71
|
+
than implicitly importing a sibling checkout. The MCP version remains `0.3.0`;
|
|
72
|
+
this dependency change does not publish or deploy an MCP release.
|
|
73
|
+
|
|
74
|
+
The existing file-read/create/update/delete tools delegate to the installed
|
|
75
|
+
`FileService`. MCP still owns its stricter path policy (including rejection of
|
|
76
|
+
literal `?`, `#` and `%`), canonical Base64 and size limits, explicit branch and
|
|
77
|
+
expected Blob SHA requirements, authorization, and normalized results. The
|
|
78
|
+
service receives decoded paths and quotes them exactly once, then uses MCP's
|
|
79
|
+
bounded bearer-only transport. No tool, schema, retry, automatic SHA refresh or
|
|
80
|
+
multi-file atomicity is added.
|
|
81
|
+
|
|
82
|
+
The existing `gitcode_get_repository` and `gitcode_get_clone_info` tools also
|
|
83
|
+
delegate their single metadata read to the installed `RepoService.get`. MCP
|
|
84
|
+
retains repository validation and allowlists, bearer-only transport, response
|
|
85
|
+
redaction, and credential-free clone URLs. This does not add tools or consume
|
|
86
|
+
unreleased CLI service methods.
|
|
87
|
+
|
|
88
|
+
Normal tests exercise this published dependency. A separate artifact matrix
|
|
89
|
+
installs the actual CLI wheel and sdist on Python 3.11–3.13, verifies their hashes
|
|
90
|
+
and installed origin, and runs both `tests/` and `tests_source/` in isolation.
|
|
91
|
+
Separately,
|
|
92
|
+
`gitcode-mcp-services.yml` installs the CLI checkout with `--no-deps`, verifies all
|
|
93
|
+
installed client/service hashes, and explicitly runs `tests_source/` and
|
|
94
|
+
`tests_checkout/` alongside the full MCP suite. The latter directory tests
|
|
95
|
+
unreleased repository branch/tree/commit primitives, Issue/PR single-page reads
|
|
96
|
+
and the raw structured-diff envelope directly with MCP's transport, not production
|
|
97
|
+
tool delegation. The Issue/PR primitives make one request and leave pagination,
|
|
98
|
+
shape validation and result envelopes to consumers. Existing eager comments,
|
|
99
|
+
files collection and text diff methods are unchanged. The checkout-only tests
|
|
100
|
+
are excluded from normal pinned tests and the published `0.1.7` artifact matrix.
|
|
101
|
+
Production consumption requires
|
|
102
|
+
a separately authorized CLI release, real artifact validation and a subsequent
|
|
103
|
+
consumer change. That forward-compatibility probe does not change the exact
|
|
104
|
+
production pin or authorize consuming unreleased services. Migration acceptance
|
|
105
|
+
keeps the immutable legacy MCP `0.3.0` / `pygitcode==0.1.6` installation for seed
|
|
106
|
+
and rollback; candidate checks require `pygitcode==0.1.7` even though its MCP
|
|
107
|
+
version is also `0.3.0`.
|
|
108
|
+
|
|
109
|
+
See the [migration and rollback guide](../../docs/gitcode/migration.md) before
|
|
110
|
+
upgrading an existing OAuth deployment. Repository migration does not authorize
|
|
111
|
+
a production switch, change the state schema or encryption key, or require new
|
|
112
|
+
user grants. A destination CI pass is required before switching a downstream
|
|
113
|
+
bridge to its exact commit or artifact.
|
|
114
|
+
|
|
115
|
+
## Independent release preparation
|
|
116
|
+
|
|
117
|
+
See the [release guide](../../docs/gitcode/releases.md) for `mcp-vX.Y.Z` tags,
|
|
118
|
+
artifact gates, and the separately authorized PyPI setup. Manual release-workflow
|
|
119
|
+
runs validate only; they cannot publish. Merging this workflow does not publish a
|
|
120
|
+
package, change downstream pins, or deploy a server.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"package": "pygitcode",
|
|
4
|
+
"version": "0.1.7",
|
|
5
|
+
"source_sha": "2f110178d754299214dcdbd94ce41788eb2044ab",
|
|
6
|
+
"artifacts": {
|
|
7
|
+
"wheel": {
|
|
8
|
+
"filename": "pygitcode-0.1.7-py3-none-any.whl",
|
|
9
|
+
"url": "https://files.pythonhosted.org/packages/44/37/40c8e9164e4e59b42ec2c67ee0f23d3f7cce0158bc7bf26102c3f6fb18d2/pygitcode-0.1.7-py3-none-any.whl",
|
|
10
|
+
"sha256": "923f5b0bf78275185e23e4fe3f982d504086927429a93f2de7c9226729e70e7e",
|
|
11
|
+
"size": 74822
|
|
12
|
+
},
|
|
13
|
+
"sdist": {
|
|
14
|
+
"filename": "pygitcode-0.1.7.tar.gz",
|
|
15
|
+
"url": "https://files.pythonhosted.org/packages/5d/4d/c59ac590785366bcb81b257e2876aac046e26a7f7f259fd86158c3e36ea0/pygitcode-0.1.7.tar.gz",
|
|
16
|
+
"sha256": "455df55f49d40af1ff32d6c59671df97a47d0626d930ebcfe764d1574d26d575",
|
|
17
|
+
"size": 63461
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"source_files": {
|
|
21
|
+
"gitcode_cli/__init__.py": "bfa736254bdcb337ecef1b2cb4e218c530c03ba2f355b6605ea6a3b68ffe3a5e",
|
|
22
|
+
"gitcode_cli/client.py": "6e580b879e27c4c543b8448880a5ad5ef2ed8146b89c228d7f0b795f081bfbaa",
|
|
23
|
+
"gitcode_cli/services/__init__.py": "54e4addd2c686a9164eeda1558b76d5679dbb40b11a0dbfb32abf3bb296e342a",
|
|
24
|
+
"gitcode_cli/services/files.py": "a5ac0fd9c446a3bc72772817f80edbd18cd1a34d503c06271964a9de1f70ebe7",
|
|
25
|
+
"gitcode_cli/services/issues.py": "21245776f524aa20d35490a8582c019a541ce326c53defca218323376f5401ac",
|
|
26
|
+
"gitcode_cli/services/pulls.py": "094e205374d89573771188c557ab36cbf667cd1654308cb9fe2655977f1ed45c",
|
|
27
|
+
"gitcode_cli/services/repos.py": "b0c95bbe5c720f1e63b035e1103064a191f085f9048a13ac94d62f0f979b9390",
|
|
28
|
+
"gitcode_cli/services/users.py": "a44e266f365ef3277419f7b472c2d972c2a9fc73da9ca336f29feb67af9a53e0"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.27,<2"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "codeasier-gitcode-mcp"
|
|
7
|
+
version = "0.3.0"
|
|
8
|
+
description = "GitCode repository, code publishing, issue, and pull request tools for MCP clients"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
authors = [{name = "Codeasier"}]
|
|
13
|
+
dependencies = [
|
|
14
|
+
"mcp==2.3.0",
|
|
15
|
+
"pygitcode==0.1.7",
|
|
16
|
+
"httpx>=0.28.1,<1",
|
|
17
|
+
"anyio>=4.9,<5",
|
|
18
|
+
"pydantic>=2.12,<3",
|
|
19
|
+
"uvicorn>=0.31.1,<1",
|
|
20
|
+
"cryptography>=44,<49",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[project.optional-dependencies]
|
|
24
|
+
dev = ["pytest>=8.3,<10", "ruff>=0.11,<1", "build>=1.2,<2", "packaging>=24,<26"]
|
|
25
|
+
|
|
26
|
+
[project.scripts]
|
|
27
|
+
gitcode-mcp = "gitcode_mcp.__main__:main"
|
|
28
|
+
gitcode-clone = "gitcode_mcp.clone:main"
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
Repository = "https://github.com/codeasier/gitcode-cli"
|
|
32
|
+
Documentation = "https://github.com/codeasier/gitcode-cli/tree/main/docs/gitcode"
|
|
33
|
+
|
|
34
|
+
[tool.hatch.build.targets.wheel]
|
|
35
|
+
packages = ["src/gitcode_mcp"]
|
|
36
|
+
|
|
37
|
+
[tool.pytest.ini_options]
|
|
38
|
+
testpaths = ["tests"]
|
|
39
|
+
addopts = "-ra"
|
|
40
|
+
|
|
41
|
+
[tool.ruff]
|
|
42
|
+
target-version = "py311"
|
|
43
|
+
line-length = 100
|
|
44
|
+
|
|
45
|
+
[tool.ruff.lint]
|
|
46
|
+
select = ["E", "F", "I", "UP", "B"]
|
|
47
|
+
ignore = ["E501"]
|