minder-cli 0.2.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.
- minder_cli-0.2.0/.gitignore +11 -0
- minder_cli-0.2.0/LICENSE +201 -0
- minder_cli-0.2.0/PKG-INFO +318 -0
- minder_cli-0.2.0/README.md +282 -0
- minder_cli-0.2.0/pyproject.toml +71 -0
- minder_cli-0.2.0/src/minder/__init__.py +12 -0
- minder_cli-0.2.0/src/minder/api/routers/prompts.py +177 -0
- minder_cli-0.2.0/src/minder/application/__init__.py +1 -0
- minder_cli-0.2.0/src/minder/application/admin/__init__.py +11 -0
- minder_cli-0.2.0/src/minder/application/admin/dto.py +453 -0
- minder_cli-0.2.0/src/minder/application/admin/jobs.py +327 -0
- minder_cli-0.2.0/src/minder/application/admin/use_cases.py +1895 -0
- minder_cli-0.2.0/src/minder/auth/__init__.py +12 -0
- minder_cli-0.2.0/src/minder/auth/context.py +26 -0
- minder_cli-0.2.0/src/minder/auth/middleware.py +70 -0
- minder_cli-0.2.0/src/minder/auth/principal.py +59 -0
- minder_cli-0.2.0/src/minder/auth/rate_limiter.py +89 -0
- minder_cli-0.2.0/src/minder/auth/rbac.py +60 -0
- minder_cli-0.2.0/src/minder/auth/service.py +541 -0
- minder_cli-0.2.0/src/minder/bootstrap/__init__.py +9 -0
- minder_cli-0.2.0/src/minder/bootstrap/providers.py +109 -0
- minder_cli-0.2.0/src/minder/bootstrap/transport.py +807 -0
- minder_cli-0.2.0/src/minder/cache/__init__.py +10 -0
- minder_cli-0.2.0/src/minder/cache/providers.py +140 -0
- minder_cli-0.2.0/src/minder/chunking/__init__.py +4 -0
- minder_cli-0.2.0/src/minder/chunking/code_splitter.py +184 -0
- minder_cli-0.2.0/src/minder/chunking/splitter.py +136 -0
- minder_cli-0.2.0/src/minder/cli.py +1542 -0
- minder_cli-0.2.0/src/minder/config.py +179 -0
- minder_cli-0.2.0/src/minder/continuity.py +363 -0
- minder_cli-0.2.0/src/minder/dev.py +160 -0
- minder_cli-0.2.0/src/minder/embedding/__init__.py +9 -0
- minder_cli-0.2.0/src/minder/embedding/base.py +7 -0
- minder_cli-0.2.0/src/minder/embedding/local.py +65 -0
- minder_cli-0.2.0/src/minder/embedding/openai.py +7 -0
- minder_cli-0.2.0/src/minder/graph/__init__.py +11 -0
- minder_cli-0.2.0/src/minder/graph/edges.py +13 -0
- minder_cli-0.2.0/src/minder/graph/executor.py +127 -0
- minder_cli-0.2.0/src/minder/graph/graph.py +263 -0
- minder_cli-0.2.0/src/minder/graph/nodes/__init__.py +27 -0
- minder_cli-0.2.0/src/minder/graph/nodes/evaluator.py +21 -0
- minder_cli-0.2.0/src/minder/graph/nodes/guard.py +64 -0
- minder_cli-0.2.0/src/minder/graph/nodes/llm.py +59 -0
- minder_cli-0.2.0/src/minder/graph/nodes/planning.py +30 -0
- minder_cli-0.2.0/src/minder/graph/nodes/reasoning.py +87 -0
- minder_cli-0.2.0/src/minder/graph/nodes/reranker.py +141 -0
- minder_cli-0.2.0/src/minder/graph/nodes/retriever.py +86 -0
- minder_cli-0.2.0/src/minder/graph/nodes/verification.py +230 -0
- minder_cli-0.2.0/src/minder/graph/nodes/workflow_planner.py +250 -0
- minder_cli-0.2.0/src/minder/graph/runtime.py +15 -0
- minder_cli-0.2.0/src/minder/graph/state.py +26 -0
- minder_cli-0.2.0/src/minder/llm/__init__.py +5 -0
- minder_cli-0.2.0/src/minder/llm/base.py +14 -0
- minder_cli-0.2.0/src/minder/llm/local.py +381 -0
- minder_cli-0.2.0/src/minder/llm/openai.py +89 -0
- minder_cli-0.2.0/src/minder/models/__init__.py +109 -0
- minder_cli-0.2.0/src/minder/models/base.py +10 -0
- minder_cli-0.2.0/src/minder/models/client.py +137 -0
- minder_cli-0.2.0/src/minder/models/document.py +34 -0
- minder_cli-0.2.0/src/minder/models/error.py +32 -0
- minder_cli-0.2.0/src/minder/models/graph.py +114 -0
- minder_cli-0.2.0/src/minder/models/history.py +32 -0
- minder_cli-0.2.0/src/minder/models/job.py +62 -0
- minder_cli-0.2.0/src/minder/models/prompt.py +41 -0
- minder_cli-0.2.0/src/minder/models/repository.py +62 -0
- minder_cli-0.2.0/src/minder/models/rule.py +68 -0
- minder_cli-0.2.0/src/minder/models/session.py +51 -0
- minder_cli-0.2.0/src/minder/models/skill.py +52 -0
- minder_cli-0.2.0/src/minder/models/user.py +41 -0
- minder_cli-0.2.0/src/minder/models/workflow.py +35 -0
- minder_cli-0.2.0/src/minder/observability/__init__.py +57 -0
- minder_cli-0.2.0/src/minder/observability/audit.py +243 -0
- minder_cli-0.2.0/src/minder/observability/logging.py +253 -0
- minder_cli-0.2.0/src/minder/observability/metrics.py +448 -0
- minder_cli-0.2.0/src/minder/observability/tracing.py +215 -0
- minder_cli-0.2.0/src/minder/presentation/__init__.py +1 -0
- minder_cli-0.2.0/src/minder/presentation/http/__init__.py +1 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/__init__.py +3 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/api.py +1309 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/context.py +94 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/dashboard.py +111 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/jobs.py +208 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/memories.py +185 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/prompts.py +219 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/routes.py +127 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/runtime.py +650 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/search.py +368 -0
- minder_cli-0.2.0/src/minder/presentation/http/admin/skills.py +230 -0
- minder_cli-0.2.0/src/minder/prompts/__init__.py +646 -0
- minder_cli-0.2.0/src/minder/prompts/formatter.py +142 -0
- minder_cli-0.2.0/src/minder/resources/__init__.py +318 -0
- minder_cli-0.2.0/src/minder/retrieval/__init__.py +5 -0
- minder_cli-0.2.0/src/minder/retrieval/hybrid.py +178 -0
- minder_cli-0.2.0/src/minder/retrieval/mmr.py +116 -0
- minder_cli-0.2.0/src/minder/retrieval/multi_hop.py +115 -0
- minder_cli-0.2.0/src/minder/runtime.py +15 -0
- minder_cli-0.2.0/src/minder/server.py +145 -0
- minder_cli-0.2.0/src/minder/store/__init__.py +64 -0
- minder_cli-0.2.0/src/minder/store/document.py +115 -0
- minder_cli-0.2.0/src/minder/store/error.py +82 -0
- minder_cli-0.2.0/src/minder/store/feedback.py +114 -0
- minder_cli-0.2.0/src/minder/store/graph.py +588 -0
- minder_cli-0.2.0/src/minder/store/history.py +57 -0
- minder_cli-0.2.0/src/minder/store/interfaces.py +512 -0
- minder_cli-0.2.0/src/minder/store/milvus/__init__.py +11 -0
- minder_cli-0.2.0/src/minder/store/milvus/client.py +26 -0
- minder_cli-0.2.0/src/minder/store/milvus/collections.py +15 -0
- minder_cli-0.2.0/src/minder/store/milvus/vector_store.py +232 -0
- minder_cli-0.2.0/src/minder/store/mongodb/__init__.py +11 -0
- minder_cli-0.2.0/src/minder/store/mongodb/client.py +49 -0
- minder_cli-0.2.0/src/minder/store/mongodb/indexes.py +90 -0
- minder_cli-0.2.0/src/minder/store/mongodb/operational_store.py +993 -0
- minder_cli-0.2.0/src/minder/store/relational.py +1087 -0
- minder_cli-0.2.0/src/minder/store/repo_state.py +58 -0
- minder_cli-0.2.0/src/minder/store/rule.py +93 -0
- minder_cli-0.2.0/src/minder/store/vector.py +79 -0
- minder_cli-0.2.0/src/minder/tools/__init__.py +47 -0
- minder_cli-0.2.0/src/minder/tools/auth.py +94 -0
- minder_cli-0.2.0/src/minder/tools/graph.py +839 -0
- minder_cli-0.2.0/src/minder/tools/ingest.py +353 -0
- minder_cli-0.2.0/src/minder/tools/memory.py +381 -0
- minder_cli-0.2.0/src/minder/tools/query.py +307 -0
- minder_cli-0.2.0/src/minder/tools/registry.py +269 -0
- minder_cli-0.2.0/src/minder/tools/repo_scanner.py +1266 -0
- minder_cli-0.2.0/src/minder/tools/search.py +15 -0
- minder_cli-0.2.0/src/minder/tools/session.py +316 -0
- minder_cli-0.2.0/src/minder/tools/skills.py +899 -0
- minder_cli-0.2.0/src/minder/tools/workflow.py +215 -0
- minder_cli-0.2.0/src/minder/transport/__init__.py +4 -0
- minder_cli-0.2.0/src/minder/transport/base.py +286 -0
- minder_cli-0.2.0/src/minder/transport/sse.py +252 -0
- minder_cli-0.2.0/src/minder/transport/stdio.py +29 -0
minder_cli-0.2.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 [yyyy] [name of copyright owner]
|
|
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,318 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: minder-cli
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Minder is an AI MCP server for manage your LLM flow development and memory of AI agent.
|
|
5
|
+
Project-URL: Homepage, https://github.com/hiimtrung/minder
|
|
6
|
+
Project-URL: Repository, https://github.com/hiimtrung/minder
|
|
7
|
+
Project-URL: Documentation, https://github.com/hiimtrung/minder/tree/main/docs
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Keywords: ai,cli,code-search,mcp,workflow
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
17
|
+
Requires-Python: >=3.14
|
|
18
|
+
Requires-Dist: fastapi>=0.136.0
|
|
19
|
+
Requires-Dist: httpx>=0.27.0
|
|
20
|
+
Provides-Extra: server
|
|
21
|
+
Requires-Dist: aiosqlite>=0.21.0; extra == 'server'
|
|
22
|
+
Requires-Dist: langgraph>=1.1.4; extra == 'server'
|
|
23
|
+
Requires-Dist: litellm>=1.83.1; extra == 'server'
|
|
24
|
+
Requires-Dist: llama-cpp-python>=0.3.20; extra == 'server'
|
|
25
|
+
Requires-Dist: mcp>=1.26.0; extra == 'server'
|
|
26
|
+
Requires-Dist: motor>=3.7.0; extra == 'server'
|
|
27
|
+
Requires-Dist: passlib[bcrypt]>=1.7.4; extra == 'server'
|
|
28
|
+
Requires-Dist: prometheus-client>=0.24.1; extra == 'server'
|
|
29
|
+
Requires-Dist: pydantic-settings[toml]>=2.13.1; extra == 'server'
|
|
30
|
+
Requires-Dist: pydantic>=2.12.5; extra == 'server'
|
|
31
|
+
Requires-Dist: pyjwt>=2.12.1; extra == 'server'
|
|
32
|
+
Requires-Dist: pymilvus>=2.5.0; extra == 'server'
|
|
33
|
+
Requires-Dist: redis[hiredis]>=6.0.0; extra == 'server'
|
|
34
|
+
Requires-Dist: sqlalchemy[asyncio]>=2.0.48; extra == 'server'
|
|
35
|
+
Description-Content-Type: text/markdown
|
|
36
|
+
|
|
37
|
+
# Minder
|
|
38
|
+
|
|
39
|
+
<p align="center">
|
|
40
|
+
<img src="favicon.png" width="220" alt="Minder logo" />
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
<p align="center">
|
|
44
|
+
<strong>Self-hosted MCP platform for repo-aware engineering intelligence.</strong><br/>
|
|
45
|
+
Search smarter, govern workflows, persist memory, onboard clients, and run over <code>SSE</code> or <code>stdio</code>.
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Why Minder
|
|
51
|
+
|
|
52
|
+
- Repository-aware retrieval across code, docs, and historical errors.
|
|
53
|
+
- Workflow governance that keeps delivery phases explicit and auditable.
|
|
54
|
+
- Persistent memory and session context for long-running engineering tasks.
|
|
55
|
+
- Built-in admin dashboard plus API-first client onboarding.
|
|
56
|
+
- Single platform for Codex, Copilot-style MCP clients, Claude Desktop, and CLI automation.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Quick Start (Local in Minutes)
|
|
61
|
+
|
|
62
|
+
### 1) Download GGUF models
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
./scripts/download_models.sh
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Models are saved to `~/.minder/models`.
|
|
69
|
+
|
|
70
|
+
### 2) Prepare environment
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
cp .env.example .env
|
|
74
|
+
cp src/dashboard/.env.example src/dashboard/.env
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Default local layout:
|
|
78
|
+
- Minder API/Gateway: `http://localhost:8800`
|
|
79
|
+
- Dashboard dev server: `http://localhost:8808/dashboard`
|
|
80
|
+
|
|
81
|
+
### 3) Start infra services
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
docker compose -f docker/docker-compose.local.yml up -d
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
This starts MongoDB, Redis, Milvus Standalone (plus etcd + MinIO).
|
|
88
|
+
|
|
89
|
+
### 4) Run backend
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
PYTHONPATH=src UV_CACHE_DIR=.uv-cache uv run python -m minder.server
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### 5) Run dashboard (dev mode)
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
cd src/dashboard
|
|
99
|
+
bun install
|
|
100
|
+
bun run dev
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Or build static assets for serving via Minder on `:8800`:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
cd src/dashboard && bun run build
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 6) Bootstrap first admin
|
|
110
|
+
|
|
111
|
+
Open [http://localhost:8800/dashboard/setup](http://localhost:8800/dashboard/setup) and create the first admin.
|
|
112
|
+
|
|
113
|
+
Minder returns the bootstrap API key (`mk_...`) exactly once. Save it immediately.
|
|
114
|
+
|
|
115
|
+
### 7) Sign in
|
|
116
|
+
|
|
117
|
+
Open [http://localhost:8800/dashboard/login](http://localhost:8800/dashboard/login) and authenticate with the `mk_...` key.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## System Architecture
|
|
122
|
+
|
|
123
|
+
```mermaid
|
|
124
|
+
flowchart TB
|
|
125
|
+
Browser["Browser Admin"] --> Gateway["Gateway :8800"]
|
|
126
|
+
MCP["Codex · Copilot · Claude Desktop · stdio"] --> Gateway
|
|
127
|
+
|
|
128
|
+
Gateway --> Dashboard["Astro Dashboard\\n/dashboard/*"]
|
|
129
|
+
Gateway --> AdminAPI["Admin HTTP\\n/v1/admin/*"]
|
|
130
|
+
Gateway --> AuthAPI["Token Exchange · Gateway Test\\n/v1/auth/* · /v1/gateway/*"]
|
|
131
|
+
Gateway --> MCPTools["MCP Tool Surface\\nSSE · stdio"]
|
|
132
|
+
|
|
133
|
+
AdminAPI & AuthAPI & MCPTools --> UseCases["Application Use Cases"]
|
|
134
|
+
|
|
135
|
+
UseCases --> Auth["Auth · RBAC · Rate Limiting"]
|
|
136
|
+
UseCases --> Services["Workflow · Memory · Session · Query"]
|
|
137
|
+
|
|
138
|
+
Services --> Mongo["MongoDB"]
|
|
139
|
+
Services --> Redis["Redis"]
|
|
140
|
+
Services --> Milvus["Milvus Standalone"]
|
|
141
|
+
Services --> LLM["Gemma GGUF\\nllama-cpp-python"]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Clean runtime layers
|
|
145
|
+
|
|
146
|
+
```text
|
|
147
|
+
Presentation -> src/minder/presentation/http/admin (HTTP routes, DTOs)
|
|
148
|
+
src/dashboard (Astro admin console)
|
|
149
|
+
Application -> src/minder/application/admin (use cases)
|
|
150
|
+
Domain -> src/minder/models (entities, value objects)
|
|
151
|
+
Infrastructure -> src/minder/store (MongoDB, Milvus, Redis adapters)
|
|
152
|
+
src/minder/auth (principals, middleware, rate limiter)
|
|
153
|
+
src/minder/graph (LangGraph pipeline, nodes)
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Runtime stack
|
|
157
|
+
|
|
158
|
+
| Service | Role | Default Port |
|
|
159
|
+
| --- | --- | --- |
|
|
160
|
+
| Minder API | MCP server, admin HTTP, token exchange | `8800` |
|
|
161
|
+
| Astro Dashboard | Admin console (dev standalone, prod proxied) | `8808` (dev) |
|
|
162
|
+
| MongoDB 7 | Users, clients, sessions | `27017` |
|
|
163
|
+
| Redis 7 | Cache, rate limiting, token sessions | `6379` |
|
|
164
|
+
| Milvus Standalone | Vector index for docs/code/errors | `19530` |
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## MCP Tool Surface
|
|
169
|
+
|
|
170
|
+
| Tool | Description |
|
|
171
|
+
| --- | --- |
|
|
172
|
+
| `minder_query` | End-to-end RAG pipeline: retrieve + reason + verify |
|
|
173
|
+
| `minder_search_code` | Semantic code retrieval across indexed repositories |
|
|
174
|
+
| `minder_search_errors` | Error retrieval with troubleshooting context |
|
|
175
|
+
| `minder_search` | General semantic search over project knowledge |
|
|
176
|
+
| `minder_memory_recall` | Retrieve persisted memory entries |
|
|
177
|
+
| `minder_workflow_get` | Read current workflow state |
|
|
178
|
+
| `minder_workflow_step` | Move workflow to the next step |
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## CLI Distribution
|
|
183
|
+
|
|
184
|
+
Install from PyPI:
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
uv tool install minder
|
|
188
|
+
# or
|
|
189
|
+
pipx install minder
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Typical flow:
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
minder login --client-key mkc_your_client_key --server-url http://localhost:8800/sse
|
|
196
|
+
minder install-ide --target vscode --target claude-code
|
|
197
|
+
minder sync --repo-id <repository-uuid>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Highlights:
|
|
201
|
+
- `minder install-ide` scaffolds repo-local MCP/instruction assets for VS Code, Cursor, and Claude Code.
|
|
202
|
+
- `minder sync` auto-detects cross-repo `branch_relationships` via `.gitmodules` and optional `.minder/branch-topology.toml`.
|
|
203
|
+
|
|
204
|
+
Update commands:
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
minder check-update
|
|
208
|
+
minder self-update --component cli
|
|
209
|
+
minder self-update --component server
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
`self-update --component server` uses PowerShell installer on Windows and bash installer on macOS/Linux.
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## Operator Playbooks
|
|
217
|
+
|
|
218
|
+
### Onboard an MCP client
|
|
219
|
+
|
|
220
|
+
1. Open **Client Registry** in dashboard.
|
|
221
|
+
2. Create client with name, slug, tool scopes, repo scopes.
|
|
222
|
+
3. Save the issued key (`mkc_...`) immediately (shown once).
|
|
223
|
+
4. Use the key via:
|
|
224
|
+
|
|
225
|
+
| Transport | Auth Mechanism |
|
|
226
|
+
| --- | --- |
|
|
227
|
+
| SSE | `X-Minder-Client-Key: mkc_...` header |
|
|
228
|
+
| stdio | `MINDER_CLIENT_API_KEY=mkc_...` env var |
|
|
229
|
+
| OAuth-style | `POST /v1/auth/token-exchange` with client key |
|
|
230
|
+
|
|
231
|
+
### Rotate or revoke key
|
|
232
|
+
|
|
233
|
+
From client detail page:
|
|
234
|
+
- **Rotate Key**: issues new key and invalidates old key.
|
|
235
|
+
- **Revoke**: permanently blocks client.
|
|
236
|
+
|
|
237
|
+
Both actions are audit logged.
|
|
238
|
+
|
|
239
|
+
### Recover admin access
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
PYTHONPATH=src UV_CACHE_DIR=.uv-cache uv run python scripts/reset_admin_api_key.py \
|
|
243
|
+
--username <admin-username>
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Production deployment
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
docker compose -f docker/docker-compose.yml up -d
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
Production topology runs `gateway`, `minder-api`, and `dashboard` behind a single public origin (`:8800`).
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## Configuration
|
|
257
|
+
|
|
258
|
+
Config load order:
|
|
259
|
+
1. `minder.toml`
|
|
260
|
+
2. `MINDER_` environment overrides
|
|
261
|
+
|
|
262
|
+
Key variables:
|
|
263
|
+
|
|
264
|
+
| Variable | Default | Purpose |
|
|
265
|
+
| --- | --- | --- |
|
|
266
|
+
| `MINDER_SERVER__PORT` | `8800` | HTTP listen port |
|
|
267
|
+
| `MINDER_MONGODB__URI` | `mongodb://localhost:27017` | MongoDB URI |
|
|
268
|
+
| `MINDER_REDIS__URI` | `redis://localhost:6379/0` | Redis URI |
|
|
269
|
+
| `MINDER_VECTOR_STORE__URI` | `http://localhost:19530` | Milvus endpoint |
|
|
270
|
+
| `MINDER_LLM__MODEL_PATH` | `~/.minder/models/gemma-4-e2b-it-Q8_0.gguf` | Local LLM model |
|
|
271
|
+
| `MINDER_EMBEDDING__MODEL_PATH` | `~/.minder/models/embeddinggemma-300M-Q8_0.gguf` | Embedding model |
|
|
272
|
+
| `MINDER_CACHE__PROVIDER` | `redis` | `redis` or `lru` |
|
|
273
|
+
| `MINDER_WORKFLOW__ORCHESTRATION_RUNTIME` | `langgraph` | `langgraph` or `simple` |
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## Prerequisites
|
|
278
|
+
|
|
279
|
+
| Requirement | Version |
|
|
280
|
+
| --- | --- |
|
|
281
|
+
| Python | `>= 3.14` |
|
|
282
|
+
| uv | latest |
|
|
283
|
+
| Docker + Compose | v2+ |
|
|
284
|
+
| Bun | `1.2.21+` (dashboard dev only) |
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
## Testing
|
|
289
|
+
|
|
290
|
+
Run all tests:
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
UV_CACHE_DIR=.uv-cache uv run pytest
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
Phase-specific gates:
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
uv run pytest tests/integration/test_phase3_gate.py
|
|
300
|
+
uv run pytest tests/e2e/test_phase4_gateway_auth.py
|
|
301
|
+
uv run pytest tests/integration/test_phase4_3_console_gate.py
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Note: integration tests that hit Milvus/MongoDB/Redis require Docker services running.
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## Documentation Index
|
|
309
|
+
|
|
310
|
+
- [System Design](docs/system-design.md)
|
|
311
|
+
- [Project Plan](docs/PLAN.md)
|
|
312
|
+
- [Project Progress](docs/PROJECT_PROGRESS.md)
|
|
313
|
+
- [Task Breakdown](docs/TASK_BREAKDOWN.md)
|
|
314
|
+
- [Local Setup Guide](docs/guides/local-setup.md)
|
|
315
|
+
- [Minder CLI Guide](docs/guides/minder-cli.md)
|
|
316
|
+
- [Admin & Client Onboarding](docs/guides/admin-client-onboarding.md)
|
|
317
|
+
- [Production Deployment](docs/guides/production-deployment.md)
|
|
318
|
+
- [Gateway Auth Design](docs/design/mcp-gateway-auth-dashboard.md)
|