mcp-bytesmith 0.0.1__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.
- mcp_bytesmith/__init__.py +26 -0
- mcp_bytesmith/__main__.py +40 -0
- mcp_bytesmith/core.py +1315 -0
- mcp_bytesmith/eth.py +1039 -0
- mcp_bytesmith/server.py +63 -0
- mcp_bytesmith/wordlists/eff_large.txt +7776 -0
- mcp_bytesmith-0.0.1.dist-info/METADATA +93 -0
- mcp_bytesmith-0.0.1.dist-info/RECORD +11 -0
- mcp_bytesmith-0.0.1.dist-info/WHEEL +4 -0
- mcp_bytesmith-0.0.1.dist-info/entry_points.txt +2 -0
- mcp_bytesmith-0.0.1.dist-info/licenses/LICENSE +674 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# mcp-bytesmith — pure-Python MCP server for encoding, hashing, and crypto-primitives.
|
|
2
|
+
# Copyright (C) 2026 Laszlo Pere
|
|
3
|
+
#
|
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# (at your option) any later version.
|
|
8
|
+
#
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
+
|
|
17
|
+
"""mcp-bytesmith — pure-Python MCP server for encoding/hashing/crypto-primitives."""
|
|
18
|
+
|
|
19
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
20
|
+
|
|
21
|
+
try: # TODO 4.3 — version from installed package metadata
|
|
22
|
+
__version__ = version("mcp-bytesmith")
|
|
23
|
+
except PackageNotFoundError: # editable / unbuilt checkout: metadata absent
|
|
24
|
+
__version__ = "0.0.0+unknown"
|
|
25
|
+
|
|
26
|
+
__all__ = ["__version__"]
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# mcp-bytesmith — pure-Python MCP server for encoding, hashing, and crypto-primitives.
|
|
2
|
+
# Copyright (C) 2026 Laszlo Pere
|
|
3
|
+
#
|
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# (at your option) any later version.
|
|
8
|
+
#
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
+
|
|
17
|
+
"""Console-script / `python -m` entry point.
|
|
18
|
+
|
|
19
|
+
Importing the app from server.py also registers every tool as a side effect
|
|
20
|
+
(TODO 4.2), so the server is fully wired by the time `main()` runs.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
import sys
|
|
24
|
+
|
|
25
|
+
from mcp_bytesmith.server import mcp
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def main() -> None:
|
|
29
|
+
"""Start the mcp-bytesmith server over stdio."""
|
|
30
|
+
try: # CR.8 — don't leak raw tracebacks from the transport loop
|
|
31
|
+
mcp.run()
|
|
32
|
+
except KeyboardInterrupt: # Ctrl-C / client shutdown is a clean exit
|
|
33
|
+
pass
|
|
34
|
+
except Exception as exc: # noqa: BLE001 — top-level guard; report and fail
|
|
35
|
+
print(f"mcp-bytesmith: fatal error: {exc}", file=sys.stderr)
|
|
36
|
+
sys.exit(1)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
if __name__ == "__main__":
|
|
40
|
+
main()
|