@koneeric/onetool 0.0.0-stage → 0.1.0

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 KoneEric
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,69 @@
1
- # Temporary Holding Version
1
+ # onetool
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ One MCP server in front of all the others.
4
+
5
+ ## What it is
6
+
7
+ onetool is an MCP server that stands in front of the MCP servers you already use. Your host program, the
8
+ assistant you talk to, sees two tools instead of hundreds: `run` and `search`.
9
+
10
+ - `search` finds the tools you have, by words.
11
+ - `run` takes a short JavaScript program that calls the real tools. The assistant writes the program, onetool
12
+ runs it in a process of its own, and only the program's answer comes back. The long answers of the tools in
13
+ between never reach the assistant.
14
+
15
+ You list your own servers in a settings file. onetool connects to them and offers their tools to the programs.
16
+
17
+ ## Install
18
+
19
+ You need Node 22 or later. A host program starts onetool with one of these two commands:
20
+
21
+ ```sh
22
+ npx github:KoneEric/onetool
23
+ # once published on npm, this one too:
24
+ npx @koneeric/onetool
25
+ ```
26
+
27
+ Until it is published on npm, use the first.
28
+
29
+ The one option is `--config`, the path of the settings file. Add this entry to the MCP settings of your host
30
+ program:
31
+
32
+ ```json
33
+ {
34
+ "mcpServers": {
35
+ "onetool": {
36
+ "command": "npx",
37
+ "args": ["-y", "github:KoneEric/onetool", "--config", "/absolute/path/to/settings.json"]
38
+ }
39
+ }
40
+ }
41
+ ```
42
+
43
+ The settings file lists your own servers in the same `mcpServers` shape that host programs use. Paths in it are
44
+ given in full, not relative.
45
+
46
+ ## Try it
47
+
48
+ You can try onetool with no account and no network once the package is installed (`npm ci` needs the network or
49
+ npm's cache):
50
+
51
+ ```sh
52
+ git clone https://github.com/KoneEric/onetool.git
53
+ cd onetool
54
+ npm ci
55
+ npm test
56
+ node bin/onetool.js --config guide/pages/settings.example.json
57
+ ```
58
+
59
+ The tests run the real command against the practice server, a table of 5,000 rows with five small tools. The
60
+ last command starts onetool with the example settings file, which lists the practice server. It then waits for a
61
+ host program to speak to it on its standard input; press Ctrl-C to end it.
62
+
63
+ ## More
64
+
65
+ - [Install page](guide/pages/INSTALL.md): the settings file, rules that allow, deny or ask, the shell and files,
66
+ the library of saved programs, the trail and the log, and what to do when something does not work.
67
+ - [Licence](LICENSE): MIT.
68
+ - [Security](SECURITY.md): how to report a weakness, and what counts as one.
69
+ - [Contributing](CONTRIBUTING.md): how to run the tests and send a change.
package/bin/onetool.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { main } from "../server/src/main.js";
3
+
4
+ await main(process.argv.slice(2));