orcho-mcp 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.
- orcho_mcp-0.1.0/LICENSE +201 -0
- orcho_mcp-0.1.0/PKG-INFO +145 -0
- orcho_mcp-0.1.0/README.md +122 -0
- orcho_mcp-0.1.0/pyproject.toml +85 -0
- orcho_mcp-0.1.0/setup.cfg +4 -0
- orcho_mcp-0.1.0/src/orcho_mcp/__init__.py +10 -0
- orcho_mcp-0.1.0/src/orcho_mcp/__main__.py +17 -0
- orcho_mcp-0.1.0/src/orcho_mcp/_onboarding/getting_started.md +261 -0
- orcho_mcp-0.1.0/src/orcho_mcp/authoring/__init__.py +19 -0
- orcho_mcp-0.1.0/src/orcho_mcp/authoring/plan_validation.py +81 -0
- orcho_mcp-0.1.0/src/orcho_mcp/authoring/prompt_resolution.py +58 -0
- orcho_mcp-0.1.0/src/orcho_mcp/client_interactions.py +135 -0
- orcho_mcp-0.1.0/src/orcho_mcp/discovery.py +109 -0
- orcho_mcp-0.1.0/src/orcho_mcp/errors.py +57 -0
- orcho_mcp-0.1.0/src/orcho_mcp/event_tail.py +191 -0
- orcho_mcp-0.1.0/src/orcho_mcp/inspection/__init__.py +21 -0
- orcho_mcp-0.1.0/src/orcho_mcp/inspection/diagnosis.py +577 -0
- orcho_mcp-0.1.0/src/orcho_mcp/inspection/diff.py +78 -0
- orcho_mcp-0.1.0/src/orcho_mcp/inspection/evidence.py +614 -0
- orcho_mcp-0.1.0/src/orcho_mcp/inspection/verification_cockpit.py +189 -0
- orcho_mcp-0.1.0/src/orcho_mcp/instance.py +13 -0
- orcho_mcp-0.1.0/src/orcho_mcp/observe/__init__.py +14 -0
- orcho_mcp-0.1.0/src/orcho_mcp/observe/handoff_hints.py +516 -0
- orcho_mcp-0.1.0/src/orcho_mcp/observe/live_status.py +376 -0
- orcho_mcp-0.1.0/src/orcho_mcp/observe/observation.py +76 -0
- orcho_mcp-0.1.0/src/orcho_mcp/observe/resource_subscriptions.py +155 -0
- orcho_mcp-0.1.0/src/orcho_mcp/observe/summary.py +430 -0
- orcho_mcp-0.1.0/src/orcho_mcp/observe/watch.py +409 -0
- orcho_mcp-0.1.0/src/orcho_mcp/onboarding.py +77 -0
- orcho_mcp-0.1.0/src/orcho_mcp/prompts.py +81 -0
- orcho_mcp-0.1.0/src/orcho_mcp/resources/__init__.py +77 -0
- orcho_mcp-0.1.0/src/orcho_mcp/resources/helpers.py +44 -0
- orcho_mcp-0.1.0/src/orcho_mcp/resources/profiles.py +42 -0
- orcho_mcp-0.1.0/src/orcho_mcp/resources/projects.py +33 -0
- orcho_mcp-0.1.0/src/orcho_mcp/resources/runs.py +134 -0
- orcho_mcp-0.1.0/src/orcho_mcp/resources/workflows.py +32 -0
- orcho_mcp-0.1.0/src/orcho_mcp/resources/workspace.py +24 -0
- orcho_mcp-0.1.0/src/orcho_mcp/run_control/__init__.py +24 -0
- orcho_mcp-0.1.0/src/orcho_mcp/run_control/advice.py +206 -0
- orcho_mcp-0.1.0/src/orcho_mcp/run_control/delivery.py +55 -0
- orcho_mcp-0.1.0/src/orcho_mcp/run_control/handoff.py +262 -0
- orcho_mcp-0.1.0/src/orcho_mcp/run_control/lifecycle.py +617 -0
- orcho_mcp-0.1.0/src/orcho_mcp/run_control/typed_pilot.py +398 -0
- orcho_mcp-0.1.0/src/orcho_mcp/schemas/__init__.py +247 -0
- orcho_mcp-0.1.0/src/orcho_mcp/schemas/authoring.py +68 -0
- orcho_mcp-0.1.0/src/orcho_mcp/schemas/inspection.py +757 -0
- orcho_mcp-0.1.0/src/orcho_mcp/schemas/observe.py +1030 -0
- orcho_mcp-0.1.0/src/orcho_mcp/schemas/read.py +828 -0
- orcho_mcp-0.1.0/src/orcho_mcp/schemas/run_control.py +823 -0
- orcho_mcp-0.1.0/src/orcho_mcp/schemas/shared.py +337 -0
- orcho_mcp-0.1.0/src/orcho_mcp/schemas/workflows.py +256 -0
- orcho_mcp-0.1.0/src/orcho_mcp/schemas/workspace.py +282 -0
- orcho_mcp-0.1.0/src/orcho_mcp/server.py +86 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/__init__.py +8 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/delivery_gate.py +549 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/errors.py +104 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/meta_summary.py +264 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/pending_decisions.py +465 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/read_queries.py +325 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/run_artifacts.py +188 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/run_control_boundary.py +94 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/run_events.py +31 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/run_lineage.py +296 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/run_lookup.py +81 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/run_projection.py +2567 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/run_reads.py +416 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/status_merge.py +181 -0
- orcho_mcp-0.1.0/src/orcho_mcp/services/workflow_recipes.py +477 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/__init__.py +71 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/cancel.py +100 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/handle.py +47 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/lifecycle.py +105 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/manager.py +147 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/paths.py +149 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/process.py +26 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/recovery.py +99 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/resume.py +203 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/spawn.py +213 -0
- orcho_mcp-0.1.0/src/orcho_mcp/supervisor/state.py +156 -0
- orcho_mcp-0.1.0/src/orcho_mcp/tool_error_delivery.py +103 -0
- orcho_mcp-0.1.0/src/orcho_mcp/tools.py +1451 -0
- orcho_mcp-0.1.0/src/orcho_mcp/workflows.py +507 -0
- orcho_mcp-0.1.0/src/orcho_mcp/workspace_state.py +471 -0
- orcho_mcp-0.1.0/src/orcho_mcp.egg-info/PKG-INFO +145 -0
- orcho_mcp-0.1.0/src/orcho_mcp.egg-info/SOURCES.txt +87 -0
- orcho_mcp-0.1.0/src/orcho_mcp.egg-info/dependency_links.txt +1 -0
- orcho_mcp-0.1.0/src/orcho_mcp.egg-info/entry_points.txt +2 -0
- orcho_mcp-0.1.0/src/orcho_mcp.egg-info/requires.txt +10 -0
- orcho_mcp-0.1.0/src/orcho_mcp.egg-info/top_level.txt +1 -0
orcho_mcp-0.1.0/LICENSE
ADDED
|
@@ -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 Symphos
|
|
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.
|
orcho_mcp-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: orcho-mcp
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Orcho — Model Context Protocol server for Claude Code, Cursor, Zed, and other MCP-speaking clients
|
|
5
|
+
Author-email: Symphos <founder@symphos.ai>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/symphos-ai/orcho-mcp
|
|
8
|
+
Project-URL: Repository, https://github.com/symphos-ai/orcho-mcp
|
|
9
|
+
Project-URL: Issues, https://github.com/symphos-ai/orcho-mcp/issues
|
|
10
|
+
Requires-Python: >=3.12
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: orcho-core<0.2,>=0.1.0
|
|
14
|
+
Requires-Dist: mcp>=1.2
|
|
15
|
+
Requires-Dist: pydantic>=2.6
|
|
16
|
+
Requires-Dist: anyio>=4.4
|
|
17
|
+
Provides-Extra: dev
|
|
18
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
19
|
+
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
|
|
20
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
21
|
+
Requires-Dist: ruff>=0.5; extra == "dev"
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
# orcho-mcp
|
|
25
|
+
|
|
26
|
+
[](https://pypi.org/project/orcho-mcp/)
|
|
27
|
+
[](https://pypi.org/project/orcho-mcp/)
|
|
28
|
+
[](LICENSE)
|
|
29
|
+
[](https://github.com/symphos-ai/orcho-mcp/actions/workflows/ci.yml)
|
|
30
|
+
[](https://github.com/symphos-ai/orcho-mcp/actions/workflows/dco.yml)
|
|
31
|
+
[](https://github.com/symphos-ai/orcho-mcp/actions/workflows/release.yml)
|
|
32
|
+
[](https://codecov.io/gh/symphos-ai/orcho-mcp)
|
|
33
|
+
[](https://scorecard.dev/viewer/?uri=github.com/symphos-ai/orcho-mcp)
|
|
34
|
+
|
|
35
|
+
[Model Context Protocol](https://modelcontextprotocol.io) server for Orcho.
|
|
36
|
+
|
|
37
|
+
Exposes orcho's runtime to MCP-aware clients (Claude Code, Cursor, Zed, and other MCP-speaking tools) over stdio. Full async control loop — act, observe, decide, inspect — without raw log scraping.
|
|
38
|
+
|
|
39
|
+
> **Status:** ``v0.1.0`` public release line. Core control loop surfaces are available:
|
|
40
|
+
>
|
|
41
|
+
> - **Act**: ``orcho_run_start`` / ``orcho_run_resume`` / ``orcho_run_cancel`` with L4-test-pinned semantics (process-group signal handling, supervisor-owned restart-recovery, race-aware cancel).
|
|
42
|
+
> - **Observe**: ``orcho_run_status`` / ``orcho_run_history`` / ``orcho_run_metrics`` / ``orcho_run_events_tail`` — read-only, polling-friendly.
|
|
43
|
+
> - **Decide**: ``orcho_phase_handoff_decide`` — generic phase-handoff state transition for paused runs. The pipeline pauses with ``status=awaiting_phase_handoff`` when a phase's declared ``handoff`` policy fires; ``continue`` / ``retry_feedback`` / ``halt`` write a decision artifact (``halt`` flips ``meta.status`` to ``halted`` synchronously). Pure state transition; never spawns.
|
|
44
|
+
> - **Inspect**: ``orcho_run_evidence`` — typed inspection slices (``plan`` / ``findings`` / ``commands`` / ``artifacts`` / ``errors`` / ``sub_runs`` / ``all``) with severity filter (P0..P3).
|
|
45
|
+
>
|
|
46
|
+
> Live progress: ``orcho_run_watch`` emits ordered ``notifications/progress`` when the MCP request carries a ``progressToken``. Clients that don't carry one poll ``orcho_run_status`` / ``orcho_run_events_tail`` against the same run state.
|
|
47
|
+
|
|
48
|
+
## Install
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pipx install 'orcho[mcp]'
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
For a project-managed Python environment:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pip install orcho-mcp
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
This pulls `orcho-core` (the engine), the official `mcp` Python SDK, and the runtime pieces orcho-mcp depends on.
|
|
61
|
+
|
|
62
|
+
## Create a workspace
|
|
63
|
+
|
|
64
|
+
Orcho writes run state into an Orcho workspace. Start by pointing it at
|
|
65
|
+
the folder that groups your project repos:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
orcho workspace init ~/www/my-workspace
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The command creates `~/www/my-workspace/workspace-orchestrator/`,
|
|
72
|
+
including `.orcho/` settings and extension-point guides, and prints the
|
|
73
|
+
MCP config snippet for that workspace. To write the snippet directly
|
|
74
|
+
into a project-local MCP config:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
ORCHO_MCP_COMMAND="$(command -v orcho-mcp)"
|
|
78
|
+
|
|
79
|
+
orcho workspace init ~/www/my-workspace \
|
|
80
|
+
--mcp-config ~/www/my-workspace/.mcp.json \
|
|
81
|
+
--mcp-server-name orcho-my-workspace \
|
|
82
|
+
--orcho-mcp-command "$ORCHO_MCP_COMMAND"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
`ORCHO_MCP_COMMAND` must point to the command your MCP client can run.
|
|
86
|
+
For packaged installs this is normally `orcho-mcp`. For source installs,
|
|
87
|
+
use the absolute path inside the Orcho environment, for example
|
|
88
|
+
`/Users/me/orcho-preview/orcho-core/.venv/bin/orcho-mcp`.
|
|
89
|
+
|
|
90
|
+
Each MCP server process owns one workspace through `ORCHO_WORKSPACE`.
|
|
91
|
+
For multiple workspaces, add multiple MCP server entries.
|
|
92
|
+
|
|
93
|
+
## Register with an MCP-aware client
|
|
94
|
+
|
|
95
|
+
Each client has its own MCP registry/config format. Use
|
|
96
|
+
[`docs/mcp_client_setup.md`](docs/mcp_client_setup.md) for copy-paste
|
|
97
|
+
instructions for Codex CLI/app, Claude Code, Gemini CLI, the Claude app,
|
|
98
|
+
and Antigravity.
|
|
99
|
+
|
|
100
|
+
## What's inside
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
npx @modelcontextprotocol/inspector orcho-mcp
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Opens a web UI on localhost showing every registered tool, resource, and prompt with full JSON schemas — Anthropic's official Inspector ≈ Swagger UI for MCP.
|
|
107
|
+
|
|
108
|
+
A static catalogue is also committed at [`docs/mcp_schema.json`](docs/mcp_schema.json) — the same shape, snapshotted in CI.
|
|
109
|
+
|
|
110
|
+
## Control loop
|
|
111
|
+
|
|
112
|
+
The full contract — **starting**, **observing**, **resuming**, **cancelling**, **deciding** (QA gate), and **inspecting** runs through the MCP wire — lives in [`docs/run_lifecycle.md`](docs/run_lifecycle.md). Tool docstrings stay terse; that file is the long-form reference.
|
|
113
|
+
|
|
114
|
+
Tool naming is consistent: every run-lifecycle tool is `orcho_run_<verb>`. State-transition and inspection tools sit beside that group with their own names:
|
|
115
|
+
|
|
116
|
+
| Group | Tools |
|
|
117
|
+
|---|---|
|
|
118
|
+
| **Act** | `orcho_run_start`, `orcho_run_resume`, `orcho_run_cancel` |
|
|
119
|
+
| **Observe** | `orcho_run_status`, `orcho_run_history`, `orcho_run_metrics`, `orcho_run_events_tail` |
|
|
120
|
+
| **Decide** | `orcho_phase_handoff_decide` |
|
|
121
|
+
| **Inspect** | `orcho_run_evidence`, `orcho_run_diff` |
|
|
122
|
+
|
|
123
|
+
For an end-to-end walkthrough of the full control loop with code, see [`docs/control_loop_walkthrough.md`](docs/control_loop_walkthrough.md).
|
|
124
|
+
|
|
125
|
+
## Architecture
|
|
126
|
+
|
|
127
|
+
orcho-mcp is one of the public Orcho runtime packages:
|
|
128
|
+
|
|
129
|
+
- `orcho-core` — pipeline runtime + CLI (Apache-2.0).
|
|
130
|
+
- **`orcho-mcp`** — MCP server, this repo (Apache-2.0).
|
|
131
|
+
|
|
132
|
+
The post-v1 cross-MCP consumer roadmap (orcho-as-MCP-client — pipeline agents calling external GitHub / Linear / Slack MCP servers) is documented in `orcho-core/docs/plans/2026-05-06-cross-mcp-orchestration.md`.
|
|
133
|
+
|
|
134
|
+
For contributor-facing architecture and test guidance:
|
|
135
|
+
|
|
136
|
+
- [`docs/architecture/mcp_boundaries.md`](docs/architecture/mcp_boundaries.md)
|
|
137
|
+
describes the package boundaries enforced by the architecture tests.
|
|
138
|
+
- [`docs/architecture/observation_delivery.md`](docs/architecture/observation_delivery.md)
|
|
139
|
+
defines the durable replay contract for MCP observation and notification use.
|
|
140
|
+
- [`docs/testing.md`](docs/testing.md) explains the test philosophy, layer model,
|
|
141
|
+
fixture style, and verification commands.
|
|
142
|
+
|
|
143
|
+
## License
|
|
144
|
+
|
|
145
|
+
Apache-2.0. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# orcho-mcp
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/orcho-mcp/)
|
|
4
|
+
[](https://pypi.org/project/orcho-mcp/)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://github.com/symphos-ai/orcho-mcp/actions/workflows/ci.yml)
|
|
7
|
+
[](https://github.com/symphos-ai/orcho-mcp/actions/workflows/dco.yml)
|
|
8
|
+
[](https://github.com/symphos-ai/orcho-mcp/actions/workflows/release.yml)
|
|
9
|
+
[](https://codecov.io/gh/symphos-ai/orcho-mcp)
|
|
10
|
+
[](https://scorecard.dev/viewer/?uri=github.com/symphos-ai/orcho-mcp)
|
|
11
|
+
|
|
12
|
+
[Model Context Protocol](https://modelcontextprotocol.io) server for Orcho.
|
|
13
|
+
|
|
14
|
+
Exposes orcho's runtime to MCP-aware clients (Claude Code, Cursor, Zed, and other MCP-speaking tools) over stdio. Full async control loop — act, observe, decide, inspect — without raw log scraping.
|
|
15
|
+
|
|
16
|
+
> **Status:** ``v0.1.0`` public release line. Core control loop surfaces are available:
|
|
17
|
+
>
|
|
18
|
+
> - **Act**: ``orcho_run_start`` / ``orcho_run_resume`` / ``orcho_run_cancel`` with L4-test-pinned semantics (process-group signal handling, supervisor-owned restart-recovery, race-aware cancel).
|
|
19
|
+
> - **Observe**: ``orcho_run_status`` / ``orcho_run_history`` / ``orcho_run_metrics`` / ``orcho_run_events_tail`` — read-only, polling-friendly.
|
|
20
|
+
> - **Decide**: ``orcho_phase_handoff_decide`` — generic phase-handoff state transition for paused runs. The pipeline pauses with ``status=awaiting_phase_handoff`` when a phase's declared ``handoff`` policy fires; ``continue`` / ``retry_feedback`` / ``halt`` write a decision artifact (``halt`` flips ``meta.status`` to ``halted`` synchronously). Pure state transition; never spawns.
|
|
21
|
+
> - **Inspect**: ``orcho_run_evidence`` — typed inspection slices (``plan`` / ``findings`` / ``commands`` / ``artifacts`` / ``errors`` / ``sub_runs`` / ``all``) with severity filter (P0..P3).
|
|
22
|
+
>
|
|
23
|
+
> Live progress: ``orcho_run_watch`` emits ordered ``notifications/progress`` when the MCP request carries a ``progressToken``. Clients that don't carry one poll ``orcho_run_status`` / ``orcho_run_events_tail`` against the same run state.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pipx install 'orcho[mcp]'
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
For a project-managed Python environment:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pip install orcho-mcp
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This pulls `orcho-core` (the engine), the official `mcp` Python SDK, and the runtime pieces orcho-mcp depends on.
|
|
38
|
+
|
|
39
|
+
## Create a workspace
|
|
40
|
+
|
|
41
|
+
Orcho writes run state into an Orcho workspace. Start by pointing it at
|
|
42
|
+
the folder that groups your project repos:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
orcho workspace init ~/www/my-workspace
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The command creates `~/www/my-workspace/workspace-orchestrator/`,
|
|
49
|
+
including `.orcho/` settings and extension-point guides, and prints the
|
|
50
|
+
MCP config snippet for that workspace. To write the snippet directly
|
|
51
|
+
into a project-local MCP config:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
ORCHO_MCP_COMMAND="$(command -v orcho-mcp)"
|
|
55
|
+
|
|
56
|
+
orcho workspace init ~/www/my-workspace \
|
|
57
|
+
--mcp-config ~/www/my-workspace/.mcp.json \
|
|
58
|
+
--mcp-server-name orcho-my-workspace \
|
|
59
|
+
--orcho-mcp-command "$ORCHO_MCP_COMMAND"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
`ORCHO_MCP_COMMAND` must point to the command your MCP client can run.
|
|
63
|
+
For packaged installs this is normally `orcho-mcp`. For source installs,
|
|
64
|
+
use the absolute path inside the Orcho environment, for example
|
|
65
|
+
`/Users/me/orcho-preview/orcho-core/.venv/bin/orcho-mcp`.
|
|
66
|
+
|
|
67
|
+
Each MCP server process owns one workspace through `ORCHO_WORKSPACE`.
|
|
68
|
+
For multiple workspaces, add multiple MCP server entries.
|
|
69
|
+
|
|
70
|
+
## Register with an MCP-aware client
|
|
71
|
+
|
|
72
|
+
Each client has its own MCP registry/config format. Use
|
|
73
|
+
[`docs/mcp_client_setup.md`](docs/mcp_client_setup.md) for copy-paste
|
|
74
|
+
instructions for Codex CLI/app, Claude Code, Gemini CLI, the Claude app,
|
|
75
|
+
and Antigravity.
|
|
76
|
+
|
|
77
|
+
## What's inside
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npx @modelcontextprotocol/inspector orcho-mcp
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Opens a web UI on localhost showing every registered tool, resource, and prompt with full JSON schemas — Anthropic's official Inspector ≈ Swagger UI for MCP.
|
|
84
|
+
|
|
85
|
+
A static catalogue is also committed at [`docs/mcp_schema.json`](docs/mcp_schema.json) — the same shape, snapshotted in CI.
|
|
86
|
+
|
|
87
|
+
## Control loop
|
|
88
|
+
|
|
89
|
+
The full contract — **starting**, **observing**, **resuming**, **cancelling**, **deciding** (QA gate), and **inspecting** runs through the MCP wire — lives in [`docs/run_lifecycle.md`](docs/run_lifecycle.md). Tool docstrings stay terse; that file is the long-form reference.
|
|
90
|
+
|
|
91
|
+
Tool naming is consistent: every run-lifecycle tool is `orcho_run_<verb>`. State-transition and inspection tools sit beside that group with their own names:
|
|
92
|
+
|
|
93
|
+
| Group | Tools |
|
|
94
|
+
|---|---|
|
|
95
|
+
| **Act** | `orcho_run_start`, `orcho_run_resume`, `orcho_run_cancel` |
|
|
96
|
+
| **Observe** | `orcho_run_status`, `orcho_run_history`, `orcho_run_metrics`, `orcho_run_events_tail` |
|
|
97
|
+
| **Decide** | `orcho_phase_handoff_decide` |
|
|
98
|
+
| **Inspect** | `orcho_run_evidence`, `orcho_run_diff` |
|
|
99
|
+
|
|
100
|
+
For an end-to-end walkthrough of the full control loop with code, see [`docs/control_loop_walkthrough.md`](docs/control_loop_walkthrough.md).
|
|
101
|
+
|
|
102
|
+
## Architecture
|
|
103
|
+
|
|
104
|
+
orcho-mcp is one of the public Orcho runtime packages:
|
|
105
|
+
|
|
106
|
+
- `orcho-core` — pipeline runtime + CLI (Apache-2.0).
|
|
107
|
+
- **`orcho-mcp`** — MCP server, this repo (Apache-2.0).
|
|
108
|
+
|
|
109
|
+
The post-v1 cross-MCP consumer roadmap (orcho-as-MCP-client — pipeline agents calling external GitHub / Linear / Slack MCP servers) is documented in `orcho-core/docs/plans/2026-05-06-cross-mcp-orchestration.md`.
|
|
110
|
+
|
|
111
|
+
For contributor-facing architecture and test guidance:
|
|
112
|
+
|
|
113
|
+
- [`docs/architecture/mcp_boundaries.md`](docs/architecture/mcp_boundaries.md)
|
|
114
|
+
describes the package boundaries enforced by the architecture tests.
|
|
115
|
+
- [`docs/architecture/observation_delivery.md`](docs/architecture/observation_delivery.md)
|
|
116
|
+
defines the durable replay contract for MCP observation and notification use.
|
|
117
|
+
- [`docs/testing.md`](docs/testing.md) explains the test philosophy, layer model,
|
|
118
|
+
fixture style, and verification commands.
|
|
119
|
+
|
|
120
|
+
## License
|
|
121
|
+
|
|
122
|
+
Apache-2.0. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "orcho-mcp"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Orcho — Model Context Protocol server for Claude Code, Cursor, Zed, and other MCP-speaking clients"
|
|
9
|
+
requires-python = ">=3.12"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [{ name = "Symphos", email = "founder@symphos.ai" }]
|
|
14
|
+
|
|
15
|
+
dependencies = [
|
|
16
|
+
# Pipeline runtime + the public APIs we depend on:
|
|
17
|
+
# - pipeline.argv.build_orch_argv (public argv builder)
|
|
18
|
+
# - ORCHO_RUN_ID env / --run-id flag
|
|
19
|
+
# - core.observability.events.append_event (cross-process append)
|
|
20
|
+
"orcho-core>=0.1.0,<0.2",
|
|
21
|
+
# Anthropic's MCP SDK — server + client primitives.
|
|
22
|
+
"mcp>=1.2",
|
|
23
|
+
# JSON Schema generation for tool I/O.
|
|
24
|
+
"pydantic>=2.6",
|
|
25
|
+
# Async helpers used by FastMCP's stdio transport.
|
|
26
|
+
"anyio>=4.4",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.optional-dependencies]
|
|
30
|
+
dev = ["pytest>=8.0", "pytest-asyncio>=0.23", "pytest-cov>=4.0", "ruff>=0.5"]
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://github.com/symphos-ai/orcho-mcp"
|
|
34
|
+
Repository = "https://github.com/symphos-ai/orcho-mcp"
|
|
35
|
+
Issues = "https://github.com/symphos-ai/orcho-mcp/issues"
|
|
36
|
+
|
|
37
|
+
[project.scripts]
|
|
38
|
+
orcho-mcp = "orcho_mcp.server:main"
|
|
39
|
+
|
|
40
|
+
[tool.setuptools.packages.find]
|
|
41
|
+
where = ["src"]
|
|
42
|
+
include = ["orcho_mcp*"]
|
|
43
|
+
|
|
44
|
+
[tool.setuptools.package-data]
|
|
45
|
+
# Bundle the user-facing onboarding markdown so it's available under
|
|
46
|
+
# non-editable wheel installs, not just `pip install -e .`.
|
|
47
|
+
orcho_mcp = ["_onboarding/*.md"]
|
|
48
|
+
|
|
49
|
+
[tool.pytest.ini_options]
|
|
50
|
+
testpaths = ["tests"]
|
|
51
|
+
# ``"src"`` puts THIS checkout's ``orcho_mcp`` package ahead of any editable
|
|
52
|
+
# install on ``sys.path``, so a bare ``pytest`` exercises the source under
|
|
53
|
+
# development rather than a stale stable install of the same dist.
|
|
54
|
+
# ``"."`` makes ``tests.fixtures.*`` helpers resolvable under default
|
|
55
|
+
# ``--import-mode=prepend``. ``tests/`` and its subdirectories are
|
|
56
|
+
# intentionally NOT packages (no ``__init__.py``) to avoid shadowing the ``mcp``
|
|
57
|
+
# SDK at import time inside test modules; pytest treats them as namespace
|
|
58
|
+
# packages once ``tests/`` is on path.
|
|
59
|
+
pythonpath = ["src", "."]
|
|
60
|
+
addopts = "-ra -m 'not mcp_integration'"
|
|
61
|
+
markers = [
|
|
62
|
+
"unit: pure unit tests for local handlers and services.",
|
|
63
|
+
"integration: multi-module tests or tests that exercise subprocess/protocol boundaries.",
|
|
64
|
+
"acceptance: end-to-end user-visible MCP behaviour checks.",
|
|
65
|
+
"smoke: small broad-coverage checks suitable for quick confidence.",
|
|
66
|
+
"serial: must run outside xdist because it uses shared process, filesystem, git, env, port, or global event state.",
|
|
67
|
+
"mcp_protocol: initialize/list/call stdio protocol, resources, prompts, subscriptions, and schema framing.",
|
|
68
|
+
"mcp_run_control: run start/status/control, typed pilot, async pilot, and Orcho run lifecycle integration.",
|
|
69
|
+
"mcp_supervisor: subprocess supervisor, spawn, process lifecycle, and run directory management.",
|
|
70
|
+
"mcp_observe: watch, event tailing, summaries, progress, and silent/terminal parity.",
|
|
71
|
+
"mcp_services: read/query services, workspace state, path resolution, and domain service helpers.",
|
|
72
|
+
"mcp_schema: tool/resource/prompt catalog snapshots and JSON schema contract checks.",
|
|
73
|
+
"mcp_integration: real pipeline subprocess via --mock; slower; gated. Run with `pytest -m mcp_integration`.",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[tool.ruff]
|
|
77
|
+
target-version = "py312"
|
|
78
|
+
line-length = 100
|
|
79
|
+
|
|
80
|
+
[tool.ruff.lint]
|
|
81
|
+
select = ["E", "F", "I", "UP", "B", "SIM"]
|
|
82
|
+
ignore = ["E501"]
|
|
83
|
+
|
|
84
|
+
[tool.ruff.lint.isort]
|
|
85
|
+
combine-as-imports = true
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""orcho_mcp — Model Context Protocol server for the Orcho pipeline engine.
|
|
2
|
+
|
|
3
|
+
Exposes orcho's runtime to MCP-aware clients (Claude Code, Cursor, Zed,
|
|
4
|
+
and other MCP-speaking tools) over stdio transport. The package exposes
|
|
5
|
+
read tools, run-control tools, resources, MCP prompts, progress
|
|
6
|
+
notifications, and workflow helpers.
|
|
7
|
+
|
|
8
|
+
Versioning follows the public Orcho release tags.
|
|
9
|
+
"""
|
|
10
|
+
__version__ = "0.1.0"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Allow ``python -m orcho_mcp`` to start the server.
|
|
2
|
+
|
|
3
|
+
Console-script users hit ``orcho_mcp.server:main`` directly via the
|
|
4
|
+
setuptools entry-point stub, but ``python -m orcho_mcp`` is the
|
|
5
|
+
universal fallback that works without ``pip install`` happening to
|
|
6
|
+
register the script. Importantly, it goes through the canonical
|
|
7
|
+
``orcho_mcp.server`` import path — not ``__main__`` — so the FastMCP
|
|
8
|
+
instance loaded by ``tools.py`` (etc.) matches the one ``main()`` runs.
|
|
9
|
+
"""
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import sys
|
|
13
|
+
|
|
14
|
+
from orcho_mcp.server import main
|
|
15
|
+
|
|
16
|
+
if __name__ == "__main__":
|
|
17
|
+
sys.exit(main())
|