kitden 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kitden-0.1.1/.gitignore +19 -0
- kitden-0.1.1/LICENSE +202 -0
- kitden-0.1.1/PKG-INFO +129 -0
- kitden-0.1.1/README.md +102 -0
- kitden-0.1.1/pyproject.toml +73 -0
- kitden-0.1.1/src/kitden/__init__.py +3 -0
- kitden-0.1.1/src/kitden/__main__.py +7 -0
- kitden-0.1.1/src/kitden/changes/__init__.py +0 -0
- kitden-0.1.1/src/kitden/changes/actions.py +91 -0
- kitden-0.1.1/src/kitden/changes/atomic.py +60 -0
- kitden-0.1.1/src/kitden/changes/backup.py +113 -0
- kitden-0.1.1/src/kitden/changes/client_cli.py +55 -0
- kitden-0.1.1/src/kitden/changes/engine.py +407 -0
- kitden-0.1.1/src/kitden/changes/json_splice.py +236 -0
- kitden-0.1.1/src/kitden/changes/toml_edit.py +69 -0
- kitden-0.1.1/src/kitden/cli.py +228 -0
- kitden-0.1.1/src/kitden/clients/__init__.py +0 -0
- kitden-0.1.1/src/kitden/clients/base.py +306 -0
- kitden-0.1.1/src/kitden/clients/claude_code.py +397 -0
- kitden-0.1.1/src/kitden/clients/codex.py +347 -0
- kitden-0.1.1/src/kitden/clients/cursor.py +419 -0
- kitden-0.1.1/src/kitden/clients/versions.py +58 -0
- kitden-0.1.1/src/kitden/command.py +17 -0
- kitden-0.1.1/src/kitden/gateways.py +134 -0
- kitden-0.1.1/src/kitden/mcp_server.py +148 -0
- kitden-0.1.1/src/kitden/model.py +273 -0
- kitden-0.1.1/src/kitden/page.py +157 -0
- kitden-0.1.1/src/kitden/redact.py +134 -0
- kitden-0.1.1/src/kitden/views/__init__.py +0 -0
- kitden-0.1.1/src/kitden/views/after.py +40 -0
- kitden-0.1.1/src/kitden/views/commands.py +131 -0
- kitden-0.1.1/src/kitden/views/effective.py +123 -0
- kitden-0.1.1/src/kitden/views/explain.py +95 -0
- kitden-0.1.1/src/kitden/views/findings.py +215 -0
- kitden-0.1.1/src/kitden/views/gateway_view.py +76 -0
- kitden-0.1.1/src/kitden/views/inventory.py +101 -0
- kitden-0.1.1/src/kitden/views/load_map.py +227 -0
- kitden-0.1.1/src/kitden/views/overview.py +179 -0
- kitden-0.1.1/src/kitden/views/setup_server.py +88 -0
- kitden-0.1.1/src/kitden/watch.py +96 -0
- kitden-0.1.1/src/kitden/web/__init__.py +0 -0
- kitden-0.1.1/src/kitden/web/app.py +514 -0
- kitden-0.1.1/src/kitden/web/security.py +112 -0
- kitden-0.1.1/src/kitden/web/static/index.html +48 -0
- kitden-0.1.1/src/kitden/web/static/js/agents.js +51 -0
- kitden-0.1.1/src/kitden/web/static/js/api.js +26 -0
- kitden-0.1.1/src/kitden/web/static/js/app.js +210 -0
- kitden-0.1.1/src/kitden/web/static/js/changes.js +93 -0
- kitden-0.1.1/src/kitden/web/static/js/dom.js +47 -0
- kitden-0.1.1/src/kitden/web/static/js/gateway.js +285 -0
- kitden-0.1.1/src/kitden/web/static/js/map.js +215 -0
- kitden-0.1.1/src/kitden/web/static/js/motion.js +51 -0
- kitden-0.1.1/src/kitden/web/static/js/overview.js +107 -0
- kitden-0.1.1/src/kitden/web/static/js/panel.js +604 -0
- kitden-0.1.1/src/kitden/web/static/js/parts.js +105 -0
- kitden-0.1.1/src/kitden/web/static/js/store.js +129 -0
- kitden-0.1.1/src/kitden/web/static/style.css +341 -0
kitden-0.1.1/.gitignore
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.DS_Store
|
|
2
|
+
.env
|
|
3
|
+
.env.*
|
|
4
|
+
!.env.example
|
|
5
|
+
*.pem
|
|
6
|
+
*.key
|
|
7
|
+
.venv/
|
|
8
|
+
__pycache__/
|
|
9
|
+
node_modules/
|
|
10
|
+
dist/
|
|
11
|
+
coverage/
|
|
12
|
+
.agents/auth.json
|
|
13
|
+
.agents/sessions/
|
|
14
|
+
.agents/logs/
|
|
15
|
+
.codex/auth.json
|
|
16
|
+
.codex/sessions/
|
|
17
|
+
.codex/log/
|
|
18
|
+
|
|
19
|
+
.idea/
|
kitden-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
kitden-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: kitden
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: See and safely change what AI coding clients load on this computer.
|
|
5
|
+
Project-URL: Homepage, https://github.com/KonstantinStarovoytov/kitden
|
|
6
|
+
Project-URL: Repository, https://github.com/KonstantinStarovoytov/kitden
|
|
7
|
+
Project-URL: Releases, https://github.com/KonstantinStarovoytov/kitden/releases
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: claude-code,codex,cursor,mcp,plugins,skills
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Environment :: Web Environment
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Operating System :: MacOS
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Topic :: Software Development
|
|
20
|
+
Requires-Python: >=3.13
|
|
21
|
+
Requires-Dist: mcp>=2.3
|
|
22
|
+
Requires-Dist: starlette>=1.8
|
|
23
|
+
Requires-Dist: tomlkit>=0.15
|
|
24
|
+
Requires-Dist: uvicorn>=0.54
|
|
25
|
+
Requires-Dist: watchfiles>=1.3
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
<img src="src/kitden/web/static/brand/kitden.svg" width="48" height="48" alt="Kitden house">
|
|
29
|
+
|
|
30
|
+
# Kitden
|
|
31
|
+
|
|
32
|
+
**See what your coding agents load. Change it with confidence.**
|
|
33
|
+
|
|
34
|
+
Claude Code, Codex and Cursor each keep their own MCP servers, plugins, skills and hooks, in
|
|
35
|
+
their own files. Kitden shows all of them on one page and lets you change them safely.
|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<picture>
|
|
39
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/images/overview-dark.jpg">
|
|
40
|
+
<img src="docs/images/overview.jpg" alt="The Kitden page: three things need attention, each with one button to fix it" width="800">
|
|
41
|
+
</picture>
|
|
42
|
+
</p>
|
|
43
|
+
|
|
44
|
+
The screenshots above show the previous release. The current interface uses the
|
|
45
|
+
[Quiet Den + Graphite identity](DESIGN.md).
|
|
46
|
+
|
|
47
|
+
## The problem
|
|
48
|
+
|
|
49
|
+
You use more than one AI coding tool. After a few weeks:
|
|
50
|
+
|
|
51
|
+
- you do not know what loads where, or what loads twice;
|
|
52
|
+
- one tool quietly picks up another tool's plugins;
|
|
53
|
+
- settings get edited by hand, and sometimes by the agents themselves.
|
|
54
|
+
|
|
55
|
+
Nobody wants to open six JSON and TOML files to find out.
|
|
56
|
+
|
|
57
|
+
## What Kitden gives you
|
|
58
|
+
|
|
59
|
+
- **One page for all your agents.** Every MCP server, plugin, skill, hook and marketplace, with the
|
|
60
|
+
file it comes from. Nothing to configure.
|
|
61
|
+
- **What needs attention.** Items that load twice, and MCP servers that go around your gateway.
|
|
62
|
+
- **Safe changes.** Turn a plugin off, remove an old entry, connect a gateway: you see the change
|
|
63
|
+
first, Apply writes it with a backup, Undo puts it back.
|
|
64
|
+
- **Agents can ask too.** A read-only "show my setup" server answers "what do you load here?"
|
|
65
|
+
without changing anything.
|
|
66
|
+
|
|
67
|
+
## How it works
|
|
68
|
+
|
|
69
|
+
<p align="center">
|
|
70
|
+
<picture>
|
|
71
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/images/how-it-works-dark.svg">
|
|
72
|
+
<img src="docs/images/how-it-works.svg" alt="Kitden reads the settings of Claude Code, Codex and Cursor, shows them on one local page, and writes a change back with a backup you can undo" width="860">
|
|
73
|
+
</picture>
|
|
74
|
+
</p>
|
|
75
|
+
|
|
76
|
+
1. Kitden reads the settings files of your agents. Nothing leaves your Mac.
|
|
77
|
+
2. It shows them on one page in your browser.
|
|
78
|
+
3. You press Apply. Kitden backs the file up, writes the change, and checks it. Undo brings the
|
|
79
|
+
old file back.
|
|
80
|
+
|
|
81
|
+
## Install
|
|
82
|
+
|
|
83
|
+
macOS. Paste one line into the Terminal:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
curl -LsSf https://raw.githubusercontent.com/KonstantinStarovoytov/kitden/main/install.sh | sh
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
It installs [uv](https://docs.astral.sh/uv/) if you do not have it, then `kitden`, and opens the
|
|
90
|
+
page. It changes nothing in your agents. Run the same line again to update.
|
|
91
|
+
|
|
92
|
+
From then on:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
kitden
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Already have uv? Run it without installing:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
uvx --from git+https://github.com/KonstantinStarovoytov/kitden@v0.1.1 kitden
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Linux and Windows are not supported yet.
|
|
105
|
+
|
|
106
|
+
## From inside your agent
|
|
107
|
+
|
|
108
|
+
| | Do this | You get |
|
|
109
|
+
| --- | --- | --- |
|
|
110
|
+
| **Claude Code** | `/plugin install kitden --marketplace KonstantinStarovoytov/kitden` | A skill plus the read-only server |
|
|
111
|
+
| **Codex** | `codex plugin marketplace add KonstantinStarovoytov/kitden`, then `codex plugin add kitden@kitden` | The same plugin |
|
|
112
|
+
| **Cursor** | [](https://cursor.com/en/install-mcp?name=kitden&config=eyJjb21tYW5kIjoia2l0ZGVuIiwiYXJncyI6WyJtY3AiXX0=) | The read-only server |
|
|
113
|
+
|
|
114
|
+
Then ask: **"show my setup"**. The agent answers from Kitden, and opens the page with `kitden open`
|
|
115
|
+
when you want to change something. (The `kitden` command must be installed; see above. Cursor also
|
|
116
|
+
takes the plain link `cursor://anysphere.cursor-deeplink/mcp/install?name=kitden&config=eyJjb21tYW5kIjoia2l0ZGVuIiwiYXJncyI6WyJtY3AiXX0=`.)
|
|
117
|
+
|
|
118
|
+
## Safe and private
|
|
119
|
+
|
|
120
|
+
- Every change is shown before it is written, and written only after Apply.
|
|
121
|
+
- Each write keeps a backup (30 days or the last 100 changes). Undo restores it exactly.
|
|
122
|
+
- The page answers only on your computer (`127.0.0.1`) and needs its start link.
|
|
123
|
+
- Secret values are never shown or logged, and Kitden makes no network calls of its own.
|
|
124
|
+
|
|
125
|
+
## More
|
|
126
|
+
|
|
127
|
+
- [Develop, release, and the project documents](docs/development.md)
|
|
128
|
+
- Supported clients: Claude Code 2.1.283 (and the Claude Desktop Code tab), Codex 0.163, Cursor 3.25
|
|
129
|
+
- License: [Apache-2.0](LICENSE)
|
kitden-0.1.1/README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<img src="src/kitden/web/static/brand/kitden.svg" width="48" height="48" alt="Kitden house">
|
|
2
|
+
|
|
3
|
+
# Kitden
|
|
4
|
+
|
|
5
|
+
**See what your coding agents load. Change it with confidence.**
|
|
6
|
+
|
|
7
|
+
Claude Code, Codex and Cursor each keep their own MCP servers, plugins, skills and hooks, in
|
|
8
|
+
their own files. Kitden shows all of them on one page and lets you change them safely.
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<picture>
|
|
12
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/images/overview-dark.jpg">
|
|
13
|
+
<img src="docs/images/overview.jpg" alt="The Kitden page: three things need attention, each with one button to fix it" width="800">
|
|
14
|
+
</picture>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
The screenshots above show the previous release. The current interface uses the
|
|
18
|
+
[Quiet Den + Graphite identity](DESIGN.md).
|
|
19
|
+
|
|
20
|
+
## The problem
|
|
21
|
+
|
|
22
|
+
You use more than one AI coding tool. After a few weeks:
|
|
23
|
+
|
|
24
|
+
- you do not know what loads where, or what loads twice;
|
|
25
|
+
- one tool quietly picks up another tool's plugins;
|
|
26
|
+
- settings get edited by hand, and sometimes by the agents themselves.
|
|
27
|
+
|
|
28
|
+
Nobody wants to open six JSON and TOML files to find out.
|
|
29
|
+
|
|
30
|
+
## What Kitden gives you
|
|
31
|
+
|
|
32
|
+
- **One page for all your agents.** Every MCP server, plugin, skill, hook and marketplace, with the
|
|
33
|
+
file it comes from. Nothing to configure.
|
|
34
|
+
- **What needs attention.** Items that load twice, and MCP servers that go around your gateway.
|
|
35
|
+
- **Safe changes.** Turn a plugin off, remove an old entry, connect a gateway: you see the change
|
|
36
|
+
first, Apply writes it with a backup, Undo puts it back.
|
|
37
|
+
- **Agents can ask too.** A read-only "show my setup" server answers "what do you load here?"
|
|
38
|
+
without changing anything.
|
|
39
|
+
|
|
40
|
+
## How it works
|
|
41
|
+
|
|
42
|
+
<p align="center">
|
|
43
|
+
<picture>
|
|
44
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/images/how-it-works-dark.svg">
|
|
45
|
+
<img src="docs/images/how-it-works.svg" alt="Kitden reads the settings of Claude Code, Codex and Cursor, shows them on one local page, and writes a change back with a backup you can undo" width="860">
|
|
46
|
+
</picture>
|
|
47
|
+
</p>
|
|
48
|
+
|
|
49
|
+
1. Kitden reads the settings files of your agents. Nothing leaves your Mac.
|
|
50
|
+
2. It shows them on one page in your browser.
|
|
51
|
+
3. You press Apply. Kitden backs the file up, writes the change, and checks it. Undo brings the
|
|
52
|
+
old file back.
|
|
53
|
+
|
|
54
|
+
## Install
|
|
55
|
+
|
|
56
|
+
macOS. Paste one line into the Terminal:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
curl -LsSf https://raw.githubusercontent.com/KonstantinStarovoytov/kitden/main/install.sh | sh
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
It installs [uv](https://docs.astral.sh/uv/) if you do not have it, then `kitden`, and opens the
|
|
63
|
+
page. It changes nothing in your agents. Run the same line again to update.
|
|
64
|
+
|
|
65
|
+
From then on:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
kitden
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Already have uv? Run it without installing:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
uvx --from git+https://github.com/KonstantinStarovoytov/kitden@v0.1.1 kitden
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Linux and Windows are not supported yet.
|
|
78
|
+
|
|
79
|
+
## From inside your agent
|
|
80
|
+
|
|
81
|
+
| | Do this | You get |
|
|
82
|
+
| --- | --- | --- |
|
|
83
|
+
| **Claude Code** | `/plugin install kitden --marketplace KonstantinStarovoytov/kitden` | A skill plus the read-only server |
|
|
84
|
+
| **Codex** | `codex plugin marketplace add KonstantinStarovoytov/kitden`, then `codex plugin add kitden@kitden` | The same plugin |
|
|
85
|
+
| **Cursor** | [](https://cursor.com/en/install-mcp?name=kitden&config=eyJjb21tYW5kIjoia2l0ZGVuIiwiYXJncyI6WyJtY3AiXX0=) | The read-only server |
|
|
86
|
+
|
|
87
|
+
Then ask: **"show my setup"**. The agent answers from Kitden, and opens the page with `kitden open`
|
|
88
|
+
when you want to change something. (The `kitden` command must be installed; see above. Cursor also
|
|
89
|
+
takes the plain link `cursor://anysphere.cursor-deeplink/mcp/install?name=kitden&config=eyJjb21tYW5kIjoia2l0ZGVuIiwiYXJncyI6WyJtY3AiXX0=`.)
|
|
90
|
+
|
|
91
|
+
## Safe and private
|
|
92
|
+
|
|
93
|
+
- Every change is shown before it is written, and written only after Apply.
|
|
94
|
+
- Each write keeps a backup (30 days or the last 100 changes). Undo restores it exactly.
|
|
95
|
+
- The page answers only on your computer (`127.0.0.1`) and needs its start link.
|
|
96
|
+
- Secret values are never shown or logged, and Kitden makes no network calls of its own.
|
|
97
|
+
|
|
98
|
+
## More
|
|
99
|
+
|
|
100
|
+
- [Develop, release, and the project documents](docs/development.md)
|
|
101
|
+
- Supported clients: Claude Code 2.1.283 (and the Claude Desktop Code tab), Codex 0.163, Cursor 3.25
|
|
102
|
+
- License: [Apache-2.0](LICENSE)
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "kitden"
|
|
3
|
+
version = "0.1.1"
|
|
4
|
+
description = "See and safely change what AI coding clients load on this computer."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.13"
|
|
7
|
+
license = "Apache-2.0"
|
|
8
|
+
license-files = ["LICENSE"]
|
|
9
|
+
keywords = ["claude-code", "codex", "cursor", "mcp", "plugins", "skills"]
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Development Status :: 3 - Alpha",
|
|
12
|
+
"Environment :: Console",
|
|
13
|
+
"Environment :: Web Environment",
|
|
14
|
+
"Intended Audience :: Developers",
|
|
15
|
+
"Operating System :: MacOS",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.13",
|
|
18
|
+
"Programming Language :: Python :: 3.14",
|
|
19
|
+
"Topic :: Software Development",
|
|
20
|
+
]
|
|
21
|
+
dependencies = [
|
|
22
|
+
"mcp>=2.3",
|
|
23
|
+
"starlette>=1.8",
|
|
24
|
+
"uvicorn>=0.54",
|
|
25
|
+
"tomlkit>=0.15",
|
|
26
|
+
"watchfiles>=1.3",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.scripts]
|
|
30
|
+
kitden = "kitden.cli:main"
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://github.com/KonstantinStarovoytov/kitden"
|
|
34
|
+
Repository = "https://github.com/KonstantinStarovoytov/kitden"
|
|
35
|
+
Releases = "https://github.com/KonstantinStarovoytov/kitden/releases"
|
|
36
|
+
|
|
37
|
+
[dependency-groups]
|
|
38
|
+
dev = [
|
|
39
|
+
"pytest>=9.1",
|
|
40
|
+
"hypothesis>=6.170",
|
|
41
|
+
"syrupy>=6.1",
|
|
42
|
+
"ruff>=0.16",
|
|
43
|
+
"httpx>=0.28",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
[build-system]
|
|
47
|
+
requires = ["hatchling>=1.27"]
|
|
48
|
+
build-backend = "hatchling.build"
|
|
49
|
+
|
|
50
|
+
[tool.hatch.build.targets.wheel]
|
|
51
|
+
packages = ["src/kitden"]
|
|
52
|
+
|
|
53
|
+
[tool.hatch.build.targets.sdist]
|
|
54
|
+
only-include = ["src/kitden", "README.md", "LICENSE"]
|
|
55
|
+
|
|
56
|
+
[tool.ruff]
|
|
57
|
+
line-length = 100
|
|
58
|
+
target-version = "py313"
|
|
59
|
+
src = ["src", "tests"]
|
|
60
|
+
|
|
61
|
+
[tool.ruff.lint]
|
|
62
|
+
select = ["E", "F", "I", "B", "UP", "S", "SIM"]
|
|
63
|
+
ignore = ["S101"]
|
|
64
|
+
|
|
65
|
+
[tool.ruff.lint.per-file-ignores]
|
|
66
|
+
"tests/**" = ["S"]
|
|
67
|
+
|
|
68
|
+
[tool.pytest.ini_options]
|
|
69
|
+
testpaths = ["tests"]
|
|
70
|
+
addopts = "-m 'not contract'"
|
|
71
|
+
markers = [
|
|
72
|
+
"contract: tests against real installed clients in sandbox homes (local only)",
|
|
73
|
+
]
|
|
File without changes
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"""Turn a requested action into steps for the change engine (write-matrix.md)."""
|
|
2
|
+
|
|
3
|
+
import re
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
from kitden.clients.base import PLUGIN_DISABLE, PLUGIN_ENABLE, REMOVE_DIRECT, ClientAdapter
|
|
7
|
+
from kitden.model import Gateway, Item, Step
|
|
8
|
+
|
|
9
|
+
GATEWAY_CONNECT = "gateway.connect"
|
|
10
|
+
SETUP_SERVER_UPDATE = "setup_server.update"
|
|
11
|
+
ENTRY_NAME = re.compile(r"[A-Za-z0-9][A-Za-z0-9_-]{0,63}")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def connect_steps(
|
|
15
|
+
adapters: dict[str, ClientAdapter], clients: list[str], gateway: Gateway, name: str
|
|
16
|
+
) -> list[Step]:
|
|
17
|
+
"""One gateway entry per chosen client, in the user scope (FR-024, FR-033)."""
|
|
18
|
+
if not ENTRY_NAME.fullmatch(name):
|
|
19
|
+
raise ValueError("The entry name may use letters, digits, '-' and '_' only")
|
|
20
|
+
if not clients:
|
|
21
|
+
raise ValueError("Choose at least one client")
|
|
22
|
+
steps = []
|
|
23
|
+
for client in dict.fromkeys(clients):
|
|
24
|
+
adapter = adapters.get(client)
|
|
25
|
+
if adapter is None:
|
|
26
|
+
raise ValueError(f"{client} cannot be connected to a gateway")
|
|
27
|
+
steps.append(adapter.gateway_step(gateway, name))
|
|
28
|
+
return steps
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def remove_steps(adapters: dict[str, ClientAdapter], item: Item) -> list[Step]:
|
|
32
|
+
"""Remove one direct MCP entry (FR-026)."""
|
|
33
|
+
adapter = adapters.get(item.client)
|
|
34
|
+
if adapter is None or REMOVE_DIRECT not in item.actions:
|
|
35
|
+
raise ValueError(f"{item.name} cannot be removed here")
|
|
36
|
+
return [adapter.remove_step(item)]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def plugin_steps(adapters: dict[str, ClientAdapter], item: Item, enable: bool) -> list[Step]:
|
|
40
|
+
"""Turn one plugin on or off (FR-027). Cursor and account plugins have no control."""
|
|
41
|
+
action = PLUGIN_ENABLE if enable else PLUGIN_DISABLE
|
|
42
|
+
adapter = adapters.get(item.client)
|
|
43
|
+
if adapter is None or action not in item.actions:
|
|
44
|
+
raise ValueError(f"{item.name} cannot be turned {'on' if enable else 'off'} here")
|
|
45
|
+
return [adapter.plugin_step(item, enable)]
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def setup_server_steps(
|
|
49
|
+
adapters: dict[str, ClientAdapter], clients: list[str], command: str
|
|
50
|
+
) -> list[Step]:
|
|
51
|
+
"""Add the read-only setup server to the chosen clients (FR-032).
|
|
52
|
+
|
|
53
|
+
GUI clients may not see the shell PATH, so the entry uses an absolute path (research R9).
|
|
54
|
+
"""
|
|
55
|
+
if not Path(command).is_absolute():
|
|
56
|
+
raise ValueError("The setup server needs the absolute path of the kitden command")
|
|
57
|
+
if not clients:
|
|
58
|
+
raise ValueError("Choose at least one client")
|
|
59
|
+
steps = []
|
|
60
|
+
for client in dict.fromkeys(clients):
|
|
61
|
+
adapter = adapters.get(client)
|
|
62
|
+
if adapter is None:
|
|
63
|
+
raise ValueError(f"The setup server cannot be added to {client}")
|
|
64
|
+
steps.append(adapter.setup_server_step(command, ["mcp"]))
|
|
65
|
+
return steps
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def update_steps(
|
|
69
|
+
adapters: dict[str, ClientAdapter],
|
|
70
|
+
items: list[Item],
|
|
71
|
+
added_clients: set[str],
|
|
72
|
+
command: str | None,
|
|
73
|
+
) -> list[Step]:
|
|
74
|
+
"""Replace old `agentsetup` entries with `kitden` (feature 002, FR-006).
|
|
75
|
+
|
|
76
|
+
Per client: remove the old entry, then add `kitden` unless that client already has it. Both
|
|
77
|
+
steps edit one settings file; the engine applies them in order.
|
|
78
|
+
"""
|
|
79
|
+
if not items:
|
|
80
|
+
raise ValueError("Choose an old Kitden entry.")
|
|
81
|
+
steps = []
|
|
82
|
+
for item in items:
|
|
83
|
+
adapter = adapters.get(item.client)
|
|
84
|
+
if adapter is None:
|
|
85
|
+
raise ValueError("Choose an old Kitden entry.")
|
|
86
|
+
steps.append(adapter.remove_step(item))
|
|
87
|
+
if item.client not in added_clients:
|
|
88
|
+
if command is None or not Path(command).is_absolute():
|
|
89
|
+
raise ValueError("The setup server needs the absolute path of the kitden command")
|
|
90
|
+
steps.append(adapter.setup_server_step(command, ["mcp"]))
|
|
91
|
+
return steps
|