forge-manager-mcp 3.0.1__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.
- forge_manager_mcp-3.0.1/LICENSE +201 -0
- forge_manager_mcp-3.0.1/PKG-INFO +115 -0
- forge_manager_mcp-3.0.1/README.md +85 -0
- forge_manager_mcp-3.0.1/pyproject.toml +49 -0
- forge_manager_mcp-3.0.1/setup.cfg +4 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/__init__.py +3 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/__init__.py +1 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/_common.py +32 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/_recovery.py +84 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/_rest_base.py +154 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/errors.py +115 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/forgejo.py +903 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/github.py +632 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/gitlab.py +891 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/local_store.py +1289 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/protocol.py +377 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/adapters/types.py +432 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/automemory.py +176 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/bootstrap_template_parity.py +176 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/buffer.py +163 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/classification.py +190 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/config.py +199 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/context.py +59 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/docs_repo.py +150 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/github/__init__.py +16 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/github/core.py +137 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/github/discussions.py +185 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/github/issues.py +183 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/github/projects.py +325 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/github/recovery.py +673 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/github/releases.py +210 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/github/resolvers.py +239 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/github/scaffold.py +186 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/github/triage.py +262 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/migration/__init__.py +24 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/migration/detector.py +330 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/migration/runner.py +248 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/models.py +570 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/parsers.py +111 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/replication/__init__.py +27 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/replication/errors.py +51 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/replication/manager.py +522 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/__init__.py +166 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/build.py +680 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/cli.py +92 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/__init__.py +0 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/_issue_creation.py +81 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/infra.py +955 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/issues.py +476 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/meta.py +102 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/migration.py +189 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/release.py +2128 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/session.py +433 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/site.py +307 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/threads.py +407 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/handlers/verify.py +132 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/helpers.py +269 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/preflight.py +119 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/server/tool_schemas.py +1423 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/site_renderer/__init__.py +24 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/site_renderer/contrast.py +49 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/site_renderer/frontmatter.py +381 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/site_renderer/hugo.py +189 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/site_renderer/protocol.py +63 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/skill_validator.py +138 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/toc_composer.py +234 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/toc_drift.py +118 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/utils.py +212 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/validators/__init__.py +13 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/validators/diff.py +339 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/validators/llm.py +382 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/validators/plan.py +435 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp/vocab.py +206 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp.egg-info/PKG-INFO +115 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp.egg-info/SOURCES.txt +116 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp.egg-info/dependency_links.txt +1 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp.egg-info/entry_points.txt +2 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp.egg-info/requires.txt +5 -0
- forge_manager_mcp-3.0.1/src/forge_manager_mcp.egg-info/top_level.txt +1 -0
- forge_manager_mcp-3.0.1/tests/test_adapter_errors.py +114 -0
- forge_manager_mcp-3.0.1/tests/test_adapter_forgejo.py +704 -0
- forge_manager_mcp-3.0.1/tests/test_adapter_github.py +458 -0
- forge_manager_mcp-3.0.1/tests/test_adapter_gitlab.py +678 -0
- forge_manager_mcp-3.0.1/tests/test_adapter_local_store.py +552 -0
- forge_manager_mcp-3.0.1/tests/test_adapter_recovery.py +172 -0
- forge_manager_mcp-3.0.1/tests/test_adapter_types.py +228 -0
- forge_manager_mcp-3.0.1/tests/test_automemory.py +255 -0
- forge_manager_mcp-3.0.1/tests/test_bootstrap_template_parity.py +194 -0
- forge_manager_mcp-3.0.1/tests/test_buffer.py +115 -0
- forge_manager_mcp-3.0.1/tests/test_classification.py +177 -0
- forge_manager_mcp-3.0.1/tests/test_config.py +291 -0
- forge_manager_mcp-3.0.1/tests/test_context.py +108 -0
- forge_manager_mcp-3.0.1/tests/test_drift_detection.py +451 -0
- forge_manager_mcp-3.0.1/tests/test_github_discussions.py +182 -0
- forge_manager_mcp-3.0.1/tests/test_github_issues.py +194 -0
- forge_manager_mcp-3.0.1/tests/test_github_projects.py +317 -0
- forge_manager_mcp-3.0.1/tests/test_github_recovery.py +690 -0
- forge_manager_mcp-3.0.1/tests/test_github_releases.py +307 -0
- forge_manager_mcp-3.0.1/tests/test_github_resolvers.py +484 -0
- forge_manager_mcp-3.0.1/tests/test_github_scaffold.py +141 -0
- forge_manager_mcp-3.0.1/tests/test_github_triage.py +276 -0
- forge_manager_mcp-3.0.1/tests/test_local_store_history.py +625 -0
- forge_manager_mcp-3.0.1/tests/test_migration.py +532 -0
- forge_manager_mcp-3.0.1/tests/test_models.py +343 -0
- forge_manager_mcp-3.0.1/tests/test_parsers.py +163 -0
- forge_manager_mcp-3.0.1/tests/test_preflight.py +165 -0
- forge_manager_mcp-3.0.1/tests/test_replication_manager.py +653 -0
- forge_manager_mcp-3.0.1/tests/test_server.py +400 -0
- forge_manager_mcp-3.0.1/tests/test_site_renderer_contrast.py +65 -0
- forge_manager_mcp-3.0.1/tests/test_site_renderer_frontmatter.py +214 -0
- forge_manager_mcp-3.0.1/tests/test_skill_validator.py +137 -0
- forge_manager_mcp-3.0.1/tests/test_toc_composer.py +267 -0
- forge_manager_mcp-3.0.1/tests/test_toc_drift.py +218 -0
- forge_manager_mcp-3.0.1/tests/test_utils.py +173 -0
- forge_manager_mcp-3.0.1/tests/test_validator_diff.py +431 -0
- forge_manager_mcp-3.0.1/tests/test_validator_llm.py +397 -0
- forge_manager_mcp-3.0.1/tests/test_validator_plan.py +298 -0
- forge_manager_mcp-3.0.1/tests/test_vocab.py +255 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may accept and charge a
|
|
167
|
+
fee for, or pursue legal remedies in connection with, warranties,
|
|
168
|
+
support, indemnity, or other liability obligations and/or rights
|
|
169
|
+
consistent with this License. However, in accepting such obligations,
|
|
170
|
+
You may act only on Your own behalf and on Your sole responsibility,
|
|
171
|
+
not on behalf of any other Contributor, and only if You agree to
|
|
172
|
+
indemnify, defend, and hold each Contributor harmless for any
|
|
173
|
+
liability incurred by, or claims asserted against, such Contributor
|
|
174
|
+
by reason of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Telejester
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: forge-manager-mcp
|
|
3
|
+
Version: 3.0.1
|
|
4
|
+
Summary: MCP server for the forge-manager skill — multi-platform forge operations layer (GitHub / Forgejo+Codeberg / GitLab / local docs store)
|
|
5
|
+
Author-email: Telejester <telejester@gmail.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/telejester-claude-skills/telejester-claude-skills
|
|
8
|
+
Project-URL: Repository, https://github.com/telejester-claude-skills/telejester-claude-skills
|
|
9
|
+
Project-URL: Issues, https://github.com/telejester-claude-skills/telejester-claude-skills/issues
|
|
10
|
+
Keywords: mcp,claude,github,anthropic
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
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 :: Python Modules
|
|
19
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: mcp>=1.0.0
|
|
25
|
+
Requires-Dist: anthropic>=0.40.0
|
|
26
|
+
Requires-Dist: httpx>=0.27.0
|
|
27
|
+
Requires-Dist: pydantic>=2.0.0
|
|
28
|
+
Requires-Dist: pydantic-settings>=2.0.0
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
|
|
31
|
+
# claude-skills-mcp-dev
|
|
32
|
+
|
|
33
|
+
Private dev repo for the
|
|
34
|
+
[`active-claude-github`](https://github.com/telejester-claude-skills/telejester-claude-skills)
|
|
35
|
+
Claude Code skill's MCP server. Consumer docs live at the publish
|
|
36
|
+
target: <https://github.com/telejester-claude-skills/claude-skills-mcp>.
|
|
37
|
+
|
|
38
|
+
This repo is where MCP server development happens — Issues,
|
|
39
|
+
Discussions, CI, Bazel build graph, tests. Releases are published to
|
|
40
|
+
the publish-target repo linked above.
|
|
41
|
+
|
|
42
|
+
## What lives here
|
|
43
|
+
|
|
44
|
+
- **Python package** `active_claude_github_mcp/` implementing the MCP
|
|
45
|
+
tool surface.
|
|
46
|
+
- **`tests/`** — Bazel-orchestrated unit and integration tests in two
|
|
47
|
+
layers: helper-level (#79, ephemeral repos) and tool-level (#89,
|
|
48
|
+
persistent fixture repo at `telejester-test-org/integration-fixture`).
|
|
49
|
+
See [`CONTRIBUTING.md`](CONTRIBUTING.md) for the build and test
|
|
50
|
+
conventions and §Persistent fixture repo for the provisioning
|
|
51
|
+
protocol.
|
|
52
|
+
- **`.github/workflows/`** — CI (`bazel test` + `bazel coverage` on
|
|
53
|
+
every PR; `workflow_dispatch` live-GitHub integration tests).
|
|
54
|
+
- **Issues / Discussions / Project board** cross-referenced with the
|
|
55
|
+
skill dev repo at
|
|
56
|
+
<https://github.com/orgs/telejester-claude-skills/projects/1>.
|
|
57
|
+
|
|
58
|
+
## Bootstrapping a new project
|
|
59
|
+
|
|
60
|
+
`scaffold_project` is the MCP tool that stands up a new managed project
|
|
61
|
+
end-to-end: creates the `<org>/<name>` public + `<org>/<name>-dev`
|
|
62
|
+
private repo pair, seeds the standard label set, enables Discussions on
|
|
63
|
+
the dev repo, creates a ProjectV2 board (linked to both repos) with the
|
|
64
|
+
canonical `Backlog → In Progress → In Review → Done / Parked` Status
|
|
65
|
+
field, seeds the Project and Session-Lock Discussions, and writes
|
|
66
|
+
`.claude/github-config.json` with every resolved ID.
|
|
67
|
+
|
|
68
|
+
The tool is idempotent and pauses for exactly one manual step: creating
|
|
69
|
+
the five Discussion categories (`Project`, `Architecture`, `UX / UI`,
|
|
70
|
+
`Ideas`, `claude-use-only`) via the dev-repo's Settings page, which
|
|
71
|
+
GitHub exposes no API for. Re-run the tool once the categories exist
|
|
72
|
+
and it picks up where it left off.
|
|
73
|
+
|
|
74
|
+
The exact bootstrap flow — invocation, expected pauses, and follow-up
|
|
75
|
+
`open_session` — lives in the consumer skill's §Self-Bootstrap
|
|
76
|
+
Instructions: <https://github.com/telejester-claude-skills/telejester-claude-skills>.
|
|
77
|
+
|
|
78
|
+
## Multi-repo relations (1.3.0+)
|
|
79
|
+
|
|
80
|
+
`github-config.json` accepts a `related_repos` list that tags each
|
|
81
|
+
connected repo with one of six relationship types. The server uses
|
|
82
|
+
these tags at dispatch time to gate cross-repo mutations per the
|
|
83
|
+
skill's §Cross-repo work protocol:
|
|
84
|
+
|
|
85
|
+
| Type | Gate |
|
|
86
|
+
|---|---|
|
|
87
|
+
| `subsystem`, `publish_target`, `sibling`, `neighbor` | Allowed |
|
|
88
|
+
| `cousin` (different org, skill-managed) | **Blocked — requires explicit user permission per operation** |
|
|
89
|
+
| `foreign` (no write access) | **Blocked — treat as informational only** |
|
|
90
|
+
|
|
91
|
+
Blocks surface as a non-buffered `OperationError` with `manual_step`
|
|
92
|
+
populated; no GitHub calls are issued. Unknown targets (not declared
|
|
93
|
+
in `related_repos`) pass through — the preflight doesn't invent
|
|
94
|
+
policy for undeclared repos.
|
|
95
|
+
|
|
96
|
+
The pre-1.3.0 `contribution_target` type still parses for backward
|
|
97
|
+
compat but emits a `DeprecationWarning` at load. Migrate each entry
|
|
98
|
+
to its precise sub-type at next config edit.
|
|
99
|
+
|
|
100
|
+
## Contributing
|
|
101
|
+
|
|
102
|
+
See [`CONTRIBUTING.md`](CONTRIBUTING.md).
|
|
103
|
+
|
|
104
|
+
## Related repos
|
|
105
|
+
|
|
106
|
+
- MCP server publish target (consumer-facing):
|
|
107
|
+
<https://github.com/telejester-claude-skills/claude-skills-mcp>
|
|
108
|
+
- Skill (consumer-facing):
|
|
109
|
+
<https://github.com/telejester-claude-skills/telejester-claude-skills>
|
|
110
|
+
- Skill dev repo:
|
|
111
|
+
<https://github.com/telejester-claude-skills/telejester-claude-skills-dev>
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
[Apache License 2.0](LICENSE) — © 2026 Telejester.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# claude-skills-mcp-dev
|
|
2
|
+
|
|
3
|
+
Private dev repo for the
|
|
4
|
+
[`active-claude-github`](https://github.com/telejester-claude-skills/telejester-claude-skills)
|
|
5
|
+
Claude Code skill's MCP server. Consumer docs live at the publish
|
|
6
|
+
target: <https://github.com/telejester-claude-skills/claude-skills-mcp>.
|
|
7
|
+
|
|
8
|
+
This repo is where MCP server development happens — Issues,
|
|
9
|
+
Discussions, CI, Bazel build graph, tests. Releases are published to
|
|
10
|
+
the publish-target repo linked above.
|
|
11
|
+
|
|
12
|
+
## What lives here
|
|
13
|
+
|
|
14
|
+
- **Python package** `active_claude_github_mcp/` implementing the MCP
|
|
15
|
+
tool surface.
|
|
16
|
+
- **`tests/`** — Bazel-orchestrated unit and integration tests in two
|
|
17
|
+
layers: helper-level (#79, ephemeral repos) and tool-level (#89,
|
|
18
|
+
persistent fixture repo at `telejester-test-org/integration-fixture`).
|
|
19
|
+
See [`CONTRIBUTING.md`](CONTRIBUTING.md) for the build and test
|
|
20
|
+
conventions and §Persistent fixture repo for the provisioning
|
|
21
|
+
protocol.
|
|
22
|
+
- **`.github/workflows/`** — CI (`bazel test` + `bazel coverage` on
|
|
23
|
+
every PR; `workflow_dispatch` live-GitHub integration tests).
|
|
24
|
+
- **Issues / Discussions / Project board** cross-referenced with the
|
|
25
|
+
skill dev repo at
|
|
26
|
+
<https://github.com/orgs/telejester-claude-skills/projects/1>.
|
|
27
|
+
|
|
28
|
+
## Bootstrapping a new project
|
|
29
|
+
|
|
30
|
+
`scaffold_project` is the MCP tool that stands up a new managed project
|
|
31
|
+
end-to-end: creates the `<org>/<name>` public + `<org>/<name>-dev`
|
|
32
|
+
private repo pair, seeds the standard label set, enables Discussions on
|
|
33
|
+
the dev repo, creates a ProjectV2 board (linked to both repos) with the
|
|
34
|
+
canonical `Backlog → In Progress → In Review → Done / Parked` Status
|
|
35
|
+
field, seeds the Project and Session-Lock Discussions, and writes
|
|
36
|
+
`.claude/github-config.json` with every resolved ID.
|
|
37
|
+
|
|
38
|
+
The tool is idempotent and pauses for exactly one manual step: creating
|
|
39
|
+
the five Discussion categories (`Project`, `Architecture`, `UX / UI`,
|
|
40
|
+
`Ideas`, `claude-use-only`) via the dev-repo's Settings page, which
|
|
41
|
+
GitHub exposes no API for. Re-run the tool once the categories exist
|
|
42
|
+
and it picks up where it left off.
|
|
43
|
+
|
|
44
|
+
The exact bootstrap flow — invocation, expected pauses, and follow-up
|
|
45
|
+
`open_session` — lives in the consumer skill's §Self-Bootstrap
|
|
46
|
+
Instructions: <https://github.com/telejester-claude-skills/telejester-claude-skills>.
|
|
47
|
+
|
|
48
|
+
## Multi-repo relations (1.3.0+)
|
|
49
|
+
|
|
50
|
+
`github-config.json` accepts a `related_repos` list that tags each
|
|
51
|
+
connected repo with one of six relationship types. The server uses
|
|
52
|
+
these tags at dispatch time to gate cross-repo mutations per the
|
|
53
|
+
skill's §Cross-repo work protocol:
|
|
54
|
+
|
|
55
|
+
| Type | Gate |
|
|
56
|
+
|---|---|
|
|
57
|
+
| `subsystem`, `publish_target`, `sibling`, `neighbor` | Allowed |
|
|
58
|
+
| `cousin` (different org, skill-managed) | **Blocked — requires explicit user permission per operation** |
|
|
59
|
+
| `foreign` (no write access) | **Blocked — treat as informational only** |
|
|
60
|
+
|
|
61
|
+
Blocks surface as a non-buffered `OperationError` with `manual_step`
|
|
62
|
+
populated; no GitHub calls are issued. Unknown targets (not declared
|
|
63
|
+
in `related_repos`) pass through — the preflight doesn't invent
|
|
64
|
+
policy for undeclared repos.
|
|
65
|
+
|
|
66
|
+
The pre-1.3.0 `contribution_target` type still parses for backward
|
|
67
|
+
compat but emits a `DeprecationWarning` at load. Migrate each entry
|
|
68
|
+
to its precise sub-type at next config edit.
|
|
69
|
+
|
|
70
|
+
## Contributing
|
|
71
|
+
|
|
72
|
+
See [`CONTRIBUTING.md`](CONTRIBUTING.md).
|
|
73
|
+
|
|
74
|
+
## Related repos
|
|
75
|
+
|
|
76
|
+
- MCP server publish target (consumer-facing):
|
|
77
|
+
<https://github.com/telejester-claude-skills/claude-skills-mcp>
|
|
78
|
+
- Skill (consumer-facing):
|
|
79
|
+
<https://github.com/telejester-claude-skills/telejester-claude-skills>
|
|
80
|
+
- Skill dev repo:
|
|
81
|
+
<https://github.com/telejester-claude-skills/telejester-claude-skills-dev>
|
|
82
|
+
|
|
83
|
+
## License
|
|
84
|
+
|
|
85
|
+
[Apache License 2.0](LICENSE) — © 2026 Telejester.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "forge-manager-mcp"
|
|
7
|
+
version = "3.0.1"
|
|
8
|
+
description = "MCP server for the forge-manager skill — multi-platform forge operations layer (GitHub / Forgejo+Codeberg / GitLab / local docs store)"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
keywords = ["mcp", "claude", "github", "anthropic"]
|
|
14
|
+
authors = [
|
|
15
|
+
{ name = "Telejester", email = "telejester@gmail.com" },
|
|
16
|
+
]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 4 - Beta",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"Operating System :: OS Independent",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
25
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
26
|
+
"Topic :: Software Development :: Version Control :: Git",
|
|
27
|
+
"Typing :: Typed",
|
|
28
|
+
]
|
|
29
|
+
dependencies = [
|
|
30
|
+
"mcp>=1.0.0",
|
|
31
|
+
"anthropic>=0.40.0",
|
|
32
|
+
"httpx>=0.27.0",
|
|
33
|
+
"pydantic>=2.0.0",
|
|
34
|
+
"pydantic-settings>=2.0.0",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[project.scripts]
|
|
38
|
+
forge-manager-mcp = "forge_manager_mcp.server:main"
|
|
39
|
+
|
|
40
|
+
[project.urls]
|
|
41
|
+
Homepage = "https://github.com/telejester-claude-skills/telejester-claude-skills"
|
|
42
|
+
Repository = "https://github.com/telejester-claude-skills/telejester-claude-skills"
|
|
43
|
+
Issues = "https://github.com/telejester-claude-skills/telejester-claude-skills/issues"
|
|
44
|
+
|
|
45
|
+
[tool.setuptools.packages.find]
|
|
46
|
+
where = ["src"]
|
|
47
|
+
|
|
48
|
+
[tool.setuptools.package-dir]
|
|
49
|
+
"" = "src"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Shared low-level utilities used by multiple adapter implementations.
|
|
2
|
+
|
|
3
|
+
Pure helpers only — no httpx, no Protocol, no PlatformAdapter. The
|
|
4
|
+
adapters import from here rather than re-implementing identical
|
|
5
|
+
shapes per backend (the audit-time motivation: ForgejoAdapter and
|
|
6
|
+
GitLabAdapter each had their own ``_parse_iso`` line-for-line).
|
|
7
|
+
|
|
8
|
+
Keep this module lean: anything that touches the HTTP client or the
|
|
9
|
+
canonical types belongs in a different module (``adapters._recovery``
|
|
10
|
+
for cross-adapter recovery, a future ``adapters._rest_base`` for the
|
|
11
|
+
REST base class).
|
|
12
|
+
"""
|
|
13
|
+
from __future__ import annotations
|
|
14
|
+
|
|
15
|
+
from datetime import datetime
|
|
16
|
+
from typing import Any
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def parse_iso(value: Any) -> datetime | None:
|
|
20
|
+
"""Parse an ISO-8601 timestamp string into a tz-aware ``datetime``.
|
|
21
|
+
|
|
22
|
+
Returns ``None`` on falsy or unparseable input. The ``Z`` suffix
|
|
23
|
+
common in REST APIs is normalized to ``+00:00`` since
|
|
24
|
+
``datetime.fromisoformat`` rejects ``Z`` until Python 3.11+
|
|
25
|
+
(kept explicit for behavioral consistency).
|
|
26
|
+
"""
|
|
27
|
+
if not value or not isinstance(value, str):
|
|
28
|
+
return None
|
|
29
|
+
try:
|
|
30
|
+
return datetime.fromisoformat(value.replace("Z", "+00:00"))
|
|
31
|
+
except ValueError:
|
|
32
|
+
return None
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""Default decomposed implementation of ``bundle_recover_context``
|
|
2
|
+
(#274 Phase C5; PAR-5 parallelization).
|
|
3
|
+
|
|
4
|
+
Adapters without a native multi-query batching surface (Forgejo,
|
|
5
|
+
GitLab, LocalStore) call this helper from their
|
|
6
|
+
``bundle_recover_context`` method. The four reads —
|
|
7
|
+
``list_open_issues``, ``list_recent_discussions``,
|
|
8
|
+
``list_milestones``, ``get_discussion_body`` — fire concurrently
|
|
9
|
+
via ``asyncio.gather`` so the bundle's wall-clock cost is one
|
|
10
|
+
round-trip's worth of latency rather than four.
|
|
11
|
+
|
|
12
|
+
GitHubAdapter overrides ``bundle_recover_context`` directly to use
|
|
13
|
+
the existing ``_gh_recovery.fetch_recover_context_bundle`` aliased
|
|
14
|
+
GraphQL query (#181) which collapses all four reads into one
|
|
15
|
+
round-trip *server-side*. The default helper is for everyone else.
|
|
16
|
+
"""
|
|
17
|
+
from __future__ import annotations
|
|
18
|
+
|
|
19
|
+
import asyncio
|
|
20
|
+
|
|
21
|
+
from . import errors as _errors
|
|
22
|
+
from .types import ArtifactRef, RecoveryBundle
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
async def default_bundle_recover_context(
|
|
26
|
+
adapter,
|
|
27
|
+
*,
|
|
28
|
+
owner: str,
|
|
29
|
+
repo: str,
|
|
30
|
+
toc_discussion_id: str,
|
|
31
|
+
since_days: int = 7,
|
|
32
|
+
issue_limit: int = 100,
|
|
33
|
+
) -> RecoveryBundle:
|
|
34
|
+
"""Decomposed default for ``bundle_recover_context``.
|
|
35
|
+
|
|
36
|
+
All four reads fire in parallel via ``asyncio.gather``. The TOC
|
|
37
|
+
body fetch is best-effort — failures (network glitches,
|
|
38
|
+
permission errors, missing discussion) leave ``toc_body`` as
|
|
39
|
+
``None`` rather than poisoning the rest of the bundle. Other
|
|
40
|
+
component failures propagate so the caller can distinguish
|
|
41
|
+
"TOC unreachable but session usable" from "session start
|
|
42
|
+
blocked".
|
|
43
|
+
"""
|
|
44
|
+
toc_ref = ArtifactRef(
|
|
45
|
+
platform_id=adapter.platform_id,
|
|
46
|
+
native_id=toc_discussion_id,
|
|
47
|
+
kind="discussion",
|
|
48
|
+
owner=owner,
|
|
49
|
+
repo=repo,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
# PAR-5: parallel fan-out. ``return_exceptions=True`` on the TOC
|
|
53
|
+
# leg lets us catch its failure without sinking the bundle; the
|
|
54
|
+
# other three legs still propagate via the second gather call so
|
|
55
|
+
# session-start blocking errors aren't swallowed.
|
|
56
|
+
toc_task = asyncio.gather(
|
|
57
|
+
adapter.get_discussion_body(toc_ref), return_exceptions=True,
|
|
58
|
+
)
|
|
59
|
+
open_issues, recent_discussions, milestones, toc_result = await asyncio.gather(
|
|
60
|
+
adapter.list_open_issues(owner=owner, repo=repo, limit=issue_limit),
|
|
61
|
+
adapter.list_recent_discussions(
|
|
62
|
+
owner=owner, repo=repo, since_days=since_days,
|
|
63
|
+
),
|
|
64
|
+
adapter.list_milestones(owner, repo, state="all"),
|
|
65
|
+
toc_task,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
# toc_result is a 1-tuple from the inner gather (return_exceptions=True).
|
|
69
|
+
toc_value = toc_result[0]
|
|
70
|
+
if isinstance(toc_value, _errors.ForgeError):
|
|
71
|
+
toc_body: str | None = None
|
|
72
|
+
elif isinstance(toc_value, BaseException):
|
|
73
|
+
# Non-ForgeError exceptions propagate (matches pre-PAR-5 semantics
|
|
74
|
+
# where only ForgeError was suppressed).
|
|
75
|
+
raise toc_value
|
|
76
|
+
else:
|
|
77
|
+
toc_body = toc_value
|
|
78
|
+
|
|
79
|
+
return RecoveryBundle(
|
|
80
|
+
toc_body=toc_body,
|
|
81
|
+
open_issues=open_issues,
|
|
82
|
+
recent_discussions=recent_discussions,
|
|
83
|
+
milestones=milestones,
|
|
84
|
+
)
|