tracebase-cli 0.3.0__py3-none-any.whl

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.
@@ -0,0 +1,95 @@
1
+ Metadata-Version: 2.5
2
+ Name: tracebase-cli
3
+ Version: 0.3.0
4
+ Summary: CLI and MCP server for Tracebase: find code you already wrote in your old projects, copy it into the current one, and explain production errors.
5
+ Project-URL: Homepage, https://github.com/anshuraj669/tracebase
6
+ Project-URL: Repository, https://github.com/anshuraj669/tracebase
7
+ Project-URL: Issues, https://github.com/anshuraj669/tracebase/issues
8
+ Project-URL: Demo, https://demo.tracebase.duckdns.org
9
+ Author: Anshu Raj
10
+ License-Expression: LicenseRef-FSL-1.1-ALv2
11
+ License-File: LICENSE.md
12
+ Keywords: ai-agent,claude-code,code-search,developer-tools,logs,mcp,mcp-server,self-hosted
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Topic :: Software Development
19
+ Classifier: Topic :: Software Development :: Debuggers
20
+ Requires-Python: >=3.10
21
+ Requires-Dist: httpx>=0.27
22
+ Requires-Dist: mcp>=1.2
23
+ Requires-Dist: pathspec>=0.12
24
+ Description-Content-Type: text/markdown
25
+
26
+ # tracebase-cli
27
+
28
+ <!-- mcp-name: io.github.anshuraj669/tracebase -->
29
+
30
+ Command line and **MCP server** for [Tracebase](https://github.com/anshuraj669/tracebase), the self-hosted search
31
+ and Q&A over all your past projects and production logs.
32
+
33
+ It lets you, and the AI agent you already use (Claude Code, Codex, Gemini CLI, opencode, Cursor, an Ollama model),
34
+ **find code you already wrote in your old projects and copy it into the current one**, and **explain production
35
+ errors** with the failing code and the commit that changed it. Nothing is written until you approve it.
36
+
37
+ The CLI talks to a running Tracebase server (your own, or the public demo).
38
+
39
+ ## Install
40
+
41
+ ```bash
42
+ pipx install tracebase-cli # or: uv tool install tracebase-cli
43
+ ```
44
+
45
+ ## Try it against the public demo
46
+
47
+ ```bash
48
+ tracebase login tb_escsEwbpgDuxtXQ9xIxKT30IyXzO3_Mp --url https://demo.tracebase.duckdns.org
49
+ tracebase find "send password reset email"
50
+ tracebase errors
51
+ tracebase why E-1
52
+ ```
53
+
54
+ ## Connect your AI agent (MCP)
55
+
56
+ ```bash
57
+ tracebase connect claude # or: codex, gemini, opencode, cursor, ollama
58
+ ```
59
+
60
+ Then ask your agent things like *"copy the role based access control from my old projects"* or *"why did
61
+ checkout fail last night?"*. The MCP server exposes these tools:
62
+
63
+ | Tool | What it does |
64
+ |---|---|
65
+ | `find_code` | your past implementations of something (repo, path, symbol) |
66
+ | `preview_copy` | what would be copied into this project, with its models, migrations and wiring, as a diff; nothing is written |
67
+ | `apply_copy` | writes an approved copy; asks you directly when the agent supports MCP elicitation |
68
+ | `search_code`, `read_code`, `list_repos`, `get_code_bundle` | search and read your indexed repos |
69
+ | `find_errors`, `explain_error` | grouped production errors; cause, failing code, the commit, a suggested fix |
70
+
71
+ You can also run it by hand: `tracebase mcp` (stdio).
72
+
73
+ ## Commands
74
+
75
+ ```
76
+ tracebase status check the connection to the server
77
+ tracebase find "login logic" your past implementations, with code
78
+ tracebase copy "login logic" find it and copy it into this project (shows the plan first)
79
+ tracebase search "jwt refresh" search across all your repos
80
+ tracebase errors / why E-5 production errors, grouped and explained
81
+ tracebase ingest app.log send log files (or stdin: -)
82
+ tracebase team add priya --repos "freelance/*" team server admin
83
+ ```
84
+
85
+ `tracebase --help` lists everything.
86
+
87
+ ## Run your own server
88
+
89
+ See [the main project](https://github.com/anshuraj669/tracebase): Docker, a NAS, or one small cloud server with
90
+ automatic HTTPS.
91
+
92
+ ## License
93
+
94
+ [FSL-1.1-ALv2](LICENSE.md): free to use, self-host and modify, except to build a competing product. Each
95
+ release becomes Apache 2.0 two years after it's published.
@@ -0,0 +1,15 @@
1
+ tracebase_cli/__init__.py,sha256=VrXpHDu3erkzwl_WXrqINBm9xWkcyUy53IQOj042dOs,22
2
+ tracebase_cli/client.py,sha256=GmDcWk2CFs0xSmuTRO845my_weWR8o4XWBNknM9xlsM,9238
3
+ tracebase_cli/connect.py,sha256=5HMfEJA_ABWCWF-VzhfIYZ_CAOwStuwTSj6l3GyoZ5g,4957
4
+ tracebase_cli/main.py,sha256=YmtLATwRe9mD7kvWaWoPsTrm0VAO6C1bQq5_kAZNZwg,35037
5
+ tracebase_cli/mcp_server.py,sha256=oUXzAJoKEPXrTG3UW_AlChCFUcfkKtRz2xFPV0-yays,17063
6
+ tracebase_cli/merge.py,sha256=kn5wV0fOT7jFDAuqZiGtHMbTY24MKfdIobecWUn15kc,14258
7
+ tracebase_cli/plans.py,sha256=-8TZLk2EOl1MA4rXWxnDa9n583Ll33szPGJm0ujCXwI,5544
8
+ tracebase_cli/project.py,sha256=WmNDaJCJXfYozPXQuZo1CNMLcYGxYsqULZUg9s4-uU4,5983
9
+ tracebase_cli/reuse.py,sha256=-MXuXZ30Ifk-PSNhLSP1ssUVB_S3SAmlJuEJKcipjEI,12320
10
+ tracebase_cli/ui.py,sha256=5A3nVZ2GvjjPW3wNGcXJrzejo0dwyKhWh7Iwy6l-cJY,3467
11
+ tracebase_cli-0.3.0.dist-info/METADATA,sha256=ncqfADK7mohql2T6Ps26VEt0Dsdw3Mo7Mo5cQL--RPU,3866
12
+ tracebase_cli-0.3.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
13
+ tracebase_cli-0.3.0.dist-info/entry_points.txt,sha256=YXPPK0dIZFsESk9gF1M-3DXwvg-m_BPI_sxN2CU815A,54
14
+ tracebase_cli-0.3.0.dist-info/licenses/LICENSE.md,sha256=7N9nnD52fT97EMckcidtj9jBXUnw0gxxwikRzvzCFaY,3741
15
+ tracebase_cli-0.3.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ tracebase = tracebase_cli.main:main
@@ -0,0 +1,105 @@
1
+ # Functional Source License, Version 1.1, ALv2 Future License
2
+
3
+ ## Abbreviation
4
+
5
+ FSL-1.1-ALv2
6
+
7
+ ## Notice
8
+
9
+ Copyright 2026 Anshu Raj
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others in a commercial product or
34
+ service that:
35
+
36
+ 1. substitutes for the Software;
37
+
38
+ 2. substitutes for any other product or service we offer using the Software
39
+ that exists as of the date we make the Software available; or
40
+
41
+ 3. offers the same or substantially similar functionality as the Software.
42
+
43
+ Permitted Purposes specifically include using the Software:
44
+
45
+ 1. for your internal use and access;
46
+
47
+ 2. for non-commercial education;
48
+
49
+ 3. for non-commercial research; and
50
+
51
+ 4. in connection with professional services that you provide to a licensee
52
+ using the Software in accordance with these Terms and Conditions.
53
+
54
+ ### Patents
55
+
56
+ To the extent your use for a Permitted Purpose would necessarily infringe our
57
+ patents, the license grant above includes a license under our patents. If you
58
+ make a claim against any party that the Software infringes or contributes to
59
+ the infringement of any patent, then your patent license to the Software ends
60
+ immediately.
61
+
62
+ ### Redistribution
63
+
64
+ The Terms and Conditions apply to all copies, modifications and derivatives of
65
+ the Software.
66
+
67
+ If you redistribute any copies, modifications or derivatives of the Software,
68
+ you must include a copy of or a link to these Terms and Conditions and not
69
+ remove any copyright notices provided in or with the Software.
70
+
71
+ ### Disclaimer
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
+
77
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
+
81
+ ### Trademarks
82
+
83
+ Except for displaying the License Details and identifying us as the origin of
84
+ the Software, you have no right under these Terms and Conditions to use our
85
+ trademarks, trade names, service marks or product names.
86
+
87
+ ## Grant of Future License
88
+
89
+ We hereby irrevocably grant you an additional license to use the Software under
90
+ the Apache License, Version 2.0 that is effective on the second anniversary of
91
+ the date we make the Software available. On or after that date, you may use the
92
+ Software under the Apache License, Version 2.0, in which case the following
93
+ will apply:
94
+
95
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
96
+ this file except in compliance with the License.
97
+
98
+ You may obtain a copy of the License at
99
+
100
+ http://www.apache.org/licenses/LICENSE-2.0
101
+
102
+ Unless required by applicable law or agreed to in writing, software distributed
103
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
+ specific language governing permissions and limitations under the License.