cyborg-mcp-servers 0.1.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.
Files changed (73) hide show
  1. cyborg_mcp_servers-0.1.0/.gitignore +45 -0
  2. cyborg_mcp_servers-0.1.0/CHANGELOG.md +35 -0
  3. cyborg_mcp_servers-0.1.0/LICENSE +201 -0
  4. cyborg_mcp_servers-0.1.0/Makefile +41 -0
  5. cyborg_mcp_servers-0.1.0/PKG-INFO +155 -0
  6. cyborg_mcp_servers-0.1.0/README.md +102 -0
  7. cyborg_mcp_servers-0.1.0/deploy/argo-k8s/mcp-reader-sa.yaml +77 -0
  8. cyborg_mcp_servers-0.1.0/pyproject.toml +129 -0
  9. cyborg_mcp_servers-0.1.0/scripts/setup-sa-kubeconfig.sh +65 -0
  10. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/__init__.py +60 -0
  11. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/__main__.py +79 -0
  12. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/api.py +135 -0
  13. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/config.py +58 -0
  14. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/k8s/__init__.py +5 -0
  15. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/k8s/client.py +100 -0
  16. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/k8s/helpers.py +352 -0
  17. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/peribolos/__init__.py +0 -0
  18. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/peribolos/events.py +512 -0
  19. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/server.py +313 -0
  20. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/tools/__init__.py +1 -0
  21. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/tools/argocd.py +125 -0
  22. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/tools/cronjobs.py +91 -0
  23. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/tools/cronworkflows.py +134 -0
  24. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/tools/peribolos.py +218 -0
  25. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/tools/pods.py +82 -0
  26. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/tools/workflows.py +322 -0
  27. cyborg_mcp_servers-0.1.0/src/argo_k8s_mcp/types/__init__.py +1 -0
  28. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/__init__.py +28 -0
  29. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/__main__.py +134 -0
  30. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/_version.py +25 -0
  31. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/config.py +121 -0
  32. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/context.py +39 -0
  33. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/exceptions.py +9 -0
  34. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/logging.py +136 -0
  35. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/models/__init__.py +87 -0
  36. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/models/employee.py +56 -0
  37. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/models/graph.py +28 -0
  38. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/models/hierarchy.py +100 -0
  39. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/models/jira.py +45 -0
  40. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/models/metadata.py +27 -0
  41. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/models/organization.py +70 -0
  42. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/models/search.py +86 -0
  43. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/models/team.py +61 -0
  44. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/py.typed +0 -0
  45. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/resources/__init__.py +17 -0
  46. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/resources/documentation.py +434 -0
  47. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/search/__init__.py +17 -0
  48. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/search/fuzzy.py +238 -0
  49. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/server.py +162 -0
  50. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/__init__.py +44 -0
  51. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/_constants.py +5 -0
  52. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/_converters.py +128 -0
  53. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/_decorators.py +54 -0
  54. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/employees.py +257 -0
  55. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/enumeration.py +93 -0
  56. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/graph.py +249 -0
  57. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/hierarchy.py +304 -0
  58. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/jira.py +168 -0
  59. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/metadata.py +56 -0
  60. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/organizations.py +364 -0
  61. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/search.py +188 -0
  62. cyborg_mcp_servers-0.1.0/src/orgdata_mcp/tools/teams.py +327 -0
  63. cyborg_mcp_servers-0.1.0/tests/argo_k8s/test_api_facade.py +96 -0
  64. cyborg_mcp_servers-0.1.0/tests/argo_k8s/test_inprocess_config.py +136 -0
  65. cyborg_mcp_servers-0.1.0/tests/argo_k8s/test_k8s_api_surface.py +61 -0
  66. cyborg_mcp_servers-0.1.0/tests/orgdata/conftest.py +311 -0
  67. cyborg_mcp_servers-0.1.0/tests/orgdata/test_converters.py +109 -0
  68. cyborg_mcp_servers-0.1.0/tests/orgdata/test_decorators.py +86 -0
  69. cyborg_mcp_servers-0.1.0/tests/orgdata/test_models.py +247 -0
  70. cyborg_mcp_servers-0.1.0/tests/orgdata/test_search.py +140 -0
  71. cyborg_mcp_servers-0.1.0/tests/orgdata/test_tools_direct.py +822 -0
  72. cyborg_mcp_servers-0.1.0/tests/orgdata/test_tools_employees.py +188 -0
  73. cyborg_mcp_servers-0.1.0/tests/orgdata/test_tools_jira.py +125 -0
@@ -0,0 +1,45 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+
23
+ # Virtual environments
24
+ .venv/
25
+ venv/
26
+ ENV/
27
+
28
+ # IDE
29
+ .idea/
30
+ .vscode/
31
+ *.swp
32
+ *.swo
33
+
34
+ # Environment
35
+ .env
36
+ .env.local
37
+
38
+ # Testing
39
+ .coverage
40
+ htmlcov/
41
+ .pytest_cache/
42
+ .mypy_cache/
43
+ .ruff_cache/
44
+
45
+ # Note: uv.lock IS committed (CI runs `uv lock --check`).
@@ -0,0 +1,35 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format is based on
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project version
5
+ is derived from git tags via hatch-vcs.
6
+
7
+ ## [Unreleased]
8
+
9
+ ### Changed
10
+ - **Consolidated the two servers into a single `cyborg-mcp-servers` package.**
11
+ Sources moved from `servers/argo-k8s/` and `servers/orgdata/` to a top-level
12
+ `src/argo_k8s_mcp/` and `src/orgdata_mcp/` under one `pyproject.toml`, with
13
+ per-server extras (`argo`, `orgdata`, `gcs`, `http`, `all`). Import package
14
+ names are unchanged.
15
+ - Version is now derived from git tags (`hatch-vcs`); both servers report the
16
+ package version via `importlib.metadata`.
17
+ - Launch is now `install cyborg-mcp-servers[<extra>]` + run the console script
18
+ (`argo-k8s-mcp` / `orgdata-mcp-server`), instead of
19
+ `uv run --directory servers/<name>`.
20
+ - `orgdata` extra now depends on `orgdatacore>=2.0,<3` from PyPI (was a git URL).
21
+ Adapted the orgdata tools to orgdatacore 2.0.0: hierarchy entities' identifier
22
+ is `stable_id` (mapped to the unchanged `uid` output field), and the dropped
23
+ `is_people_manager` field was removed from `EmployeeResult`.
24
+
25
+ ### Added
26
+ - Friendly error from each console script when its extra's dependencies are
27
+ missing (points at `pip install 'cyborg-mcp-servers[<extra>]'`).
28
+ - Single CI gate (`make all` across Python 3.11–3.13) and a tag-driven release
29
+ workflow: publishes to PyPI (final) / TestPyPI (pre-release) via Trusted
30
+ Publishing, and cuts a GitHub Release for finals.
31
+
32
+ ### Notes
33
+ - PyPI publishing requires a one-time `cyborg-mcp-servers` PyPI/TestPyPI project
34
+ + Trusted Publisher and the `pypi`/`testpypi` GitHub Environments — see
35
+ RELEASING.md. Until then, install from a GitHub Release asset or from git.
@@ -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 reasonable and customary use in describing the
141
+ origin of the Work and 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 choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ 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 Red Hat, LLC.
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,41 @@
1
+ .PHONY: install install-dev test lint format format-check typecheck check all clean
2
+
3
+ # RUN wraps every command; PYTHON is the interpreter. Defaults run through uv with
4
+ # all extras + dev. In an environment without uv (e.g. a CI image where deps are
5
+ # pip-installed), call e.g. `make all RUN= PYTHON=python3.12`.
6
+ RUN ?= uv run --extra all --extra dev
7
+ PYTHON ?= python
8
+
9
+ # Install both servers (all extras) into the environment.
10
+ install:
11
+ uv sync --extra all
12
+
13
+ # Install both servers + dev tooling.
14
+ install-dev:
15
+ uv sync --extra all --extra dev
16
+
17
+ # Tools are invoked as `python -m <tool>` so they work without the console
18
+ # scripts being on PATH.
19
+ test:
20
+ $(RUN) $(PYTHON) -m pytest
21
+
22
+ lint:
23
+ $(RUN) $(PYTHON) -m ruff check .
24
+
25
+ format:
26
+ $(RUN) $(PYTHON) -m ruff format .
27
+
28
+ format-check:
29
+ $(RUN) $(PYTHON) -m ruff format --check .
30
+
31
+ typecheck:
32
+ $(RUN) $(PYTHON) -m mypy
33
+
34
+ check: lint typecheck test
35
+
36
+ # The full gate CI runs.
37
+ all: lint format-check typecheck test
38
+
39
+ clean:
40
+ rm -rf dist build *.egg-info .pytest_cache .mypy_cache .ruff_cache
41
+ find . -type d -name __pycache__ -prune -exec rm -rf {} +
@@ -0,0 +1,155 @@
1
+ Metadata-Version: 2.5
2
+ Name: cyborg-mcp-servers
3
+ Version: 0.1.0
4
+ Summary: MCP servers for the Cyborg ecosystem: Argo/Kubernetes troubleshooting (argo-k8s) and organizational-data queries (orgdata). Primarily for internal Red Hat / openshift-eng use.
5
+ Project-URL: Homepage, https://github.com/openshift-eng/cyborg-mcp-servers
6
+ Project-URL: Repository, https://github.com/openshift-eng/cyborg-mcp-servers
7
+ Project-URL: Changelog, https://github.com/openshift-eng/cyborg-mcp-servers/blob/main/CHANGELOG.md
8
+ Project-URL: Issues, https://github.com/openshift-eng/cyborg-mcp-servers/issues
9
+ Author-email: Eris Hoxha <ehoxha@redhat.com>
10
+ Maintainer-email: Eris Hoxha <ehoxha@redhat.com>
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ Keywords: ai-tools,argo,kubernetes,mcp,model-context-protocol,organizational-data
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Typing :: Typed
23
+ Requires-Python: >=3.11
24
+ Requires-Dist: anyio~=4.9
25
+ Requires-Dist: click>=8.0.0
26
+ Requires-Dist: mcp~=1.26.0
27
+ Requires-Dist: pydantic-settings~=2.9
28
+ Requires-Dist: pydantic~=2.11
29
+ Provides-Extra: all
30
+ Requires-Dist: google-cloud-storage>=2.0.0; extra == 'all'
31
+ Requires-Dist: kubernetes<37,>=35; extra == 'all'
32
+ Requires-Dist: orgdatacore<3,>=2.0; extra == 'all'
33
+ Requires-Dist: rapidfuzz>=3.0.0; extra == 'all'
34
+ Requires-Dist: starlette>=0.37.0; extra == 'all'
35
+ Requires-Dist: uvicorn>=0.29.0; extra == 'all'
36
+ Provides-Extra: argo
37
+ Requires-Dist: kubernetes<37,>=35; extra == 'argo'
38
+ Provides-Extra: dev
39
+ Requires-Dist: mypy<2.0,>=1.13; extra == 'dev'
40
+ Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
41
+ Requires-Dist: pytest-cov>=4.1; extra == 'dev'
42
+ Requires-Dist: pytest<9,>=8.0; extra == 'dev'
43
+ Requires-Dist: ruff<0.9,>=0.6; extra == 'dev'
44
+ Provides-Extra: gcs
45
+ Requires-Dist: google-cloud-storage>=2.0.0; extra == 'gcs'
46
+ Provides-Extra: http
47
+ Requires-Dist: starlette>=0.37.0; extra == 'http'
48
+ Requires-Dist: uvicorn>=0.29.0; extra == 'http'
49
+ Provides-Extra: orgdata
50
+ Requires-Dist: orgdatacore<3,>=2.0; extra == 'orgdata'
51
+ Requires-Dist: rapidfuzz>=3.0.0; extra == 'orgdata'
52
+ Description-Content-Type: text/markdown
53
+
54
+ # Cyborg MCP Servers
55
+
56
+ [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) servers for the
57
+ Cyborg ecosystem, packaged as a single installable distribution with per-server
58
+ extras. Usable standalone with Claude Code, Cursor, and other MCP clients, and
59
+ programmatically in-process by other Python hosts.
60
+
61
+ ## Servers
62
+
63
+ | Server | Console script | Extra | Docs |
64
+ |--------|----------------|-------|------|
65
+ | **argo-k8s** — Argo Workflows / Kubernetes / Argo CD / Peribolos troubleshooting | `argo-k8s-mcp` | `[argo]` | [docs/argo-k8s.md](docs/argo-k8s.md) |
66
+ | **orgdata** — organizational data queries (employees, teams, orgs, Jira ownership) | `orgdata-mcp-server` | `[orgdata]`, `[gcs]` | [docs/orgdata.md](docs/orgdata.md) |
67
+
68
+ Both servers' code ships in every install; the **extras gate dependencies, not
69
+ modules**. A server whose extra is missing errors with a friendly hint (e.g.
70
+ `install 'cyborg-mcp-servers[argo]'`) instead of a raw `ImportError`.
71
+
72
+ ## Install
73
+
74
+ Requires Python 3.11+. Tagged releases publish to PyPI (via Trusted Publishing);
75
+ you can also install from a GitHub Release asset or directly from git. (The first
76
+ PyPI publish needs a one-time project + Trusted Publisher setup — see
77
+ [RELEASING.md](RELEASING.md).)
78
+
79
+ ```bash
80
+ # Both servers, all transports and data sources:
81
+ uv pip install "cyborg-mcp-servers[all] @ git+https://github.com/openshift-eng/cyborg-mcp-servers"
82
+
83
+ # Just one server:
84
+ uv pip install "cyborg-mcp-servers[argo] @ git+https://github.com/openshift-eng/cyborg-mcp-servers"
85
+ uv pip install "cyborg-mcp-servers[orgdata,gcs] @ git+https://github.com/openshift-eng/cyborg-mcp-servers"
86
+ ```
87
+
88
+ Extras: `argo`, `orgdata`, `gcs` (orgdata GCS data source), `http` (streamable-HTTP
89
+ transport; also ships transitively with `mcp`), `dev`, and `all`
90
+ (= `argo,orgdata,gcs,http`).
91
+
92
+ ## Run
93
+
94
+ ```bash
95
+ argo-k8s-mcp # stdio (default); or: argo-k8s-mcp http --port 8080
96
+ orgdata-mcp-server stdio # or: orgdata-mcp-server http --port 8000
97
+ ```
98
+
99
+ ### Client configuration (`.mcp.json`)
100
+
101
+ ```json
102
+ {
103
+ "mcpServers": {
104
+ "argo-k8s": {
105
+ "type": "stdio",
106
+ "command": "argo-k8s-mcp",
107
+ "env": { "ARGO_MCP_KUBECONFIG_CONTEXT": "your-cluster-context" }
108
+ },
109
+ "orgdata": {
110
+ "type": "stdio",
111
+ "command": "orgdata-mcp-server",
112
+ "args": ["stdio"],
113
+ "env": {
114
+ "ORGDATA_GCS_BUCKET": "resolved-org",
115
+ "ORGDATA_GCS_OBJECT_PATH": "orgdata/comprehensive_index_dump.json",
116
+ "ORGDATA_GCS_PROJECT_ID": "openshift-crt"
117
+ }
118
+ }
119
+ }
120
+ }
121
+ ```
122
+
123
+ See each server's doc for the full configuration reference.
124
+
125
+ ## In-process use
126
+
127
+ `argo-k8s` exposes its tools as an importable library for agent frameworks — see
128
+ `argo_k8s_mcp.api` and [docs/argo-k8s.md](docs/argo-k8s.md). `orgdata` is best
129
+ consumed in-process via its underlying library,
130
+ [`orgdatacore`](https://github.com/openshift-eng/cyborg-data), rather than the MCP
131
+ server.
132
+
133
+ ## Development
134
+
135
+ ```bash
136
+ make install-dev # uv sync with all extras + dev tooling
137
+ make all # lint + format-check + typecheck + test (the CI gate)
138
+ make test # pytest (both suites, under tests/)
139
+ ```
140
+
141
+ See [CONTRIBUTING.md](CONTRIBUTING.md) and [RELEASING.md](RELEASING.md).
142
+
143
+ ## Layout
144
+
145
+ ```
146
+ cyborg-mcp-servers/
147
+ ├── pyproject.toml # one package, per-server extras, hatch-vcs version
148
+ ├── src/
149
+ │ ├── argo_k8s_mcp/ # argo-k8s server + in-process api
150
+ │ └── orgdata_mcp/ # orgdata server
151
+ ├── tests/{argo_k8s,orgdata}/
152
+ ├── deploy/argo-k8s/ # RBAC manifests for in-cluster deployment
153
+ ├── scripts/ # cluster setup helpers
154
+ └── docs/ # per-server references
155
+ ```
@@ -0,0 +1,102 @@
1
+ # Cyborg MCP Servers
2
+
3
+ [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) servers for the
4
+ Cyborg ecosystem, packaged as a single installable distribution with per-server
5
+ extras. Usable standalone with Claude Code, Cursor, and other MCP clients, and
6
+ programmatically in-process by other Python hosts.
7
+
8
+ ## Servers
9
+
10
+ | Server | Console script | Extra | Docs |
11
+ |--------|----------------|-------|------|
12
+ | **argo-k8s** — Argo Workflows / Kubernetes / Argo CD / Peribolos troubleshooting | `argo-k8s-mcp` | `[argo]` | [docs/argo-k8s.md](docs/argo-k8s.md) |
13
+ | **orgdata** — organizational data queries (employees, teams, orgs, Jira ownership) | `orgdata-mcp-server` | `[orgdata]`, `[gcs]` | [docs/orgdata.md](docs/orgdata.md) |
14
+
15
+ Both servers' code ships in every install; the **extras gate dependencies, not
16
+ modules**. A server whose extra is missing errors with a friendly hint (e.g.
17
+ `install 'cyborg-mcp-servers[argo]'`) instead of a raw `ImportError`.
18
+
19
+ ## Install
20
+
21
+ Requires Python 3.11+. Tagged releases publish to PyPI (via Trusted Publishing);
22
+ you can also install from a GitHub Release asset or directly from git. (The first
23
+ PyPI publish needs a one-time project + Trusted Publisher setup — see
24
+ [RELEASING.md](RELEASING.md).)
25
+
26
+ ```bash
27
+ # Both servers, all transports and data sources:
28
+ uv pip install "cyborg-mcp-servers[all] @ git+https://github.com/openshift-eng/cyborg-mcp-servers"
29
+
30
+ # Just one server:
31
+ uv pip install "cyborg-mcp-servers[argo] @ git+https://github.com/openshift-eng/cyborg-mcp-servers"
32
+ uv pip install "cyborg-mcp-servers[orgdata,gcs] @ git+https://github.com/openshift-eng/cyborg-mcp-servers"
33
+ ```
34
+
35
+ Extras: `argo`, `orgdata`, `gcs` (orgdata GCS data source), `http` (streamable-HTTP
36
+ transport; also ships transitively with `mcp`), `dev`, and `all`
37
+ (= `argo,orgdata,gcs,http`).
38
+
39
+ ## Run
40
+
41
+ ```bash
42
+ argo-k8s-mcp # stdio (default); or: argo-k8s-mcp http --port 8080
43
+ orgdata-mcp-server stdio # or: orgdata-mcp-server http --port 8000
44
+ ```
45
+
46
+ ### Client configuration (`.mcp.json`)
47
+
48
+ ```json
49
+ {
50
+ "mcpServers": {
51
+ "argo-k8s": {
52
+ "type": "stdio",
53
+ "command": "argo-k8s-mcp",
54
+ "env": { "ARGO_MCP_KUBECONFIG_CONTEXT": "your-cluster-context" }
55
+ },
56
+ "orgdata": {
57
+ "type": "stdio",
58
+ "command": "orgdata-mcp-server",
59
+ "args": ["stdio"],
60
+ "env": {
61
+ "ORGDATA_GCS_BUCKET": "resolved-org",
62
+ "ORGDATA_GCS_OBJECT_PATH": "orgdata/comprehensive_index_dump.json",
63
+ "ORGDATA_GCS_PROJECT_ID": "openshift-crt"
64
+ }
65
+ }
66
+ }
67
+ }
68
+ ```
69
+
70
+ See each server's doc for the full configuration reference.
71
+
72
+ ## In-process use
73
+
74
+ `argo-k8s` exposes its tools as an importable library for agent frameworks — see
75
+ `argo_k8s_mcp.api` and [docs/argo-k8s.md](docs/argo-k8s.md). `orgdata` is best
76
+ consumed in-process via its underlying library,
77
+ [`orgdatacore`](https://github.com/openshift-eng/cyborg-data), rather than the MCP
78
+ server.
79
+
80
+ ## Development
81
+
82
+ ```bash
83
+ make install-dev # uv sync with all extras + dev tooling
84
+ make all # lint + format-check + typecheck + test (the CI gate)
85
+ make test # pytest (both suites, under tests/)
86
+ ```
87
+
88
+ See [CONTRIBUTING.md](CONTRIBUTING.md) and [RELEASING.md](RELEASING.md).
89
+
90
+ ## Layout
91
+
92
+ ```
93
+ cyborg-mcp-servers/
94
+ ├── pyproject.toml # one package, per-server extras, hatch-vcs version
95
+ ├── src/
96
+ │ ├── argo_k8s_mcp/ # argo-k8s server + in-process api
97
+ │ └── orgdata_mcp/ # orgdata server
98
+ ├── tests/{argo_k8s,orgdata}/
99
+ ├── deploy/argo-k8s/ # RBAC manifests for in-cluster deployment
100
+ ├── scripts/ # cluster setup helpers
101
+ └── docs/ # per-server references
102
+ ```
@@ -0,0 +1,77 @@
1
+ ---
2
+ apiVersion: v1
3
+ kind: ServiceAccount
4
+ metadata:
5
+ name: mcp-reader
6
+ namespace: argo-workflows
7
+ labels:
8
+ app.kubernetes.io/part-of: argo-k8s-mcp
9
+ ---
10
+ # Long-lived token for the SA (required on OpenShift 4.x / Kubernetes 1.24+)
11
+ apiVersion: v1
12
+ kind: Secret
13
+ metadata:
14
+ name: mcp-reader-token
15
+ namespace: argo-workflows
16
+ annotations:
17
+ kubernetes.io/service-account.name: mcp-reader
18
+ labels:
19
+ app.kubernetes.io/part-of: argo-k8s-mcp
20
+ type: kubernetes.io/service-account-token
21
+ ---
22
+ apiVersion: rbac.authorization.k8s.io/v1
23
+ kind: ClusterRole
24
+ metadata:
25
+ name: mcp-reader
26
+ labels:
27
+ app.kubernetes.io/part-of: argo-k8s-mcp
28
+ rules:
29
+ # Argo Workflows CRDs
30
+ - apiGroups: ["argoproj.io"]
31
+ resources: ["workflows", "cronworkflows", "applications"]
32
+ verbs: ["get", "list", "watch", "create", "patch"]
33
+ - apiGroups: ["argoproj.io"]
34
+ resources: ["workflows/status"]
35
+ verbs: ["patch"]
36
+ # Pods and logs (for workflow log retrieval)
37
+ - apiGroups: [""]
38
+ resources: ["pods", "pods/log", "events"]
39
+ verbs: ["get", "list"]
40
+ # Kubernetes CronJobs and Jobs
41
+ - apiGroups: ["batch"]
42
+ resources: ["cronjobs", "jobs"]
43
+ verbs: ["get", "list"]
44
+ ---
45
+ # Bind to argo-workflows namespace
46
+ apiVersion: rbac.authorization.k8s.io/v1
47
+ kind: RoleBinding
48
+ metadata:
49
+ name: mcp-reader
50
+ namespace: argo-workflows
51
+ labels:
52
+ app.kubernetes.io/part-of: argo-k8s-mcp
53
+ roleRef:
54
+ apiGroup: rbac.authorization.k8s.io
55
+ kind: ClusterRole
56
+ name: mcp-reader
57
+ subjects:
58
+ - kind: ServiceAccount
59
+ name: mcp-reader
60
+ namespace: argo-workflows
61
+ ---
62
+ # Bind to apps-devops namespace (ArgoCD Applications)
63
+ apiVersion: rbac.authorization.k8s.io/v1
64
+ kind: RoleBinding
65
+ metadata:
66
+ name: mcp-reader
67
+ namespace: apps-devops
68
+ labels:
69
+ app.kubernetes.io/part-of: argo-k8s-mcp
70
+ roleRef:
71
+ apiGroup: rbac.authorization.k8s.io
72
+ kind: ClusterRole
73
+ name: mcp-reader
74
+ subjects:
75
+ - kind: ServiceAccount
76
+ name: mcp-reader
77
+ namespace: argo-workflows