tidy-byte-tools 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.
- tidy_byte_tools-0.1.1/CHANGELOG.md +16 -0
- tidy_byte_tools-0.1.1/Dockerfile +10 -0
- tidy_byte_tools-0.1.1/LICENSE +9 -0
- tidy_byte_tools-0.1.1/MANIFEST.in +8 -0
- tidy_byte_tools-0.1.1/PKG-INFO +195 -0
- tidy_byte_tools-0.1.1/README.md +153 -0
- tidy_byte_tools-0.1.1/docs/demo.gif +0 -0
- tidy_byte_tools-0.1.1/docs/examples/broken.json +1 -0
- tidy_byte_tools-0.1.1/docs/examples/guide.md +9 -0
- tidy_byte_tools-0.1.1/docs/examples/returns-help.html +10 -0
- tidy_byte_tools-0.1.1/docs/examples/sample-tables.pdf +112 -0
- tidy_byte_tools-0.1.1/glama.json +4 -0
- tidy_byte_tools-0.1.1/llms.txt +19 -0
- tidy_byte_tools-0.1.1/pyproject.toml +58 -0
- tidy_byte_tools-0.1.1/server.json +31 -0
- tidy_byte_tools-0.1.1/setup.cfg +4 -0
- tidy_byte_tools-0.1.1/tests/fixtures/broken.json +1 -0
- tidy_byte_tools-0.1.1/tests/fixtures/guide.md +9 -0
- tidy_byte_tools-0.1.1/tests/fixtures/returns-help.html +10 -0
- tidy_byte_tools-0.1.1/tests/fixtures/ruled.pdf +112 -0
- tidy_byte_tools-0.1.1/tests/test_cli.py +105 -0
- tidy_byte_tools-0.1.1/tests/test_mcp.py +171 -0
- tidy_byte_tools-0.1.1/tidy_byte_tools.egg-info/PKG-INFO +195 -0
- tidy_byte_tools-0.1.1/tidy_byte_tools.egg-info/SOURCES.txt +28 -0
- tidy_byte_tools-0.1.1/tidy_byte_tools.egg-info/dependency_links.txt +1 -0
- tidy_byte_tools-0.1.1/tidy_byte_tools.egg-info/entry_points.txt +4 -0
- tidy_byte_tools-0.1.1/tidy_byte_tools.egg-info/requires.txt +9 -0
- tidy_byte_tools-0.1.1/tidy_byte_tools.egg-info/top_level.txt +2 -0
- tidy_byte_tools-0.1.1/tidy_byte_tools.py +99 -0
- tidy_byte_tools-0.1.1/tidy_byte_tools_mcp.py +84 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
What changed in tidy-byte-tools, newest first.
|
|
4
|
+
|
|
5
|
+
## 0.1.1 - unreleased
|
|
6
|
+
|
|
7
|
+
- First PyPI release. Every dependency now comes from PyPI (no GitHub installs). hash-lite is installed as `tidy-hash-lite`, its PyPI name.
|
|
8
|
+
- Shorter MCP Registry description.
|
|
9
|
+
|
|
10
|
+
## 0.1.0 - 2026-11-17
|
|
11
|
+
|
|
12
|
+
- First release.
|
|
13
|
+
- One install that pulls in the eight free lite tools: json-repair-lite, json-shaper-lite, base64-lite, hash-lite, md-chunk-lite, doc2md-lite, pdf-table-pull-lite, and link-check-lite.
|
|
14
|
+
- `tidy-byte-tools` (also `tbt`) runs each lite as a subcommand. `tidy-byte-tools mcp` starts one MCP server with all 15 tools.
|
|
15
|
+
- The three lites that are not on PyPI yet (json-repair-lite, base64-lite, hash-lite) are installed from their GitHub tags. The others come from PyPI.
|
|
16
|
+
- Needs Python 3.10 or newer.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Runs the tidy-byte-tools MCP server over stdio (used by Glama's build checks).
|
|
2
|
+
FROM python:3.12-slim
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
RUN apt-get update \
|
|
5
|
+
&& apt-get install -y --no-install-recommends git \
|
|
6
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
7
|
+
COPY . /app
|
|
8
|
+
RUN pip install --no-cache-dir . && useradd -m app
|
|
9
|
+
USER app
|
|
10
|
+
ENTRYPOINT ["tidy-byte-tools-mcp"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 tidybyte
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tidy-byte-tools
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: One install and one MCP server for the Tidy Byte Tools lite CLIs: repair JSON, extract PDF tables, convert documents to Markdown, and more. Runs locally. No API key.
|
|
5
|
+
Author: Tidy Byte Tools
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/tidybytetools/tidy-byte-tools
|
|
8
|
+
Project-URL: Documentation, https://github.com/tidybytetools/tidy-byte-tools#readme
|
|
9
|
+
Project-URL: Source, https://github.com/tidybytetools/tidy-byte-tools
|
|
10
|
+
Project-URL: Issues, https://github.com/tidybytetools/tidy-byte-tools/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/tidybytetools/tidy-byte-tools/blob/main/CHANGELOG.md
|
|
12
|
+
Project-URL: Apify, https://apify.com/tidybytetools
|
|
13
|
+
Project-URL: API, https://tidybytetools.tidybytetools.workers.dev
|
|
14
|
+
Project-URL: Website, https://tidybytetools.github.io
|
|
15
|
+
Keywords: mcp,mcp-server,json,markdown,pdf,data-cleaning,developer-tools,cli
|
|
16
|
+
Classifier: Development Status :: 4 - Beta
|
|
17
|
+
Classifier: Environment :: Console
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
20
|
+
Classifier: Operating System :: OS Independent
|
|
21
|
+
Classifier: Programming Language :: Python :: 3
|
|
22
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
27
|
+
Classifier: Topic :: Text Processing
|
|
28
|
+
Classifier: Topic :: Utilities
|
|
29
|
+
Requires-Python: >=3.10
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Requires-Dist: mcp<2,>=1.10
|
|
33
|
+
Requires-Dist: json-shaper-lite>=1.1.2
|
|
34
|
+
Requires-Dist: md-chunk-lite>=1.1.1
|
|
35
|
+
Requires-Dist: doc2md-lite>=1.2.2
|
|
36
|
+
Requires-Dist: pdf-table-pull-lite>=1.3.1
|
|
37
|
+
Requires-Dist: link-check-lite>=1.1.4
|
|
38
|
+
Requires-Dist: json-repair-lite>=1.0.1
|
|
39
|
+
Requires-Dist: base64-lite>=1.0.1
|
|
40
|
+
Requires-Dist: tidy-hash-lite>=1.0.1
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+
<p>
|
|
44
|
+
<a href="https://github.com/tidybytetools">
|
|
45
|
+
<picture>
|
|
46
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tidybytetools/tidy-byte-tools/main/assets/tidybytetools-lockup-dark.png">
|
|
47
|
+
<img alt="Tidy Byte Tools" src="https://raw.githubusercontent.com/tidybytetools/tidy-byte-tools/main/assets/tidybytetools-lockup-light.png" height="44">
|
|
48
|
+
</picture>
|
|
49
|
+
</a>
|
|
50
|
+
</p>
|
|
51
|
+
|
|
52
|
+
# Tidy Byte Tools
|
|
53
|
+
|
|
54
|
+
[](https://github.com/tidybytetools/tidy-byte-tools/blob/main/LICENSE)
|
|
55
|
+
[](https://www.python.org/)
|
|
56
|
+
[](#use-it-from-claude-desktop-cursor-or-vs-code)
|
|
57
|
+
[](https://github.com/tidybytetools/tidy-byte-tools/actions/workflows/tests.yml)
|
|
58
|
+
[](https://github.com/tidybytetools/tidy-byte-tools/releases/tag/v0.1.0)
|
|
59
|
+
|
|
60
|
+
One install for our free local tools: fix broken JSON, pull tables out of a PDF, turn documents into Markdown, and more. It also starts **one MCP server** with all of those tools, so an AI assistant can use them on your computer. No API key.
|
|
61
|
+
|
|
62
|
+
This does not replace the individual lite repos. It is a doorway that installs them together.
|
|
63
|
+
|
|
64
|
+
<!-- mcp-name: io.github.tidybytetools/tidy-byte-tools -->
|
|
65
|
+
|
|
66
|
+
## Try it
|
|
67
|
+
|
|
68
|
+
This command is not valid JSON (the keys have no quotes, and there is a trailing comma):
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
printf '{name: "Ada", city: "Austin",}' | tidy-byte-tools json-repair -q
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
`-q` hides a one-line tip about the paid cloud version. Real output from that command (0.1.0, 17 Nov 2026):
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"name": "Ada",
|
|
79
|
+
"city": "Austin"
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+

|
|
84
|
+
|
|
85
|
+
## Install
|
|
86
|
+
|
|
87
|
+
Needs Python 3.10 or newer. Install it from PyPI:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
pip install tidy-byte-tools
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Or use pipx, which keeps it in its own space:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
pipx install tidy-byte-tools
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
That also installs the eight lite tools. All of them come from PyPI. (hash-lite's PyPI name is `tidy-hash-lite`.)
|
|
100
|
+
|
|
101
|
+
## Use it
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
printf '{name: "Ada", city: "Austin",}' | tidy-byte-tools json-repair
|
|
105
|
+
tidy-byte-tools pdf-table-pull report.pdf
|
|
106
|
+
tidy-byte-tools doc2md page.html -o page.md
|
|
107
|
+
tidy-byte-tools --help
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
`tbt` is a short name for the same command. Installing the package also gives you the original commands (`json-repair-lite`, `doc2md-lite`, and so on).
|
|
111
|
+
|
|
112
|
+
From Python, import a lite package directly:
|
|
113
|
+
|
|
114
|
+
```python
|
|
115
|
+
from json_repair_lite import repair_one
|
|
116
|
+
repair_one("{name: 'Ada',}")["value"] # {'name': 'Ada'}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Use it from Claude Desktop, Cursor, or VS Code
|
|
120
|
+
|
|
121
|
+
The MCP server talks over stdio. After you install the package, add one of these configs. If you would rather not install it first, `uvx` can run it from GitHub.
|
|
122
|
+
|
|
123
|
+
Claude Desktop (`claude_desktop_config.json`) and Cursor (`.cursor/mcp.json`):
|
|
124
|
+
|
|
125
|
+
```json
|
|
126
|
+
{
|
|
127
|
+
"mcpServers": {
|
|
128
|
+
"tidy-byte-tools": {
|
|
129
|
+
"command": "uvx",
|
|
130
|
+
"args": [
|
|
131
|
+
"--from",
|
|
132
|
+
"tidy-byte-tools",
|
|
133
|
+
"tidy-byte-tools-mcp"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
If the package is already installed, you can use `"command": "tidy-byte-tools-mcp"` and leave out `args`.
|
|
141
|
+
|
|
142
|
+
VS Code (`.vscode/mcp.json`):
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"servers": {
|
|
147
|
+
"tidy-byte-tools": {
|
|
148
|
+
"command": "uvx",
|
|
149
|
+
"args": [
|
|
150
|
+
"--from",
|
|
151
|
+
"tidy-byte-tools",
|
|
152
|
+
"tidy-byte-tools-mcp"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
The server exposes 15 tools. Base64 tools are named `base64_convert_text` and `base64_convert_file` so they are not confused with the document converter. Most tools only read. `save_chunks_jsonl`, `convert_to_markdown` (when you set an output path), and `extract_pdf_tables` can write the files you ask for. `check_links` requests the URLs you give it.
|
|
160
|
+
|
|
161
|
+
You can also start the server yourself with `tidy-byte-tools mcp`.
|
|
162
|
+
|
|
163
|
+
## The tools in this install
|
|
164
|
+
|
|
165
|
+
| Command | What it does | Lite repo |
|
|
166
|
+
| --- | --- | --- |
|
|
167
|
+
| `json-repair` | Repair broken or incomplete JSON, including output from language models | [json-repair-lite](https://github.com/tidybytetools/json-repair-lite) |
|
|
168
|
+
| `json-shaper` | Turn notes, CSV/TSV, or Markdown tables into typed JSON | [json-shaper-lite](https://github.com/tidybytetools/json-shaper-lite) |
|
|
169
|
+
| `base64` | Encode or decode Base64 for text and local files | [base64-lite](https://github.com/tidybytetools/base64-lite) |
|
|
170
|
+
| `hash` | Hash text or files with SHA-256, SHA-1, MD5, and SHA-512 | [hash-lite](https://github.com/tidybytetools/hash-lite) |
|
|
171
|
+
| `md-chunk` | Split Markdown into chunks by heading, for RAG | [md-chunk-lite](https://github.com/tidybytetools/md-chunk-lite) |
|
|
172
|
+
| `doc2md` | Turn a PDF or HTML file into clean Markdown | [doc2md-lite](https://github.com/tidybytetools/doc2md-lite) |
|
|
173
|
+
| `pdf-table-pull` | Pull tables out of a PDF into CSV | [pdf-table-pull-lite](https://github.com/tidybytetools/pdf-table-pull-lite) |
|
|
174
|
+
| `link-check` | Check web links for status codes and redirects | [link-check-lite](https://github.com/tidybytetools/link-check-lite) |
|
|
175
|
+
|
|
176
|
+
## Paid cloud tools and the API
|
|
177
|
+
|
|
178
|
+
If you want the same kind of work in the cloud, pay per use:
|
|
179
|
+
|
|
180
|
+
- Apify store: [https://apify.com/tidybytetools](https://apify.com/tidybytetools)
|
|
181
|
+
- HTTPS API: [https://tidybytetools.tidybytetools.workers.dev](https://tidybytetools.tidybytetools.workers.dev)
|
|
182
|
+
|
|
183
|
+
The site is [https://tidybytetools.github.io](https://tidybytetools.github.io).
|
|
184
|
+
|
|
185
|
+
## Limits
|
|
186
|
+
|
|
187
|
+
- These tools run on your computer. They are not a hosted service.
|
|
188
|
+
- `link-check` needs a network. The other tools work offline.
|
|
189
|
+
- The PDF tools read text PDFs. A scanned page with no text layer will not give useful tables or Markdown.
|
|
190
|
+
- This wrapper does not change how each lite tool works. See that tool's README for its flags and limits.
|
|
191
|
+
- Official PyPI and MCP Registry install names for this toolkit are not live yet. Use the GitHub install above until they are.
|
|
192
|
+
|
|
193
|
+
## License
|
|
194
|
+
|
|
195
|
+
MIT. See [LICENSE](LICENSE). Changes and ideas are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<p>
|
|
2
|
+
<a href="https://github.com/tidybytetools">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tidybytetools/tidy-byte-tools/main/assets/tidybytetools-lockup-dark.png">
|
|
5
|
+
<img alt="Tidy Byte Tools" src="https://raw.githubusercontent.com/tidybytetools/tidy-byte-tools/main/assets/tidybytetools-lockup-light.png" height="44">
|
|
6
|
+
</picture>
|
|
7
|
+
</a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
# Tidy Byte Tools
|
|
11
|
+
|
|
12
|
+
[](https://github.com/tidybytetools/tidy-byte-tools/blob/main/LICENSE)
|
|
13
|
+
[](https://www.python.org/)
|
|
14
|
+
[](#use-it-from-claude-desktop-cursor-or-vs-code)
|
|
15
|
+
[](https://github.com/tidybytetools/tidy-byte-tools/actions/workflows/tests.yml)
|
|
16
|
+
[](https://github.com/tidybytetools/tidy-byte-tools/releases/tag/v0.1.0)
|
|
17
|
+
|
|
18
|
+
One install for our free local tools: fix broken JSON, pull tables out of a PDF, turn documents into Markdown, and more. It also starts **one MCP server** with all of those tools, so an AI assistant can use them on your computer. No API key.
|
|
19
|
+
|
|
20
|
+
This does not replace the individual lite repos. It is a doorway that installs them together.
|
|
21
|
+
|
|
22
|
+
<!-- mcp-name: io.github.tidybytetools/tidy-byte-tools -->
|
|
23
|
+
|
|
24
|
+
## Try it
|
|
25
|
+
|
|
26
|
+
This command is not valid JSON (the keys have no quotes, and there is a trailing comma):
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
printf '{name: "Ada", city: "Austin",}' | tidy-byte-tools json-repair -q
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`-q` hides a one-line tip about the paid cloud version. Real output from that command (0.1.0, 17 Nov 2026):
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"name": "Ada",
|
|
37
|
+
"city": "Austin"
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+

|
|
42
|
+
|
|
43
|
+
## Install
|
|
44
|
+
|
|
45
|
+
Needs Python 3.10 or newer. Install it from PyPI:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pip install tidy-byte-tools
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Or use pipx, which keeps it in its own space:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pipx install tidy-byte-tools
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
That also installs the eight lite tools. All of them come from PyPI. (hash-lite's PyPI name is `tidy-hash-lite`.)
|
|
58
|
+
|
|
59
|
+
## Use it
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
printf '{name: "Ada", city: "Austin",}' | tidy-byte-tools json-repair
|
|
63
|
+
tidy-byte-tools pdf-table-pull report.pdf
|
|
64
|
+
tidy-byte-tools doc2md page.html -o page.md
|
|
65
|
+
tidy-byte-tools --help
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
`tbt` is a short name for the same command. Installing the package also gives you the original commands (`json-repair-lite`, `doc2md-lite`, and so on).
|
|
69
|
+
|
|
70
|
+
From Python, import a lite package directly:
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
from json_repair_lite import repair_one
|
|
74
|
+
repair_one("{name: 'Ada',}")["value"] # {'name': 'Ada'}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Use it from Claude Desktop, Cursor, or VS Code
|
|
78
|
+
|
|
79
|
+
The MCP server talks over stdio. After you install the package, add one of these configs. If you would rather not install it first, `uvx` can run it from GitHub.
|
|
80
|
+
|
|
81
|
+
Claude Desktop (`claude_desktop_config.json`) and Cursor (`.cursor/mcp.json`):
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"mcpServers": {
|
|
86
|
+
"tidy-byte-tools": {
|
|
87
|
+
"command": "uvx",
|
|
88
|
+
"args": [
|
|
89
|
+
"--from",
|
|
90
|
+
"tidy-byte-tools",
|
|
91
|
+
"tidy-byte-tools-mcp"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
If the package is already installed, you can use `"command": "tidy-byte-tools-mcp"` and leave out `args`.
|
|
99
|
+
|
|
100
|
+
VS Code (`.vscode/mcp.json`):
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"servers": {
|
|
105
|
+
"tidy-byte-tools": {
|
|
106
|
+
"command": "uvx",
|
|
107
|
+
"args": [
|
|
108
|
+
"--from",
|
|
109
|
+
"tidy-byte-tools",
|
|
110
|
+
"tidy-byte-tools-mcp"
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
The server exposes 15 tools. Base64 tools are named `base64_convert_text` and `base64_convert_file` so they are not confused with the document converter. Most tools only read. `save_chunks_jsonl`, `convert_to_markdown` (when you set an output path), and `extract_pdf_tables` can write the files you ask for. `check_links` requests the URLs you give it.
|
|
118
|
+
|
|
119
|
+
You can also start the server yourself with `tidy-byte-tools mcp`.
|
|
120
|
+
|
|
121
|
+
## The tools in this install
|
|
122
|
+
|
|
123
|
+
| Command | What it does | Lite repo |
|
|
124
|
+
| --- | --- | --- |
|
|
125
|
+
| `json-repair` | Repair broken or incomplete JSON, including output from language models | [json-repair-lite](https://github.com/tidybytetools/json-repair-lite) |
|
|
126
|
+
| `json-shaper` | Turn notes, CSV/TSV, or Markdown tables into typed JSON | [json-shaper-lite](https://github.com/tidybytetools/json-shaper-lite) |
|
|
127
|
+
| `base64` | Encode or decode Base64 for text and local files | [base64-lite](https://github.com/tidybytetools/base64-lite) |
|
|
128
|
+
| `hash` | Hash text or files with SHA-256, SHA-1, MD5, and SHA-512 | [hash-lite](https://github.com/tidybytetools/hash-lite) |
|
|
129
|
+
| `md-chunk` | Split Markdown into chunks by heading, for RAG | [md-chunk-lite](https://github.com/tidybytetools/md-chunk-lite) |
|
|
130
|
+
| `doc2md` | Turn a PDF or HTML file into clean Markdown | [doc2md-lite](https://github.com/tidybytetools/doc2md-lite) |
|
|
131
|
+
| `pdf-table-pull` | Pull tables out of a PDF into CSV | [pdf-table-pull-lite](https://github.com/tidybytetools/pdf-table-pull-lite) |
|
|
132
|
+
| `link-check` | Check web links for status codes and redirects | [link-check-lite](https://github.com/tidybytetools/link-check-lite) |
|
|
133
|
+
|
|
134
|
+
## Paid cloud tools and the API
|
|
135
|
+
|
|
136
|
+
If you want the same kind of work in the cloud, pay per use:
|
|
137
|
+
|
|
138
|
+
- Apify store: [https://apify.com/tidybytetools](https://apify.com/tidybytetools)
|
|
139
|
+
- HTTPS API: [https://tidybytetools.tidybytetools.workers.dev](https://tidybytetools.tidybytetools.workers.dev)
|
|
140
|
+
|
|
141
|
+
The site is [https://tidybytetools.github.io](https://tidybytetools.github.io).
|
|
142
|
+
|
|
143
|
+
## Limits
|
|
144
|
+
|
|
145
|
+
- These tools run on your computer. They are not a hosted service.
|
|
146
|
+
- `link-check` needs a network. The other tools work offline.
|
|
147
|
+
- The PDF tools read text PDFs. A scanned page with no text layer will not give useful tables or Markdown.
|
|
148
|
+
- This wrapper does not change how each lite tool works. See that tool's README for its flags and limits.
|
|
149
|
+
- Official PyPI and MCP Registry install names for this toolkit are not live yet. Use the GitHub install above until they are.
|
|
150
|
+
|
|
151
|
+
## License
|
|
152
|
+
|
|
153
|
+
MIT. See [LICENSE](LICENSE). Changes and ideas are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{name: 'Ada', ok: true, trailing: 'comma',}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<!doctype html><html><head><title>Help Center: Returns</title><style>body{color:red}</style>
|
|
2
|
+
<script>console.log('x')</script></head><body>
|
|
3
|
+
<nav><a href="/">Home</a> | <a href="/shop">Shop</a></nav>
|
|
4
|
+
<main><h1>How returns work</h1>
|
|
5
|
+
<p>You can send back most items within <strong>30 days</strong>. See the <a href="https://example.com/policy">full policy</a>.</p>
|
|
6
|
+
<h2>Steps</h2><ol><li>Open your order.</li><li>Pick <em>Return item</em>.<ul><li>Print the label.</li></ul></li><li>Drop it off.</li></ol>
|
|
7
|
+
<h2>Refund times</h2>
|
|
8
|
+
<table><tr><th>Paid with</th><th>Refund time</th></tr><tr><td>Card</td><td>3-5 days</td></tr><tr><td>Gift card</td><td>1 day</td></tr></table>
|
|
9
|
+
<h3>Code for developers</h3><pre><code class="language-bash">curl https://example.com/api/returns</code></pre>
|
|
10
|
+
</main><footer>Copyright Example Shop</footer></body></html>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
%PDF-1.4
|
|
2
|
+
%���� ReportLab Generated PDF document (opensource)
|
|
3
|
+
1 0 obj
|
|
4
|
+
<<
|
|
5
|
+
/F1 2 0 R /F2 3 0 R
|
|
6
|
+
>>
|
|
7
|
+
endobj
|
|
8
|
+
2 0 obj
|
|
9
|
+
<<
|
|
10
|
+
/BaseFont /Helvetica /Encoding /WinAnsiEncoding /Name /F1 /Subtype /Type1 /Type /Font
|
|
11
|
+
>>
|
|
12
|
+
endobj
|
|
13
|
+
3 0 obj
|
|
14
|
+
<<
|
|
15
|
+
/BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding /Name /F2 /Subtype /Type1 /Type /Font
|
|
16
|
+
>>
|
|
17
|
+
endobj
|
|
18
|
+
4 0 obj
|
|
19
|
+
<<
|
|
20
|
+
/Contents 10 0 R /MediaBox [ 0 0 612 792 ] /Parent 9 0 R /Resources <<
|
|
21
|
+
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
|
|
22
|
+
>> /Rotate 0 /Trans <<
|
|
23
|
+
|
|
24
|
+
>>
|
|
25
|
+
/Type /Page
|
|
26
|
+
>>
|
|
27
|
+
endobj
|
|
28
|
+
5 0 obj
|
|
29
|
+
<<
|
|
30
|
+
/Contents 11 0 R /MediaBox [ 0 0 612 792 ] /Parent 9 0 R /Resources <<
|
|
31
|
+
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
|
|
32
|
+
>> /Rotate 0 /Trans <<
|
|
33
|
+
|
|
34
|
+
>>
|
|
35
|
+
/Type /Page
|
|
36
|
+
>>
|
|
37
|
+
endobj
|
|
38
|
+
6 0 obj
|
|
39
|
+
<<
|
|
40
|
+
/Contents 12 0 R /MediaBox [ 0 0 612 792 ] /Parent 9 0 R /Resources <<
|
|
41
|
+
/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
|
|
42
|
+
>> /Rotate 0 /Trans <<
|
|
43
|
+
|
|
44
|
+
>>
|
|
45
|
+
/Type /Page
|
|
46
|
+
>>
|
|
47
|
+
endobj
|
|
48
|
+
7 0 obj
|
|
49
|
+
<<
|
|
50
|
+
/PageMode /UseNone /Pages 9 0 R /Type /Catalog
|
|
51
|
+
>>
|
|
52
|
+
endobj
|
|
53
|
+
8 0 obj
|
|
54
|
+
<<
|
|
55
|
+
/Author (\(anonymous\)) /CreationDate (D:20261104013809-06'00') /Creator (\(unspecified\)) /Keywords () /ModDate (D:20261104013809-06'00') /Producer (ReportLab PDF Library - \(opensource\))
|
|
56
|
+
/Subject (\(unspecified\)) /Title (\(anonymous\)) /Trapped /False
|
|
57
|
+
>>
|
|
58
|
+
endobj
|
|
59
|
+
9 0 obj
|
|
60
|
+
<<
|
|
61
|
+
/Count 3 /Kids [ 4 0 R 5 0 R 6 0 R ] /Type /Pages
|
|
62
|
+
>>
|
|
63
|
+
endobj
|
|
64
|
+
10 0 obj
|
|
65
|
+
<<
|
|
66
|
+
/Filter [ /ASCII85Decode /FlateDecode ] /Length 491
|
|
67
|
+
>>
|
|
68
|
+
stream
|
|
69
|
+
Gat=fd8,BK&B<W'/+.C5>'m(tj`QCuNEO-<j'I](F;[H.`U(A6g&`3$Yf%*=bK$gD?$@@lV[)&HCCW$kiV";n"f1U;P"A3:i@YSR"0BVcJ;sfLUiE;tl[Y"(lU5B+EY3iA\d2_-:rQ+sO?TR\0M1skAX/P8"-hJ?;-$Ud2iq@^9a@H-#sH>c6:MA0kcgu")k4IE76U:b<#R%9YpPBFrE8KUIU,La9Uc5[YTGWh74fb\)%@d3^msid1"NGgn60cpd]^VV21TC;%TsSEnW"ZKbud'RX<s+6VC.a:`"ThRqN"uG"AHXMYbPAna8n#)Og+KoQ;6R4Q$5WFUtY9c#,+6'<&ZR$X-K[XZ4-+(XcKYh)oLo<<d-ta-YMD4?n3>c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:Uingg^>[VuaE.9`<pm_l>%*P\EeOWA0R1)/jq60#2rcps4"b$8eRZdJj]&$f7FZ/F]:N2k*Igj*:pUZaDI:44ffm9rBl:JU280<-(JQ4eGC%\auTT@Sd*5D;Z8["PFrUG4uG4\u<'M7>K+pG.cqnNRUeRBWS,%UABb.rp(IFDcc`N8!/i'gW71@W.2GSta72;APoY6nS??7ZFi#$rPY0*<kZJsV$):;P-#(+q+^)0iD9GSt`\.sMqV&J_qe]^Q87#$tC@[fXm5SHZ\Tnfm"f\4Ji&rO`kE1EXWc8iSi@23:k58Xlp(LH5;<%"X\]~>endstream
|
|
84
|
+
endobj
|
|
85
|
+
xref
|
|
86
|
+
0 13
|
|
87
|
+
0000000000 65535 f
|
|
88
|
+
0000000061 00000 n
|
|
89
|
+
0000000102 00000 n
|
|
90
|
+
0000000209 00000 n
|
|
91
|
+
0000000321 00000 n
|
|
92
|
+
0000000515 00000 n
|
|
93
|
+
0000000709 00000 n
|
|
94
|
+
0000000903 00000 n
|
|
95
|
+
0000000971 00000 n
|
|
96
|
+
0000001251 00000 n
|
|
97
|
+
0000001322 00000 n
|
|
98
|
+
0000001904 00000 n
|
|
99
|
+
0000003077 00000 n
|
|
100
|
+
trailer
|
|
101
|
+
<<
|
|
102
|
+
/ID
|
|
103
|
+
[<a7ddb7f6a35ec00e5bf9fed0eaa8c41c><a7ddb7f6a35ec00e5bf9fed0eaa8c41c>]
|
|
104
|
+
% ReportLab generated PDF document -- digest (opensource)
|
|
105
|
+
|
|
106
|
+
/Info 8 0 R
|
|
107
|
+
/Root 7 0 R
|
|
108
|
+
/Size 13
|
|
109
|
+
>>
|
|
110
|
+
startxref
|
|
111
|
+
4100
|
|
112
|
+
%%EOF
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# tidy-byte-tools
|
|
2
|
+
|
|
3
|
+
> One install and one MCP server for the free Tidy Byte Tools lite CLIs. Repair JSON, turn notes into JSON, encode Base64, hash files, chunk Markdown, convert PDFs and HTML to Markdown, extract PDF tables, and check links. Runs on your computer. No API key. MIT license.
|
|
4
|
+
|
|
5
|
+
- Install: `pip install tidy-byte-tools`
|
|
6
|
+
- CLI: `tidy-byte-tools <command>` or `tbt <command>`. Commands: json-repair, json-shaper, base64, hash, md-chunk, doc2md, pdf-table-pull, link-check. The original lite commands are also installed.
|
|
7
|
+
- MCP: `uvx --from tidy-byte-tools tidy-byte-tools mcp` (or `tidy-byte-tools-mcp`) exposes 15 tools over stdio. Base64 tools are named `base64_convert_text` and `base64_convert_file` so they are not confused with the document converter.
|
|
8
|
+
- Python: import the lite packages directly, for example `from json_repair_lite import repair_one`.
|
|
9
|
+
|
|
10
|
+
## Use when
|
|
11
|
+
- You want one install or one MCP server for several local Tidy Byte Tools, instead of adding each lite on its own.
|
|
12
|
+
|
|
13
|
+
## Don't use when
|
|
14
|
+
- You need a hosted / pay-per-use run. Use the Apify store: https://apify.com/tidybytetools or the HTTPS API: https://tidybytetools.tidybytetools.workers.dev
|
|
15
|
+
|
|
16
|
+
## Links
|
|
17
|
+
- [README](https://github.com/tidybytetools/tidy-byte-tools/blob/main/README.md)
|
|
18
|
+
- [Apify store](https://apify.com/tidybytetools)
|
|
19
|
+
- [HTTPS API](https://tidybytetools.tidybytetools.workers.dev)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "tidy-byte-tools"
|
|
7
|
+
version = "0.1.1"
|
|
8
|
+
description = "One install and one MCP server for the Tidy Byte Tools lite CLIs: repair JSON, extract PDF tables, convert documents to Markdown, and more. Runs locally. No API key."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
authors = [{name = "Tidy Byte Tools"}]
|
|
13
|
+
requires-python = ">=3.10"
|
|
14
|
+
dependencies = [
|
|
15
|
+
"mcp>=1.10,<2",
|
|
16
|
+
"json-shaper-lite>=1.1.2",
|
|
17
|
+
"md-chunk-lite>=1.1.1",
|
|
18
|
+
"doc2md-lite>=1.2.2",
|
|
19
|
+
"pdf-table-pull-lite>=1.3.1",
|
|
20
|
+
"link-check-lite>=1.1.4",
|
|
21
|
+
"json-repair-lite>=1.0.1",
|
|
22
|
+
"base64-lite>=1.0.1",
|
|
23
|
+
"tidy-hash-lite>=1.0.1",
|
|
24
|
+
]
|
|
25
|
+
keywords = ["mcp", "mcp-server", "json", "markdown", "pdf", "data-cleaning", "developer-tools", "cli"]
|
|
26
|
+
classifiers = [
|
|
27
|
+
"Development Status :: 4 - Beta",
|
|
28
|
+
"Environment :: Console",
|
|
29
|
+
"Intended Audience :: Developers",
|
|
30
|
+
"Intended Audience :: End Users/Desktop",
|
|
31
|
+
"Operating System :: OS Independent",
|
|
32
|
+
"Programming Language :: Python :: 3",
|
|
33
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
34
|
+
"Programming Language :: Python :: 3.10",
|
|
35
|
+
"Programming Language :: Python :: 3.11",
|
|
36
|
+
"Programming Language :: Python :: 3.12",
|
|
37
|
+
"Programming Language :: Python :: 3.13",
|
|
38
|
+
"Topic :: Text Processing",
|
|
39
|
+
"Topic :: Utilities",
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[project.urls]
|
|
43
|
+
Homepage = "https://github.com/tidybytetools/tidy-byte-tools"
|
|
44
|
+
Documentation = "https://github.com/tidybytetools/tidy-byte-tools#readme"
|
|
45
|
+
Source = "https://github.com/tidybytetools/tidy-byte-tools"
|
|
46
|
+
Issues = "https://github.com/tidybytetools/tidy-byte-tools/issues"
|
|
47
|
+
Changelog = "https://github.com/tidybytetools/tidy-byte-tools/blob/main/CHANGELOG.md"
|
|
48
|
+
Apify = "https://apify.com/tidybytetools"
|
|
49
|
+
API = "https://tidybytetools.tidybytetools.workers.dev"
|
|
50
|
+
Website = "https://tidybytetools.github.io"
|
|
51
|
+
|
|
52
|
+
[project.scripts]
|
|
53
|
+
tidy-byte-tools = "tidy_byte_tools:main"
|
|
54
|
+
tbt = "tidy_byte_tools:main"
|
|
55
|
+
tidy-byte-tools-mcp = "tidy_byte_tools_mcp:main"
|
|
56
|
+
|
|
57
|
+
[tool.setuptools]
|
|
58
|
+
py-modules = ["tidy_byte_tools", "tidy_byte_tools_mcp"]
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "io.github.tidybytetools/tidy-byte-tools",
|
|
4
|
+
"title": "Tidy Byte Tools",
|
|
5
|
+
"description": "One local MCP server: repair JSON, PDF tables to CSV, docs to Markdown, hashes and more. No API key.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"url": "https://github.com/tidybytetools/tidy-byte-tools",
|
|
8
|
+
"source": "github"
|
|
9
|
+
},
|
|
10
|
+
"websiteUrl": "https://github.com/tidybytetools/tidy-byte-tools",
|
|
11
|
+
"version": "0.1.1",
|
|
12
|
+
"packages": [
|
|
13
|
+
{
|
|
14
|
+
"registryType": "pypi",
|
|
15
|
+
"registryBaseUrl": "https://pypi.org",
|
|
16
|
+
"identifier": "tidy-byte-tools",
|
|
17
|
+
"version": "0.1.1",
|
|
18
|
+
"runtimeHint": "uvx",
|
|
19
|
+
"transport": {
|
|
20
|
+
"type": "stdio"
|
|
21
|
+
},
|
|
22
|
+
"packageArguments": [
|
|
23
|
+
{
|
|
24
|
+
"type": "positional",
|
|
25
|
+
"value": "mcp",
|
|
26
|
+
"description": "Starts the combined MCP server instead of the command-line tool."
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{name: 'Ada', ok: true, trailing: 'comma',}
|