The community registry and CLI for AI agent toolkits - discover, share, and serve tools to AI agents over MCP
Project description
toolbase
The package manager and runtime for AI agent tools. Publish toolkits to the Toolbase registry and use them in coding agents (Claude Code, Codex) or any client that speaks the Model Context Protocol. Toolkits span any domain, from web and data utilities to scientific categories like astro, hep, and quantum.
A toolkit is the publishable unit; it bundles one or more tools an agent can call. Each toolkit installs into its own isolated Python environment, so dependency conflicts between toolkits are never a problem.
Quickstart
pip install toolbase
# Install a toolkit from the registry (global by default)
tb install arxiv-search
# Expose it to the agent (installing alone serves nothing)
tb activate arxiv-search
# Wire toolbase into Claude Code (writes its MCP config for you)
tb connect claude-code
# See what's installed and what's active
tb list
tb is a shorter alias for toolbase; both ship with the package
and behave identically.
Install, then activate. Installing places a toolkit in the cache but
does not serve it — nothing reaches the agent until you tb activate it
(conda-style: install ≠ activate). tb install -a arxiv-search does both
in one step. Use tb deactivate to hide a toolkit, bundle, or tool again.
Installs are global by default (-g). Use -l to pin a toolkit into
the current project's .toolbase/manifest.yaml instead — the binary
still lives in the shared global cache, only the pin is project-scoped,
so a collaborator who clones the project and runs tb install (no
args) gets the same toolkits at the same versions.
tb connect replaces hand-editing MCP config. It writes the
toolbase server entry into Claude Code's
config (~/.claude.json for user scope, .mcp.json for -l project
scope). Claude Code then spawns its own toolbase serve subprocess and
discovers the active profile's tools. To watch tool calls fire in real
time, run tb logs in another terminal. (If you'd rather wire it by
hand, the entry is {"mcpServers": {"toolbase": {"command": "toolbase", "args": ["serve"]}}}.)
Curating what the agent sees
tb activate / tb deactivate edit the active profile — a named
curated set of tools. Three granularities:
tb activate heptapod # the whole toolkit
tb activate heptapod/pythia # one bundle (a coherent group of tools)
tb activate heptapod__run_pythia # one specific tool
Most users only ever touch the default profile via these commands. Power
users can keep several named profiles (tb profile create paper,
tb connect claude-code --profile paper) and switch between them. Run
tb profile tools to see the bundles and tools a toolkit offers.
Authoring a toolkit
tb init my-toolkit # scaffold from template
# tb init my-toolkit --with-setup # if your toolkit needs a setup.py
cd my-toolkit
# write your tools in tools/ ; write skills in skills/
tb validate # check structure
tb login # one-time, browser-flow auth (per-user)
tb publish # ship it (auto-registers on first run)
tb publish registers the toolkit on the registry on its first run —
no separate step. If the name isn't registered yet, it prompts you
(using the metadata in toolkit.yaml) and registers it before
uploading. tb create is still available if you want to reserve a
name without uploading code yet, but it's no longer required.
tb login (no toolkit name) does a browser-flow that gives you a
per-user token good for any toolkit you own or collaborate on. Legacy
per-toolkit tokens are still accepted (tb login my-toolkit) but
deprecated.
Iterating locally. To develop a toolkit's code without a publish→install round-trip on every change, install it editable:
cd my-toolkit
tb install -e . -a # live symlink to this source dir, and activate it
# edit tools/, restart your agent session — edits are live
An editable install symlinks your source into the cache and builds the
environment there (your source tree stays clean — no .venv written
into it). Edits to your tool source appear on the next serve. If you
change dependencies, re-run tb install -e . to rebuild the env.
For the agent-assisted authoring flow (recommended for first toolkits), see https://toolbase-ai.com/docs/scaffold-with-an-agent.
For the full author guide — toolkit layout, tool conventions, skills, bundles, expected_toolkits, configuration — see https://toolbase-ai.com/docs/authoring and https://toolbase-ai.com/docs/configuration.
What's in toolbase
Commands:
init,create,ingest,validate,login,whoami,logout,publish— author and ship toolkits.search,install,uninstall,list— manage installed toolkits.installtakes-g(global, the default),-l(pin into this project),-e <path>(editable, live symlink to a local source), or-a(also activate).listtakes-vfor a per-tool served/hidden view.activate/deactivate— expose or hide a toolkit, bundle (toolkit/bundle), or tool (toolkit__tool) in the active profile.connect <client>/disconnect <client>— write (or remove) toolbase in an agent client's MCP config (claude-codein v1).--listshows where it's wired;--clientslists supported targets.serve— run the active profile's tools as an MCP stdio server (--profile,--dry-run,--call-timeout). Normally spawned by the client, not run by hand.profile <list|show|create|edit|delete|set-default|path|tools>— manage named profiles (curated tool sets).setup <toolkit>— run a toolkit'ssetup.py(--reset,--check).config <show|edit|path|set|unset|validate>— manage per-toolkit config files at~/.toolbase/config/<toolkit>.yaml.logs— tail the serve log with Rich coloring.
Features:
- Editable installs.
tb install -e <path>symlinks a local toolkit source into the cache soserveloads tools live — thepip install -e .parallel for the toolkit dev loop. The env is built and cached; only the source is symlinked, so your source tree stays clean. - Multi-version installs + per-project pinning. Different versions
of a toolkit coexist in the global cache; each project pins which
version it uses in a git-committed
.toolbase/manifest.yaml. The binary lives once in the shared cache (-g/-lchoose the manifest scope, not the file location). - Configuration system. Toolkits declare a
config:block intoolkit.yaml(seven types:string,secret,path,integer,float,boolean,choice); users fill it at install time or by editing~/.toolbase/config/<toolkit>.yaml. Toolkits with more involved setup ship asetup.pywith full prompts, downloads (resumable, SHA256-verified, auto-extracting tar/zip with zip-slip defense), and derived-state writes viactx.set_config(...). - Per-user auth.
toolbase logindoes a browser-flow that stores a per-user token good for any toolkit you own or collaborate on. Legacy per-toolkit tokens still work but are deprecated. - Multi-tier execution: same-Python toolkits run in venv, different-Python toolkits run under conda (auto-detected). Docker mode coming in 3B.
- Profiles: curated tool sets assembled across toolkits at
toolkit / bundle / tool granularity, stored one-file-per-profile under
.toolbase/profiles/. Activate withtb activate; the active profile is chosen bydefault.profilein~/.toolbase/serve.yaml(or a project-level override). - Skills surfacing: a toolkit's
skills/*.mdfiles are auto-mirrored to~/.claude/skills/so Claude Code discovers them. Symlinked on POSIX for live edits, copied on Windows. - Agent-friendly flags: every state-modifying command supports
--yes,--no,--no-input. Non-TTY stdin auto-applies non-interactive behavior. - Versioning safeguards:
publishblocks "version already exists" and "version decrease" with helpful suggestions before upload. - Crash resilience: per-toolkit subprocess auto-restart with exponential backoff. A crashed toolkit doesn't take the orchestrator down.
- Python 3.12+ required.
See CHANGELOG.md for the full release history.
Architecture
The package has three pieces:
- CLI (this package) — installed locally, manages toolkit environments and serves tools.
- Backend (api.scitoolkit.org) — registry, auth, tarball storage.
- Website (toolbase-ai.com) — discover and manage published toolkits.
Each installed toolkit runs in its own subprocess in its own Python
environment. The toolbase serve orchestrator aggregates them and
exposes the union as a single MCP server upstream. Failures in one
toolkit don't affect others.
Contributing
Issues and PRs are welcome at https://github.com/alexr314/toolbase.
License
MIT. See LICENSE.
Links
- Website: https://toolbase-ai.com
- Backend API: https://api.scitoolkit.org
- GitHub: https://github.com/alexr314/toolbase
- Issues: https://github.com/alexr314/toolbase/issues
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toolbase-0.2.1.tar.gz.
File metadata
- Download URL: toolbase-0.2.1.tar.gz
- Upload date:
- Size: 236.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d28e7ca80f0bfc237b242c38b9f4cac069be3e0592bf635fbed1bb604a703f6d
|
|
| MD5 |
8260d86c7f6611b652ea6d00d318ecd7
|
|
| BLAKE2b-256 |
03e46f41dfc4ff75320035aff99ae4a5825717f08f0a099af65a89df58580470
|
File details
Details for the file toolbase-0.2.1-py3-none-any.whl.
File metadata
- Download URL: toolbase-0.2.1-py3-none-any.whl
- Upload date:
- Size: 258.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd278a0c19da56a54f3eb4cfaebe6f1ac36db62eb73a69aa3e1ffd9a29a55983
|
|
| MD5 |
02467f0a95e0787c90ba3b932bb003bf
|
|
| BLAKE2b-256 |
f7d8fc3b158542a4ba4153ee0560bdec3200d9e9dc4c31afc5782662b01104ba
|