toolbase 0.2.1__tar.gz → 0.3.0__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.
- toolbase-0.3.0/PKG-INFO +211 -0
- toolbase-0.3.0/README.md +170 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/pyproject.toml +1 -1
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/connect/orchestral.py +16 -2
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/serve/orchestrator.py +12 -0
- toolbase-0.2.1/PKG-INFO +0 -273
- toolbase-0.2.1/README.md +0 -232
- {toolbase-0.2.1 → toolbase-0.3.0}/CHANGELOG.md +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/LICENSE +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/MANIFEST.in +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/setup.cfg +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/__init__.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/_setup_host.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/_toolkit_host.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/astro.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/auth.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/cli.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/config.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/connect/__init__.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/connect/base.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/connect/claude_code.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/connect/codex.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/envs/__init__.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/envs/bundle_deps.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/envs/cache.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/envs/config.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/envs/discovery.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/envs/manifest.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/envs/paths.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/envs/schema.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/hep.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/ingest.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/logging/__init__.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/logging/logger.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/neutrino.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/quantum.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/serve/__init__.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/serve/bundles.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/serve/config.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/serve/profile_scaffold.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/serve/profiles.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/serve/proxy_tool.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/setup/__init__.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/setup/_rpc.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/setup/context.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/setup/declarative.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/setup/downloads.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/setup/prompts.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/setup/runner.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/setup/schema.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/setup/storage.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/setup/validate_cache.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/skills.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/templates/Dockerfile.template +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/templates/README.md.template +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/templates/__init__.py.template +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/templates/mcp/__init__.py.template +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/templates/mcp/server_stdio.py.template +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/templates/requirements.txt.template +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/templates/setup.py.template +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/templates/skills/example_skill.md +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/templates/tool_example.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/templates/toolkit.yaml.template +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/toolkit.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/validation.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase/versioning.py +0 -0
- {toolbase-0.2.1 → toolbase-0.3.0}/toolbase.egg-info/SOURCES.txt +0 -0
toolbase-0.3.0/PKG-INFO
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: toolbase
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: The community registry and CLI for AI agent toolkits - discover, share, and serve tools to AI agents over MCP
|
|
5
|
+
Author-email: Alex Roman <toolbase.dev@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/alexr314/toolbase
|
|
8
|
+
Project-URL: Documentation, https://github.com/alexr314/toolbase#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/alexr314/toolbase
|
|
10
|
+
Project-URL: Issues, https://github.com/alexr314/toolbase/issues
|
|
11
|
+
Keywords: ai,agents,tools,toolkit,mcp,orchestral,registry,package-manager
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
17
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Requires-Python: >=3.12
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: click>=8.0
|
|
24
|
+
Requires-Dist: requests>=2.31
|
|
25
|
+
Requires-Dist: pyyaml>=6.0
|
|
26
|
+
Requires-Dist: ruamel.yaml>=0.18
|
|
27
|
+
Requires-Dist: rich>=13.0
|
|
28
|
+
Requires-Dist: pydantic>=2.0
|
|
29
|
+
Requires-Dist: email-validator>=2.0
|
|
30
|
+
Requires-Dist: orchestral-ai>=1.4
|
|
31
|
+
Requires-Dist: mcp>=1.0
|
|
32
|
+
Requires-Dist: tomlkit>=0.12
|
|
33
|
+
Provides-Extra: dev
|
|
34
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
35
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
36
|
+
Requires-Dist: black>=23.0; extra == "dev"
|
|
37
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
38
|
+
Provides-Extra: docs
|
|
39
|
+
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
|
|
40
|
+
Dynamic: license-file
|
|
41
|
+
|
|
42
|
+
# toolbase
|
|
43
|
+
|
|
44
|
+
The package manager for AI agent toolkits. Install toolkits into
|
|
45
|
+
isolated environments, curate which tools your agent sees, and serve
|
|
46
|
+
them to your harness over the [Model Context Protocol](https://modelcontextprotocol.io). Toolkits
|
|
47
|
+
span any domain, from web and data utilities to scientific categories
|
|
48
|
+
like astro, hep, and quantum.
|
|
49
|
+
|
|
50
|
+
A **toolkit** is the publishable unit; it bundles one or more **tools**
|
|
51
|
+
an agent can call. Each toolkit installs into its own isolated Python
|
|
52
|
+
environment, so dependency conflicts between toolkits are never a
|
|
53
|
+
problem.
|
|
54
|
+
|
|
55
|
+
Full CLI reference: <https://toolbase-ai.com/docs>.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Install toolbase
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pip install toolbase # Python 3.12+
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Arm your agent
|
|
66
|
+
|
|
67
|
+
The loop is **install → activate → connect**. `tb` is a short alias for
|
|
68
|
+
`toolbase`; both ship with the package and behave identically.
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
tb install calculator # download into an isolated environment
|
|
72
|
+
tb activate calculator # expose it to the agent
|
|
73
|
+
tb connect claude-code # write toolbase into Claude Code's MCP config
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Now launch your harness (e.g. `claude` for Claude Code) — or, in an
|
|
77
|
+
already-running session, reconnect the toolbase MCP server. The tools
|
|
78
|
+
appear as `calculator__add`, `calculator__multiply`, etc.
|
|
79
|
+
`tb install calculator -a` installs and activates in one step.
|
|
80
|
+
|
|
81
|
+
**Install ≠ activate.** Installing places a toolkit in the global cache
|
|
82
|
+
but serves nothing — activation is what exposes it to the agent. The
|
|
83
|
+
binary always lives in the shared cache (`~/.toolbase/cache/`); only
|
|
84
|
+
the activation is scoped: `tb activate` writes to the current
|
|
85
|
+
directory's `.toolbase/` by default, `-g` writes to the user-wide
|
|
86
|
+
profile instead.
|
|
87
|
+
|
|
88
|
+
**`tb connect` writes the MCP config for you.** Claude Code, Codex, and
|
|
89
|
+
Orchestral are all supported (`tb connect --harnesses` lists them);
|
|
90
|
+
Claude Code and Codex are MCP clients (`tb connect` edits their config
|
|
91
|
+
file), while Orchestral gets a runnable agent script you launch
|
|
92
|
+
yourself.
|
|
93
|
+
|
|
94
|
+
## Inspect
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
tb list # installed toolkits, ✓ active / ✗ inactive
|
|
98
|
+
tb list -v # per-tool view with bundle + config-gating annotations
|
|
99
|
+
tb logs # tool calls, live (best diagnostic for "did it fire?")
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Curate what the agent sees
|
|
103
|
+
|
|
104
|
+
`tb activate` / `deactivate` work at three granularities:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
tb activate calculator # the whole toolkit
|
|
108
|
+
tb activate calculator/scientific # one bundle (group of related tools)
|
|
109
|
+
tb activate calculator__add # one specific tool
|
|
110
|
+
tb deactivate calculator__add # hide it again
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
A **bundle** is a self-contained capability an author carves out of a
|
|
114
|
+
toolkit, with its own deps and skills. `tb profile tools calculator`
|
|
115
|
+
lists what's available. Power users can keep several named profiles
|
|
116
|
+
(`tb profile create paper`,
|
|
117
|
+
`tb connect claude-code --profile paper`) and switch between them; most
|
|
118
|
+
users only ever touch the default profile.
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Authoring a toolkit
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
tb init my-toolkit # scaffold from template
|
|
126
|
+
cd my-toolkit
|
|
127
|
+
# write tools in tools/ and skills in skills/
|
|
128
|
+
tb validate # check structure
|
|
129
|
+
tb login # one-time browser-flow auth
|
|
130
|
+
tb publish # ship it (auto-registers on first run)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Iterating locally.** Develop a toolkit's code without a
|
|
134
|
+
publish→install round-trip by installing it editable:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
cd my-toolkit
|
|
138
|
+
tb install -e . -a # live symlink to this source dir, and activate
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Edits to your tool source appear on the next serve; rerun
|
|
142
|
+
`tb install -e .` to rebuild the env when dependencies change.
|
|
143
|
+
|
|
144
|
+
For the full author guide — tool conventions, skills, bundles,
|
|
145
|
+
configuration, `setup.py` — see <https://toolbase-ai.com/docs/authoring>.
|
|
146
|
+
For the agent-assisted authoring flow (recommended for first toolkits),
|
|
147
|
+
see <https://toolbase-ai.com/docs/scaffold-with-an-agent>.
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Commands
|
|
152
|
+
|
|
153
|
+
Full reference with all flags: <https://toolbase-ai.com/docs/reference/commands>.
|
|
154
|
+
|
|
155
|
+
| Command | Purpose |
|
|
156
|
+
|---|---|
|
|
157
|
+
| `tb install NAME` | Install a toolkit (`-a` to also activate, `-e <path>` for editable, `NAME[a,b]` for selected bundles) |
|
|
158
|
+
| `tb uninstall NAME` | Remove a toolkit |
|
|
159
|
+
| `tb list` | Installed toolkits (`-v` for a per-tool view) |
|
|
160
|
+
| `tb activate ITEM` | Expose a toolkit / `toolkit/bundle` / `toolkit__tool` (project-local; `-g` for user-wide) |
|
|
161
|
+
| `tb deactivate ITEM` | Hide a toolkit / bundle / tool |
|
|
162
|
+
| `tb connect HARNESS` | Wire toolbase into Claude Code, Codex, or scaffold an Orchestral agent script |
|
|
163
|
+
| `tb disconnect HARNESS` | Remove toolbase from a harness |
|
|
164
|
+
| `tb logs` | Tail the serve log, live |
|
|
165
|
+
| `tb profile …` | Manage named profiles: `list \| show \| create \| edit \| delete \| set-default \| path \| tools` |
|
|
166
|
+
| `tb config …` | Manage per-toolkit config: `show \| init \| set \| unset \| edit \| path \| validate` |
|
|
167
|
+
| `tb setup TOOLKIT` | Run a toolkit's `setup.py` (`--reset`, `--check`) |
|
|
168
|
+
| `tb project init` | Create `.toolbase/` here |
|
|
169
|
+
| `tb init NAME` | Scaffold a toolkit from template |
|
|
170
|
+
| `tb validate` / `tb ingest` | Check toolkit structure / regenerate `toolkit.yaml` from code |
|
|
171
|
+
| `tb login` / `tb whoami` / `tb logout` | Registry auth |
|
|
172
|
+
| `tb publish` | Package and upload to the registry |
|
|
173
|
+
|
|
174
|
+
See [CHANGELOG.md](CHANGELOG.md) for the full release history.
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## Architecture
|
|
179
|
+
|
|
180
|
+
Three pieces:
|
|
181
|
+
|
|
182
|
+
- **CLI** (this package) — installed locally, manages toolkit
|
|
183
|
+
environments and serves tools.
|
|
184
|
+
- **Backend** ([api.scitoolkit.org](https://api.scitoolkit.org)) —
|
|
185
|
+
registry, auth, tarball storage.
|
|
186
|
+
- **Website** ([toolbase-ai.com](https://toolbase-ai.com)) — discover
|
|
187
|
+
and manage published toolkits.
|
|
188
|
+
|
|
189
|
+
Each installed toolkit runs in its own subprocess in its own Python
|
|
190
|
+
environment. `toolbase serve` aggregates them and exposes the union as
|
|
191
|
+
a single MCP server upstream; failures in one toolkit don't affect
|
|
192
|
+
others.
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## Contributing
|
|
197
|
+
|
|
198
|
+
Issues and PRs are welcome at
|
|
199
|
+
<https://github.com/alexr314/toolbase>.
|
|
200
|
+
|
|
201
|
+
## License
|
|
202
|
+
|
|
203
|
+
MIT. See [LICENSE](LICENSE).
|
|
204
|
+
|
|
205
|
+
## Links
|
|
206
|
+
|
|
207
|
+
- Website: <https://toolbase-ai.com>
|
|
208
|
+
- Docs: <https://toolbase-ai.com/docs>
|
|
209
|
+
- Backend API: <https://api.scitoolkit.org>
|
|
210
|
+
- GitHub: <https://github.com/alexr314/toolbase>
|
|
211
|
+
- Issues: <https://github.com/alexr314/toolbase/issues>
|
toolbase-0.3.0/README.md
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# toolbase
|
|
2
|
+
|
|
3
|
+
The package manager for AI agent toolkits. Install toolkits into
|
|
4
|
+
isolated environments, curate which tools your agent sees, and serve
|
|
5
|
+
them to your harness over the [Model Context Protocol](https://modelcontextprotocol.io). Toolkits
|
|
6
|
+
span any domain, from web and data utilities to scientific categories
|
|
7
|
+
like astro, hep, and quantum.
|
|
8
|
+
|
|
9
|
+
A **toolkit** is the publishable unit; it bundles one or more **tools**
|
|
10
|
+
an agent can call. Each toolkit installs into its own isolated Python
|
|
11
|
+
environment, so dependency conflicts between toolkits are never a
|
|
12
|
+
problem.
|
|
13
|
+
|
|
14
|
+
Full CLI reference: <https://toolbase-ai.com/docs>.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Install toolbase
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install toolbase # Python 3.12+
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Arm your agent
|
|
25
|
+
|
|
26
|
+
The loop is **install → activate → connect**. `tb` is a short alias for
|
|
27
|
+
`toolbase`; both ship with the package and behave identically.
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
tb install calculator # download into an isolated environment
|
|
31
|
+
tb activate calculator # expose it to the agent
|
|
32
|
+
tb connect claude-code # write toolbase into Claude Code's MCP config
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Now launch your harness (e.g. `claude` for Claude Code) — or, in an
|
|
36
|
+
already-running session, reconnect the toolbase MCP server. The tools
|
|
37
|
+
appear as `calculator__add`, `calculator__multiply`, etc.
|
|
38
|
+
`tb install calculator -a` installs and activates in one step.
|
|
39
|
+
|
|
40
|
+
**Install ≠ activate.** Installing places a toolkit in the global cache
|
|
41
|
+
but serves nothing — activation is what exposes it to the agent. The
|
|
42
|
+
binary always lives in the shared cache (`~/.toolbase/cache/`); only
|
|
43
|
+
the activation is scoped: `tb activate` writes to the current
|
|
44
|
+
directory's `.toolbase/` by default, `-g` writes to the user-wide
|
|
45
|
+
profile instead.
|
|
46
|
+
|
|
47
|
+
**`tb connect` writes the MCP config for you.** Claude Code, Codex, and
|
|
48
|
+
Orchestral are all supported (`tb connect --harnesses` lists them);
|
|
49
|
+
Claude Code and Codex are MCP clients (`tb connect` edits their config
|
|
50
|
+
file), while Orchestral gets a runnable agent script you launch
|
|
51
|
+
yourself.
|
|
52
|
+
|
|
53
|
+
## Inspect
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
tb list # installed toolkits, ✓ active / ✗ inactive
|
|
57
|
+
tb list -v # per-tool view with bundle + config-gating annotations
|
|
58
|
+
tb logs # tool calls, live (best diagnostic for "did it fire?")
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Curate what the agent sees
|
|
62
|
+
|
|
63
|
+
`tb activate` / `deactivate` work at three granularities:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
tb activate calculator # the whole toolkit
|
|
67
|
+
tb activate calculator/scientific # one bundle (group of related tools)
|
|
68
|
+
tb activate calculator__add # one specific tool
|
|
69
|
+
tb deactivate calculator__add # hide it again
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
A **bundle** is a self-contained capability an author carves out of a
|
|
73
|
+
toolkit, with its own deps and skills. `tb profile tools calculator`
|
|
74
|
+
lists what's available. Power users can keep several named profiles
|
|
75
|
+
(`tb profile create paper`,
|
|
76
|
+
`tb connect claude-code --profile paper`) and switch between them; most
|
|
77
|
+
users only ever touch the default profile.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Authoring a toolkit
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
tb init my-toolkit # scaffold from template
|
|
85
|
+
cd my-toolkit
|
|
86
|
+
# write tools in tools/ and skills in skills/
|
|
87
|
+
tb validate # check structure
|
|
88
|
+
tb login # one-time browser-flow auth
|
|
89
|
+
tb publish # ship it (auto-registers on first run)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Iterating locally.** Develop a toolkit's code without a
|
|
93
|
+
publish→install round-trip by installing it editable:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
cd my-toolkit
|
|
97
|
+
tb install -e . -a # live symlink to this source dir, and activate
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Edits to your tool source appear on the next serve; rerun
|
|
101
|
+
`tb install -e .` to rebuild the env when dependencies change.
|
|
102
|
+
|
|
103
|
+
For the full author guide — tool conventions, skills, bundles,
|
|
104
|
+
configuration, `setup.py` — see <https://toolbase-ai.com/docs/authoring>.
|
|
105
|
+
For the agent-assisted authoring flow (recommended for first toolkits),
|
|
106
|
+
see <https://toolbase-ai.com/docs/scaffold-with-an-agent>.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Commands
|
|
111
|
+
|
|
112
|
+
Full reference with all flags: <https://toolbase-ai.com/docs/reference/commands>.
|
|
113
|
+
|
|
114
|
+
| Command | Purpose |
|
|
115
|
+
|---|---|
|
|
116
|
+
| `tb install NAME` | Install a toolkit (`-a` to also activate, `-e <path>` for editable, `NAME[a,b]` for selected bundles) |
|
|
117
|
+
| `tb uninstall NAME` | Remove a toolkit |
|
|
118
|
+
| `tb list` | Installed toolkits (`-v` for a per-tool view) |
|
|
119
|
+
| `tb activate ITEM` | Expose a toolkit / `toolkit/bundle` / `toolkit__tool` (project-local; `-g` for user-wide) |
|
|
120
|
+
| `tb deactivate ITEM` | Hide a toolkit / bundle / tool |
|
|
121
|
+
| `tb connect HARNESS` | Wire toolbase into Claude Code, Codex, or scaffold an Orchestral agent script |
|
|
122
|
+
| `tb disconnect HARNESS` | Remove toolbase from a harness |
|
|
123
|
+
| `tb logs` | Tail the serve log, live |
|
|
124
|
+
| `tb profile …` | Manage named profiles: `list \| show \| create \| edit \| delete \| set-default \| path \| tools` |
|
|
125
|
+
| `tb config …` | Manage per-toolkit config: `show \| init \| set \| unset \| edit \| path \| validate` |
|
|
126
|
+
| `tb setup TOOLKIT` | Run a toolkit's `setup.py` (`--reset`, `--check`) |
|
|
127
|
+
| `tb project init` | Create `.toolbase/` here |
|
|
128
|
+
| `tb init NAME` | Scaffold a toolkit from template |
|
|
129
|
+
| `tb validate` / `tb ingest` | Check toolkit structure / regenerate `toolkit.yaml` from code |
|
|
130
|
+
| `tb login` / `tb whoami` / `tb logout` | Registry auth |
|
|
131
|
+
| `tb publish` | Package and upload to the registry |
|
|
132
|
+
|
|
133
|
+
See [CHANGELOG.md](CHANGELOG.md) for the full release history.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Architecture
|
|
138
|
+
|
|
139
|
+
Three pieces:
|
|
140
|
+
|
|
141
|
+
- **CLI** (this package) — installed locally, manages toolkit
|
|
142
|
+
environments and serves tools.
|
|
143
|
+
- **Backend** ([api.scitoolkit.org](https://api.scitoolkit.org)) —
|
|
144
|
+
registry, auth, tarball storage.
|
|
145
|
+
- **Website** ([toolbase-ai.com](https://toolbase-ai.com)) — discover
|
|
146
|
+
and manage published toolkits.
|
|
147
|
+
|
|
148
|
+
Each installed toolkit runs in its own subprocess in its own Python
|
|
149
|
+
environment. `toolbase serve` aggregates them and exposes the union as
|
|
150
|
+
a single MCP server upstream; failures in one toolkit don't affect
|
|
151
|
+
others.
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Contributing
|
|
156
|
+
|
|
157
|
+
Issues and PRs are welcome at
|
|
158
|
+
<https://github.com/alexr314/toolbase>.
|
|
159
|
+
|
|
160
|
+
## License
|
|
161
|
+
|
|
162
|
+
MIT. See [LICENSE](LICENSE).
|
|
163
|
+
|
|
164
|
+
## Links
|
|
165
|
+
|
|
166
|
+
- Website: <https://toolbase-ai.com>
|
|
167
|
+
- Docs: <https://toolbase-ai.com/docs>
|
|
168
|
+
- Backend API: <https://api.scitoolkit.org>
|
|
169
|
+
- GitHub: <https://github.com/alexr314/toolbase>
|
|
170
|
+
- Issues: <https://github.com/alexr314/toolbase/issues>
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "toolbase"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.3.0"
|
|
8
8
|
description = "The community registry and CLI for AI agent toolkits - discover, share, and serve tools to AI agents over MCP"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12"
|
|
@@ -36,7 +36,7 @@ from __future__ import annotations
|
|
|
36
36
|
import contextlib
|
|
37
37
|
import io
|
|
38
38
|
from pathlib import Path
|
|
39
|
-
from typing import Any, Iterator, List, Optional
|
|
39
|
+
from typing import Any, Dict, Iterator, List, Optional
|
|
40
40
|
|
|
41
41
|
from ..serve.orchestrator import DEFAULT_CALL_TIMEOUT_S, Orchestrator
|
|
42
42
|
|
|
@@ -93,6 +93,7 @@ def toolbase_tools(
|
|
|
93
93
|
project_root: Optional[Path] = None,
|
|
94
94
|
call_timeout_s: float = DEFAULT_CALL_TIMEOUT_S,
|
|
95
95
|
quiet: bool = False,
|
|
96
|
+
config_overrides: Optional[Dict[str, Any]] = None,
|
|
96
97
|
) -> Iterator[List[Any]]:
|
|
97
98
|
"""Spin up toolbase's served tools and yield them as orchestral BaseTools.
|
|
98
99
|
|
|
@@ -110,6 +111,14 @@ def toolbase_tools(
|
|
|
110
111
|
clients (default 60s).
|
|
111
112
|
quiet: suppress the orchestrator's startup banner (which otherwise
|
|
112
113
|
prints to stderr).
|
|
114
|
+
config_overrides: state-config keys merged over every served
|
|
115
|
+
toolkit's resolved config before host spawn. The embedding
|
|
116
|
+
harness uses this to scope file-aware tools to its own
|
|
117
|
+
working directory — e.g. a benchmark runner passing
|
|
118
|
+
``{"base_directory": "<trial sandbox>"}`` so the tools an
|
|
119
|
+
agent calls read/write the same tree the agent's other
|
|
120
|
+
tools see. Keys a toolkit doesn't declare as StateFields
|
|
121
|
+
are ignored by the host.
|
|
113
122
|
|
|
114
123
|
Yields:
|
|
115
124
|
A list of orchestral ``BaseTool`` instances (namespaced
|
|
@@ -130,9 +139,14 @@ def toolbase_tools(
|
|
|
130
139
|
"""
|
|
131
140
|
profile_obj = _resolve(project_root, profile)
|
|
132
141
|
console = _null_console() if quiet else None
|
|
133
|
-
|
|
142
|
+
orch_kwargs: dict = dict(
|
|
134
143
|
console=console, profile=profile_obj, call_timeout_s=call_timeout_s,
|
|
135
144
|
)
|
|
145
|
+
if config_overrides:
|
|
146
|
+
# Passed conditionally so test doubles (and any subclass) with the
|
|
147
|
+
# pre-override Orchestrator signature keep working unchanged.
|
|
148
|
+
orch_kwargs["config_overrides"] = config_overrides
|
|
149
|
+
orch = Orchestrator(**orch_kwargs)
|
|
136
150
|
try:
|
|
137
151
|
tools = orch.start()
|
|
138
152
|
yield tools
|
|
@@ -752,6 +752,7 @@ class Orchestrator:
|
|
|
752
752
|
toolkits_dir: Optional[Path] = None,
|
|
753
753
|
profile: Optional[Any] = None, # serve.profiles.ResolvedProfile
|
|
754
754
|
call_timeout_s: float = DEFAULT_CALL_TIMEOUT_S,
|
|
755
|
+
config_overrides: Optional[Dict[str, Any]] = None,
|
|
755
756
|
):
|
|
756
757
|
self.console = console or Console(stderr=True)
|
|
757
758
|
# Stderr console because stdin/stdout are owned by MCP stdio in the
|
|
@@ -774,6 +775,13 @@ class Orchestrator:
|
|
|
774
775
|
# enforced at the CLI boundary, not here.
|
|
775
776
|
self._profile = profile
|
|
776
777
|
self._call_timeout_s = call_timeout_s
|
|
778
|
+
# Per-serve state-config overrides, merged over every toolkit's
|
|
779
|
+
# resolved config before host spawn. The embedding harness uses
|
|
780
|
+
# this to scope file-aware tools to its own working directory
|
|
781
|
+
# (e.g. a benchmark runner pointing ``base_directory`` at the
|
|
782
|
+
# trial sandbox); keys a toolkit doesn't declare as StateFields
|
|
783
|
+
# are ignored by the host's injection.
|
|
784
|
+
self._config_overrides = dict(config_overrides or {})
|
|
777
785
|
|
|
778
786
|
def _selection_for(self, name: str):
|
|
779
787
|
"""Return the ``ToolkitSelection`` for a toolkit under the active
|
|
@@ -999,6 +1007,8 @@ class Orchestrator:
|
|
|
999
1007
|
)
|
|
1000
1008
|
return
|
|
1001
1009
|
|
|
1010
|
+
if self._config_overrides:
|
|
1011
|
+
state_config = {**(state_config or {}), **self._config_overrides}
|
|
1002
1012
|
spawn, err = self._spawn_and_connect(disc, state_config=state_config)
|
|
1003
1013
|
if err is not None:
|
|
1004
1014
|
self.console.print(
|
|
@@ -1308,6 +1318,8 @@ class Orchestrator:
|
|
|
1308
1318
|
)
|
|
1309
1319
|
return
|
|
1310
1320
|
|
|
1321
|
+
if self._config_overrides:
|
|
1322
|
+
state_config = {**(state_config or {}), **self._config_overrides}
|
|
1311
1323
|
spawn, err = self._spawn_and_connect(
|
|
1312
1324
|
rt.discovery, state_config=state_config,
|
|
1313
1325
|
)
|
toolbase-0.2.1/PKG-INFO
DELETED
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: toolbase
|
|
3
|
-
Version: 0.2.1
|
|
4
|
-
Summary: The community registry and CLI for AI agent toolkits - discover, share, and serve tools to AI agents over MCP
|
|
5
|
-
Author-email: Alex Roman <toolbase.dev@gmail.com>
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/alexr314/toolbase
|
|
8
|
-
Project-URL: Documentation, https://github.com/alexr314/toolbase#readme
|
|
9
|
-
Project-URL: Repository, https://github.com/alexr314/toolbase
|
|
10
|
-
Project-URL: Issues, https://github.com/alexr314/toolbase/issues
|
|
11
|
-
Keywords: ai,agents,tools,toolkit,mcp,orchestral,registry,package-manager
|
|
12
|
-
Classifier: Development Status :: 3 - Alpha
|
|
13
|
-
Classifier: Intended Audience :: Developers
|
|
14
|
-
Classifier: Intended Audience :: Science/Research
|
|
15
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
|
-
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
17
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
18
|
-
Classifier: Programming Language :: Python :: 3
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
-
Requires-Python: >=3.12
|
|
21
|
-
Description-Content-Type: text/markdown
|
|
22
|
-
License-File: LICENSE
|
|
23
|
-
Requires-Dist: click>=8.0
|
|
24
|
-
Requires-Dist: requests>=2.31
|
|
25
|
-
Requires-Dist: pyyaml>=6.0
|
|
26
|
-
Requires-Dist: ruamel.yaml>=0.18
|
|
27
|
-
Requires-Dist: rich>=13.0
|
|
28
|
-
Requires-Dist: pydantic>=2.0
|
|
29
|
-
Requires-Dist: email-validator>=2.0
|
|
30
|
-
Requires-Dist: orchestral-ai>=1.4
|
|
31
|
-
Requires-Dist: mcp>=1.0
|
|
32
|
-
Requires-Dist: tomlkit>=0.12
|
|
33
|
-
Provides-Extra: dev
|
|
34
|
-
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
35
|
-
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
36
|
-
Requires-Dist: black>=23.0; extra == "dev"
|
|
37
|
-
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
38
|
-
Provides-Extra: docs
|
|
39
|
-
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
|
|
40
|
-
Dynamic: license-file
|
|
41
|
-
|
|
42
|
-
# toolbase
|
|
43
|
-
|
|
44
|
-
The package manager and runtime for AI agent tools. Publish toolkits to
|
|
45
|
-
the [Toolbase registry](https://toolbase-ai.com) and use them in coding
|
|
46
|
-
agents (Claude Code, Codex) or any client that speaks the
|
|
47
|
-
[Model Context Protocol](https://modelcontextprotocol.io). Toolkits span
|
|
48
|
-
any domain, from web and data utilities to scientific categories like
|
|
49
|
-
astro, hep, and quantum.
|
|
50
|
-
|
|
51
|
-
A **toolkit** is the publishable unit; it bundles one or more **tools**
|
|
52
|
-
an agent can call. Each toolkit installs into its own isolated Python
|
|
53
|
-
environment, so dependency conflicts between toolkits are never a
|
|
54
|
-
problem.
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## Quickstart
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
pip install toolbase
|
|
62
|
-
|
|
63
|
-
# Install a toolkit from the registry (global by default)
|
|
64
|
-
tb install arxiv-search
|
|
65
|
-
|
|
66
|
-
# Expose it to the agent (installing alone serves nothing)
|
|
67
|
-
tb activate arxiv-search
|
|
68
|
-
|
|
69
|
-
# Wire toolbase into Claude Code (writes its MCP config for you)
|
|
70
|
-
tb connect claude-code
|
|
71
|
-
|
|
72
|
-
# See what's installed and what's active
|
|
73
|
-
tb list
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
`tb` is a shorter alias for `toolbase`; both ship with the package
|
|
77
|
-
and behave identically.
|
|
78
|
-
|
|
79
|
-
**Install, then activate.** Installing places a toolkit in the cache but
|
|
80
|
-
does not serve it — nothing reaches the agent until you `tb activate` it
|
|
81
|
-
(conda-style: install ≠ activate). `tb install -a arxiv-search` does both
|
|
82
|
-
in one step. Use `tb deactivate` to hide a toolkit, bundle, or tool again.
|
|
83
|
-
|
|
84
|
-
Installs are global by default (`-g`). Use `-l` to pin a toolkit into
|
|
85
|
-
the current project's `.toolbase/manifest.yaml` instead — the binary
|
|
86
|
-
still lives in the shared global cache, only the pin is project-scoped,
|
|
87
|
-
so a collaborator who clones the project and runs `tb install` (no
|
|
88
|
-
args) gets the same toolkits at the same versions.
|
|
89
|
-
|
|
90
|
-
**`tb connect` replaces hand-editing MCP config.** It writes the
|
|
91
|
-
`toolbase` server entry into [Claude Code](https://claude.ai/code)'s
|
|
92
|
-
config (`~/.claude.json` for user scope, `.mcp.json` for `-l` project
|
|
93
|
-
scope). Claude Code then spawns its own `toolbase serve` subprocess and
|
|
94
|
-
discovers the active profile's tools. To watch tool calls fire in real
|
|
95
|
-
time, run `tb logs` in another terminal. (If you'd rather wire it by
|
|
96
|
-
hand, the entry is `{"mcpServers": {"toolbase": {"command": "toolbase",
|
|
97
|
-
"args": ["serve"]}}}`.)
|
|
98
|
-
|
|
99
|
-
### Curating what the agent sees
|
|
100
|
-
|
|
101
|
-
`tb activate` / `tb deactivate` edit the active **profile** — a named
|
|
102
|
-
curated set of tools. Three granularities:
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
tb activate heptapod # the whole toolkit
|
|
106
|
-
tb activate heptapod/pythia # one bundle (a coherent group of tools)
|
|
107
|
-
tb activate heptapod__run_pythia # one specific tool
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Most users only ever touch the default profile via these commands. Power
|
|
111
|
-
users can keep several named profiles (`tb profile create paper`,
|
|
112
|
-
`tb connect claude-code --profile paper`) and switch between them. Run
|
|
113
|
-
`tb profile tools` to see the bundles and tools a toolkit offers.
|
|
114
|
-
|
|
115
|
-
---
|
|
116
|
-
|
|
117
|
-
## Authoring a toolkit
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
tb init my-toolkit # scaffold from template
|
|
121
|
-
# tb init my-toolkit --with-setup # if your toolkit needs a setup.py
|
|
122
|
-
cd my-toolkit
|
|
123
|
-
# write your tools in tools/ ; write skills in skills/
|
|
124
|
-
tb validate # check structure
|
|
125
|
-
tb login # one-time, browser-flow auth (per-user)
|
|
126
|
-
tb publish # ship it (auto-registers on first run)
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
`tb publish` registers the toolkit on the registry on its first run —
|
|
130
|
-
no separate step. If the name isn't registered yet, it prompts you
|
|
131
|
-
(using the metadata in `toolkit.yaml`) and registers it before
|
|
132
|
-
uploading. `tb create` is still available if you want to reserve a
|
|
133
|
-
name without uploading code yet, but it's no longer required.
|
|
134
|
-
|
|
135
|
-
`tb login` (no toolkit name) does a browser-flow that gives you a
|
|
136
|
-
per-user token good for any toolkit you own or collaborate on. Legacy
|
|
137
|
-
per-toolkit tokens are still accepted (`tb login my-toolkit`) but
|
|
138
|
-
deprecated.
|
|
139
|
-
|
|
140
|
-
**Iterating locally.** To develop a toolkit's code without a
|
|
141
|
-
publish→install round-trip on every change, install it editable:
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
cd my-toolkit
|
|
145
|
-
tb install -e . -a # live symlink to this source dir, and activate it
|
|
146
|
-
# edit tools/, restart your agent session — edits are live
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
An editable install symlinks your source into the cache and builds the
|
|
150
|
-
environment there (your source tree stays clean — no `.venv` written
|
|
151
|
-
into it). Edits to your tool source appear on the next serve. If you
|
|
152
|
-
change dependencies, re-run `tb install -e .` to rebuild the env.
|
|
153
|
-
|
|
154
|
-
For the agent-assisted authoring flow (recommended for first toolkits),
|
|
155
|
-
see <https://toolbase-ai.com/docs/scaffold-with-an-agent>.
|
|
156
|
-
|
|
157
|
-
For the full author guide — toolkit layout, tool conventions, skills,
|
|
158
|
-
bundles, expected_toolkits, configuration — see
|
|
159
|
-
<https://toolbase-ai.com/docs/authoring> and
|
|
160
|
-
<https://toolbase-ai.com/docs/configuration>.
|
|
161
|
-
|
|
162
|
-
---
|
|
163
|
-
|
|
164
|
-
## What's in toolbase
|
|
165
|
-
|
|
166
|
-
**Commands:**
|
|
167
|
-
|
|
168
|
-
- `init`, `create`, `ingest`, `validate`, `login`, `whoami`, `logout`,
|
|
169
|
-
`publish` — author and ship toolkits.
|
|
170
|
-
- `search`, `install`, `uninstall`, `list` — manage installed toolkits.
|
|
171
|
-
`install` takes `-g` (global, the default), `-l` (pin into this
|
|
172
|
-
project), `-e <path>` (editable, live symlink to a local source), or
|
|
173
|
-
`-a` (also activate). `list` takes `-v` for a per-tool served/hidden
|
|
174
|
-
view.
|
|
175
|
-
- `activate` / `deactivate` — expose or hide a toolkit, bundle
|
|
176
|
-
(`toolkit/bundle`), or tool (`toolkit__tool`) in the active profile.
|
|
177
|
-
- `connect <client>` / `disconnect <client>` — write (or remove)
|
|
178
|
-
toolbase in an agent client's MCP config (`claude-code` in v1).
|
|
179
|
-
`--list` shows where it's wired; `--clients` lists supported targets.
|
|
180
|
-
- `serve` — run the active profile's tools as an MCP stdio server
|
|
181
|
-
(`--profile`, `--dry-run`, `--call-timeout`). Normally spawned by the
|
|
182
|
-
client, not run by hand.
|
|
183
|
-
- `profile <list|show|create|edit|delete|set-default|path|tools>` —
|
|
184
|
-
manage named profiles (curated tool sets).
|
|
185
|
-
- `setup <toolkit>` — run a toolkit's `setup.py` (`--reset`, `--check`).
|
|
186
|
-
- `config <show|edit|path|set|unset|validate>` — manage per-toolkit
|
|
187
|
-
config files at `~/.toolbase/config/<toolkit>.yaml`.
|
|
188
|
-
- `logs` — tail the serve log with Rich coloring.
|
|
189
|
-
|
|
190
|
-
**Features:**
|
|
191
|
-
|
|
192
|
-
- **Editable installs.** `tb install -e <path>` symlinks a local
|
|
193
|
-
toolkit source into the cache so `serve` loads tools live — the
|
|
194
|
-
`pip install -e .` parallel for the toolkit dev loop. The env is
|
|
195
|
-
built and cached; only the source is symlinked, so your source tree
|
|
196
|
-
stays clean.
|
|
197
|
-
- **Multi-version installs + per-project pinning.** Different versions
|
|
198
|
-
of a toolkit coexist in the global cache; each project pins which
|
|
199
|
-
version it uses in a git-committed `.toolbase/manifest.yaml`. The
|
|
200
|
-
binary lives once in the shared cache (`-g`/`-l` choose the manifest
|
|
201
|
-
scope, not the file location).
|
|
202
|
-
- **Configuration system.** Toolkits declare a `config:` block in
|
|
203
|
-
`toolkit.yaml` (seven types: `string`, `secret`, `path`, `integer`,
|
|
204
|
-
`float`, `boolean`, `choice`); users fill it at install time or by
|
|
205
|
-
editing `~/.toolbase/config/<toolkit>.yaml`. Toolkits with more
|
|
206
|
-
involved setup ship a `setup.py` with full prompts, downloads
|
|
207
|
-
(resumable, SHA256-verified, auto-extracting tar/zip with zip-slip
|
|
208
|
-
defense), and derived-state writes via `ctx.set_config(...)`.
|
|
209
|
-
- **Per-user auth.** `toolbase login` does a browser-flow that
|
|
210
|
-
stores a per-user token good for any toolkit you own or
|
|
211
|
-
collaborate on. Legacy per-toolkit tokens still work but are
|
|
212
|
-
deprecated.
|
|
213
|
-
- **Multi-tier execution:** same-Python toolkits run in venv,
|
|
214
|
-
different-Python toolkits run under conda (auto-detected). Docker
|
|
215
|
-
mode coming in 3B.
|
|
216
|
-
- **Profiles:** curated tool sets assembled across toolkits at
|
|
217
|
-
toolkit / bundle / tool granularity, stored one-file-per-profile under
|
|
218
|
-
`.toolbase/profiles/`. Activate with `tb activate`; the active profile
|
|
219
|
-
is chosen by `default.profile` in `~/.toolbase/serve.yaml` (or a
|
|
220
|
-
project-level override).
|
|
221
|
-
- **Skills surfacing:** a toolkit's `skills/*.md` files are
|
|
222
|
-
auto-mirrored to `~/.claude/skills/` so Claude Code discovers
|
|
223
|
-
them. Symlinked on POSIX for live edits, copied on Windows.
|
|
224
|
-
- **Agent-friendly flags:** every state-modifying command supports
|
|
225
|
-
`--yes`, `--no`, `--no-input`. Non-TTY stdin auto-applies
|
|
226
|
-
non-interactive behavior.
|
|
227
|
-
- **Versioning safeguards:** `publish` blocks "version already
|
|
228
|
-
exists" and "version decrease" with helpful suggestions before
|
|
229
|
-
upload.
|
|
230
|
-
- **Crash resilience:** per-toolkit subprocess auto-restart with
|
|
231
|
-
exponential backoff. A crashed toolkit doesn't take the
|
|
232
|
-
orchestrator down.
|
|
233
|
-
- Python 3.12+ required.
|
|
234
|
-
|
|
235
|
-
See [CHANGELOG.md](CHANGELOG.md) for the full release history.
|
|
236
|
-
|
|
237
|
-
---
|
|
238
|
-
|
|
239
|
-
## Architecture
|
|
240
|
-
|
|
241
|
-
The package has three pieces:
|
|
242
|
-
|
|
243
|
-
- **CLI** (this package) — installed locally, manages toolkit
|
|
244
|
-
environments and serves tools.
|
|
245
|
-
- **Backend** ([api.scitoolkit.org](https://api.scitoolkit.org)) —
|
|
246
|
-
registry, auth, tarball storage.
|
|
247
|
-
- **Website** ([toolbase-ai.com](https://toolbase-ai.com)) — discover and
|
|
248
|
-
manage published toolkits.
|
|
249
|
-
|
|
250
|
-
Each installed toolkit runs in its own subprocess in its own Python
|
|
251
|
-
environment. The `toolbase serve` orchestrator aggregates them and
|
|
252
|
-
exposes the union as a single MCP server upstream. Failures in one
|
|
253
|
-
toolkit don't affect others.
|
|
254
|
-
|
|
255
|
-
---
|
|
256
|
-
|
|
257
|
-
## Contributing
|
|
258
|
-
|
|
259
|
-
Issues and PRs are welcome at
|
|
260
|
-
<https://github.com/alexr314/toolbase>.
|
|
261
|
-
|
|
262
|
-
---
|
|
263
|
-
|
|
264
|
-
## License
|
|
265
|
-
|
|
266
|
-
MIT. See [LICENSE](LICENSE).
|
|
267
|
-
|
|
268
|
-
## Links
|
|
269
|
-
|
|
270
|
-
- Website: <https://toolbase-ai.com>
|
|
271
|
-
- Backend API: <https://api.scitoolkit.org>
|
|
272
|
-
- GitHub: <https://github.com/alexr314/toolbase>
|
|
273
|
-
- Issues: <https://github.com/alexr314/toolbase/issues>
|
toolbase-0.2.1/README.md
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
# toolbase
|
|
2
|
-
|
|
3
|
-
The package manager and runtime for AI agent tools. Publish toolkits to
|
|
4
|
-
the [Toolbase registry](https://toolbase-ai.com) and use them in coding
|
|
5
|
-
agents (Claude Code, Codex) or any client that speaks the
|
|
6
|
-
[Model Context Protocol](https://modelcontextprotocol.io). Toolkits span
|
|
7
|
-
any domain, from web and data utilities to scientific categories like
|
|
8
|
-
astro, hep, and quantum.
|
|
9
|
-
|
|
10
|
-
A **toolkit** is the publishable unit; it bundles one or more **tools**
|
|
11
|
-
an agent can call. Each toolkit installs into its own isolated Python
|
|
12
|
-
environment, so dependency conflicts between toolkits are never a
|
|
13
|
-
problem.
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Quickstart
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
pip install toolbase
|
|
21
|
-
|
|
22
|
-
# Install a toolkit from the registry (global by default)
|
|
23
|
-
tb install arxiv-search
|
|
24
|
-
|
|
25
|
-
# Expose it to the agent (installing alone serves nothing)
|
|
26
|
-
tb activate arxiv-search
|
|
27
|
-
|
|
28
|
-
# Wire toolbase into Claude Code (writes its MCP config for you)
|
|
29
|
-
tb connect claude-code
|
|
30
|
-
|
|
31
|
-
# See what's installed and what's active
|
|
32
|
-
tb list
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
`tb` is a shorter alias for `toolbase`; both ship with the package
|
|
36
|
-
and behave identically.
|
|
37
|
-
|
|
38
|
-
**Install, then activate.** Installing places a toolkit in the cache but
|
|
39
|
-
does not serve it — nothing reaches the agent until you `tb activate` it
|
|
40
|
-
(conda-style: install ≠ activate). `tb install -a arxiv-search` does both
|
|
41
|
-
in one step. Use `tb deactivate` to hide a toolkit, bundle, or tool again.
|
|
42
|
-
|
|
43
|
-
Installs are global by default (`-g`). Use `-l` to pin a toolkit into
|
|
44
|
-
the current project's `.toolbase/manifest.yaml` instead — the binary
|
|
45
|
-
still lives in the shared global cache, only the pin is project-scoped,
|
|
46
|
-
so a collaborator who clones the project and runs `tb install` (no
|
|
47
|
-
args) gets the same toolkits at the same versions.
|
|
48
|
-
|
|
49
|
-
**`tb connect` replaces hand-editing MCP config.** It writes the
|
|
50
|
-
`toolbase` server entry into [Claude Code](https://claude.ai/code)'s
|
|
51
|
-
config (`~/.claude.json` for user scope, `.mcp.json` for `-l` project
|
|
52
|
-
scope). Claude Code then spawns its own `toolbase serve` subprocess and
|
|
53
|
-
discovers the active profile's tools. To watch tool calls fire in real
|
|
54
|
-
time, run `tb logs` in another terminal. (If you'd rather wire it by
|
|
55
|
-
hand, the entry is `{"mcpServers": {"toolbase": {"command": "toolbase",
|
|
56
|
-
"args": ["serve"]}}}`.)
|
|
57
|
-
|
|
58
|
-
### Curating what the agent sees
|
|
59
|
-
|
|
60
|
-
`tb activate` / `tb deactivate` edit the active **profile** — a named
|
|
61
|
-
curated set of tools. Three granularities:
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
tb activate heptapod # the whole toolkit
|
|
65
|
-
tb activate heptapod/pythia # one bundle (a coherent group of tools)
|
|
66
|
-
tb activate heptapod__run_pythia # one specific tool
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Most users only ever touch the default profile via these commands. Power
|
|
70
|
-
users can keep several named profiles (`tb profile create paper`,
|
|
71
|
-
`tb connect claude-code --profile paper`) and switch between them. Run
|
|
72
|
-
`tb profile tools` to see the bundles and tools a toolkit offers.
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
76
|
-
## Authoring a toolkit
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
tb init my-toolkit # scaffold from template
|
|
80
|
-
# tb init my-toolkit --with-setup # if your toolkit needs a setup.py
|
|
81
|
-
cd my-toolkit
|
|
82
|
-
# write your tools in tools/ ; write skills in skills/
|
|
83
|
-
tb validate # check structure
|
|
84
|
-
tb login # one-time, browser-flow auth (per-user)
|
|
85
|
-
tb publish # ship it (auto-registers on first run)
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
`tb publish` registers the toolkit on the registry on its first run —
|
|
89
|
-
no separate step. If the name isn't registered yet, it prompts you
|
|
90
|
-
(using the metadata in `toolkit.yaml`) and registers it before
|
|
91
|
-
uploading. `tb create` is still available if you want to reserve a
|
|
92
|
-
name without uploading code yet, but it's no longer required.
|
|
93
|
-
|
|
94
|
-
`tb login` (no toolkit name) does a browser-flow that gives you a
|
|
95
|
-
per-user token good for any toolkit you own or collaborate on. Legacy
|
|
96
|
-
per-toolkit tokens are still accepted (`tb login my-toolkit`) but
|
|
97
|
-
deprecated.
|
|
98
|
-
|
|
99
|
-
**Iterating locally.** To develop a toolkit's code without a
|
|
100
|
-
publish→install round-trip on every change, install it editable:
|
|
101
|
-
|
|
102
|
-
```bash
|
|
103
|
-
cd my-toolkit
|
|
104
|
-
tb install -e . -a # live symlink to this source dir, and activate it
|
|
105
|
-
# edit tools/, restart your agent session — edits are live
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
An editable install symlinks your source into the cache and builds the
|
|
109
|
-
environment there (your source tree stays clean — no `.venv` written
|
|
110
|
-
into it). Edits to your tool source appear on the next serve. If you
|
|
111
|
-
change dependencies, re-run `tb install -e .` to rebuild the env.
|
|
112
|
-
|
|
113
|
-
For the agent-assisted authoring flow (recommended for first toolkits),
|
|
114
|
-
see <https://toolbase-ai.com/docs/scaffold-with-an-agent>.
|
|
115
|
-
|
|
116
|
-
For the full author guide — toolkit layout, tool conventions, skills,
|
|
117
|
-
bundles, expected_toolkits, configuration — see
|
|
118
|
-
<https://toolbase-ai.com/docs/authoring> and
|
|
119
|
-
<https://toolbase-ai.com/docs/configuration>.
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
## What's in toolbase
|
|
124
|
-
|
|
125
|
-
**Commands:**
|
|
126
|
-
|
|
127
|
-
- `init`, `create`, `ingest`, `validate`, `login`, `whoami`, `logout`,
|
|
128
|
-
`publish` — author and ship toolkits.
|
|
129
|
-
- `search`, `install`, `uninstall`, `list` — manage installed toolkits.
|
|
130
|
-
`install` takes `-g` (global, the default), `-l` (pin into this
|
|
131
|
-
project), `-e <path>` (editable, live symlink to a local source), or
|
|
132
|
-
`-a` (also activate). `list` takes `-v` for a per-tool served/hidden
|
|
133
|
-
view.
|
|
134
|
-
- `activate` / `deactivate` — expose or hide a toolkit, bundle
|
|
135
|
-
(`toolkit/bundle`), or tool (`toolkit__tool`) in the active profile.
|
|
136
|
-
- `connect <client>` / `disconnect <client>` — write (or remove)
|
|
137
|
-
toolbase in an agent client's MCP config (`claude-code` in v1).
|
|
138
|
-
`--list` shows where it's wired; `--clients` lists supported targets.
|
|
139
|
-
- `serve` — run the active profile's tools as an MCP stdio server
|
|
140
|
-
(`--profile`, `--dry-run`, `--call-timeout`). Normally spawned by the
|
|
141
|
-
client, not run by hand.
|
|
142
|
-
- `profile <list|show|create|edit|delete|set-default|path|tools>` —
|
|
143
|
-
manage named profiles (curated tool sets).
|
|
144
|
-
- `setup <toolkit>` — run a toolkit's `setup.py` (`--reset`, `--check`).
|
|
145
|
-
- `config <show|edit|path|set|unset|validate>` — manage per-toolkit
|
|
146
|
-
config files at `~/.toolbase/config/<toolkit>.yaml`.
|
|
147
|
-
- `logs` — tail the serve log with Rich coloring.
|
|
148
|
-
|
|
149
|
-
**Features:**
|
|
150
|
-
|
|
151
|
-
- **Editable installs.** `tb install -e <path>` symlinks a local
|
|
152
|
-
toolkit source into the cache so `serve` loads tools live — the
|
|
153
|
-
`pip install -e .` parallel for the toolkit dev loop. The env is
|
|
154
|
-
built and cached; only the source is symlinked, so your source tree
|
|
155
|
-
stays clean.
|
|
156
|
-
- **Multi-version installs + per-project pinning.** Different versions
|
|
157
|
-
of a toolkit coexist in the global cache; each project pins which
|
|
158
|
-
version it uses in a git-committed `.toolbase/manifest.yaml`. The
|
|
159
|
-
binary lives once in the shared cache (`-g`/`-l` choose the manifest
|
|
160
|
-
scope, not the file location).
|
|
161
|
-
- **Configuration system.** Toolkits declare a `config:` block in
|
|
162
|
-
`toolkit.yaml` (seven types: `string`, `secret`, `path`, `integer`,
|
|
163
|
-
`float`, `boolean`, `choice`); users fill it at install time or by
|
|
164
|
-
editing `~/.toolbase/config/<toolkit>.yaml`. Toolkits with more
|
|
165
|
-
involved setup ship a `setup.py` with full prompts, downloads
|
|
166
|
-
(resumable, SHA256-verified, auto-extracting tar/zip with zip-slip
|
|
167
|
-
defense), and derived-state writes via `ctx.set_config(...)`.
|
|
168
|
-
- **Per-user auth.** `toolbase login` does a browser-flow that
|
|
169
|
-
stores a per-user token good for any toolkit you own or
|
|
170
|
-
collaborate on. Legacy per-toolkit tokens still work but are
|
|
171
|
-
deprecated.
|
|
172
|
-
- **Multi-tier execution:** same-Python toolkits run in venv,
|
|
173
|
-
different-Python toolkits run under conda (auto-detected). Docker
|
|
174
|
-
mode coming in 3B.
|
|
175
|
-
- **Profiles:** curated tool sets assembled across toolkits at
|
|
176
|
-
toolkit / bundle / tool granularity, stored one-file-per-profile under
|
|
177
|
-
`.toolbase/profiles/`. Activate with `tb activate`; the active profile
|
|
178
|
-
is chosen by `default.profile` in `~/.toolbase/serve.yaml` (or a
|
|
179
|
-
project-level override).
|
|
180
|
-
- **Skills surfacing:** a toolkit's `skills/*.md` files are
|
|
181
|
-
auto-mirrored to `~/.claude/skills/` so Claude Code discovers
|
|
182
|
-
them. Symlinked on POSIX for live edits, copied on Windows.
|
|
183
|
-
- **Agent-friendly flags:** every state-modifying command supports
|
|
184
|
-
`--yes`, `--no`, `--no-input`. Non-TTY stdin auto-applies
|
|
185
|
-
non-interactive behavior.
|
|
186
|
-
- **Versioning safeguards:** `publish` blocks "version already
|
|
187
|
-
exists" and "version decrease" with helpful suggestions before
|
|
188
|
-
upload.
|
|
189
|
-
- **Crash resilience:** per-toolkit subprocess auto-restart with
|
|
190
|
-
exponential backoff. A crashed toolkit doesn't take the
|
|
191
|
-
orchestrator down.
|
|
192
|
-
- Python 3.12+ required.
|
|
193
|
-
|
|
194
|
-
See [CHANGELOG.md](CHANGELOG.md) for the full release history.
|
|
195
|
-
|
|
196
|
-
---
|
|
197
|
-
|
|
198
|
-
## Architecture
|
|
199
|
-
|
|
200
|
-
The package has three pieces:
|
|
201
|
-
|
|
202
|
-
- **CLI** (this package) — installed locally, manages toolkit
|
|
203
|
-
environments and serves tools.
|
|
204
|
-
- **Backend** ([api.scitoolkit.org](https://api.scitoolkit.org)) —
|
|
205
|
-
registry, auth, tarball storage.
|
|
206
|
-
- **Website** ([toolbase-ai.com](https://toolbase-ai.com)) — discover and
|
|
207
|
-
manage published toolkits.
|
|
208
|
-
|
|
209
|
-
Each installed toolkit runs in its own subprocess in its own Python
|
|
210
|
-
environment. The `toolbase serve` orchestrator aggregates them and
|
|
211
|
-
exposes the union as a single MCP server upstream. Failures in one
|
|
212
|
-
toolkit don't affect others.
|
|
213
|
-
|
|
214
|
-
---
|
|
215
|
-
|
|
216
|
-
## Contributing
|
|
217
|
-
|
|
218
|
-
Issues and PRs are welcome at
|
|
219
|
-
<https://github.com/alexr314/toolbase>.
|
|
220
|
-
|
|
221
|
-
---
|
|
222
|
-
|
|
223
|
-
## License
|
|
224
|
-
|
|
225
|
-
MIT. See [LICENSE](LICENSE).
|
|
226
|
-
|
|
227
|
-
## Links
|
|
228
|
-
|
|
229
|
-
- Website: <https://toolbase-ai.com>
|
|
230
|
-
- Backend API: <https://api.scitoolkit.org>
|
|
231
|
-
- GitHub: <https://github.com/alexr314/toolbase>
|
|
232
|
-
- Issues: <https://github.com/alexr314/toolbase/issues>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|