Metadata-Version: 2.4
Name: abstract_toolserver
Version: 0.0.122
Summary: The abstract_* ecosystem exposed as an API-callable AI toolset: functions become self-describing Flask endpoints with /endpoints discovery and ?help.
Home-page: https://abstractendeavors.com
Author: putkoff
Author-email: partners@abstractendeavors.com
Project-URL: UI, https://www.npmjs.com/package/@hugpy/agents-ui
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: abstract_essentials>=0.0.0.30
Requires-Dist: abstract_transfer>=0.0.1
Requires-Dist: hugpy-tools>=0.2.20
Requires-Dist: hugpy-resources<0.2,>=0.1.2.6
Provides-Extra: server
Requires-Dist: abstract_flask; extra == "server"
Requires-Dist: hugpy-tools>=0.2.26; extra == "server"
Requires-Dist: abstract_database>=0.0.2.201; extra == "server"
Provides-Extra: files
Requires-Dist: abstract_flask; extra == "files"
Requires-Dist: hugpy-tools>=0.2.26; extra == "files"
Requires-Dist: abstract_database>=0.0.2.201; extra == "files"
Provides-Extra: web
Requires-Dist: abstract_flask; extra == "web"
Requires-Dist: hugpy-tools>=0.2.26; extra == "web"
Requires-Dist: abstract_database>=0.0.2.201; extra == "web"
Provides-Extra: render
Requires-Dist: abstract_flask; extra == "render"
Requires-Dist: hugpy-tools>=0.2.26; extra == "render"
Requires-Dist: abstract_database>=0.0.2.201; extra == "render"
Requires-Dist: hugpy-tools[render]>=0.2.7; extra == "render"
Provides-Extra: images
Requires-Dist: abstract_flask; extra == "images"
Requires-Dist: hugpy-tools>=0.2.26; extra == "images"
Requires-Dist: abstract_database>=0.0.2.201; extra == "images"
Requires-Dist: hugpy-tools[images]>=0.2.7; extra == "images"
Provides-Extra: media
Requires-Dist: abstract_flask; extra == "media"
Requires-Dist: hugpy-tools>=0.2.26; extra == "media"
Requires-Dist: abstract_database>=0.0.2.201; extra == "media"
Requires-Dist: hugpy-tools[media]>=0.2.7; extra == "media"
Provides-Extra: documents
Requires-Dist: abstract_flask; extra == "documents"
Requires-Dist: hugpy-tools>=0.2.26; extra == "documents"
Requires-Dist: abstract_database>=0.0.2.201; extra == "documents"
Requires-Dist: hugpy-tools[documents]>=0.2.20; extra == "documents"
Provides-Extra: db
Requires-Dist: abstract_flask; extra == "db"
Requires-Dist: hugpy-tools>=0.2.26; extra == "db"
Requires-Dist: abstract_database>=0.0.2.201; extra == "db"
Provides-Extra: postgres
Requires-Dist: abstract_flask; extra == "postgres"
Requires-Dist: hugpy-tools>=0.2.26; extra == "postgres"
Requires-Dist: abstract_database>=0.0.2.201; extra == "postgres"
Requires-Dist: psycopg[binary]>=3.1; extra == "postgres"
Provides-Extra: ui
Requires-Dist: abstract_flask; extra == "ui"
Requires-Dist: hugpy-tools>=0.2.26; extra == "ui"
Requires-Dist: abstract_database>=0.0.2.201; extra == "ui"
Requires-Dist: hugpy-tools[desktop]>=0.2.7; extra == "ui"
Provides-Extra: claude
Requires-Dist: abstract_flask; extra == "claude"
Requires-Dist: hugpy-tools>=0.2.26; extra == "claude"
Requires-Dist: abstract_database>=0.0.2.201; extra == "claude"
Requires-Dist: abstract_claude; extra == "claude"
Provides-Extra: gpt
Requires-Dist: abstract_flask; extra == "gpt"
Requires-Dist: hugpy-tools>=0.2.26; extra == "gpt"
Requires-Dist: abstract_database>=0.0.2.201; extra == "gpt"
Requires-Dist: abstract_gpt; extra == "gpt"
Provides-Extra: fileshare
Requires-Dist: abstract_flask; extra == "fileshare"
Requires-Dist: hugpy-tools>=0.2.26; extra == "fileshare"
Requires-Dist: abstract_database>=0.0.2.201; extra == "fileshare"
Requires-Dist: abstract_logins; extra == "fileshare"
Requires-Dist: abstract_securefiles[relay]; extra == "fileshare"
Requires-Dist: abstract_database[full]>=0.0.2.201; extra == "fileshare"
Requires-Dist: gunicorn; extra == "fileshare"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# abstract-toolserver

Abstract Toolserver makes host tools available through HTTP and a stdio MCP bridge. It combines the portable Hugpy Tools catalog with persistent services for sessions, messages, ledgers, handoffs and capability providers.

## Installation

Use Python 3.11 or later. The base distribution provides the client. Install the `server` extra on the host that will serve tools.

```sh
python -m pip install 'abstract-toolserver[server]'
```

## Quick start

Configure `TOOLSERVER_OPERATOR_TOKEN` in the service environment, then start the local Flask service.

```sh
abstract-toolserver serve --host 127.0.0.1 --port 7004
```

From another terminal, check liveness and inspect the endpoint catalog with the configured credential.

```sh
curl -fsS http://127.0.0.1:7004/healthz
curl -fsS -H "Authorization: Bearer $TOOLSERVER_OPERATOR_TOKEN" http://127.0.0.1:7004/endpoints
```

## Client connections

`abstract-toolserver endpoint --json` reports the advertised local endpoint. `abstract-toolserver ensure` finds or starts the host service. MCP clients can launch `abstract-toolserver-mcp` as a stdio subprocess with the Toolserver URL and operator token in its environment. The bridge exposes the tools returned by the service.

## Capabilities and access

The endpoint catalog describes the tools installed on this host. Backend extras include `documents`, `images`, `render`, `postgres` and `fileshare`. Browser and desktop operations require their corresponding host runtimes. Clients can use the public health probe for readiness and authenticated discovery to select a tool.

The operator credential grants access to protected routes. Provide it only to trusted clients and keep it out of request URLs and logs. Shared channel links and enrolled clients use their own scoped credentials. For the per-host terminal console, run `toolserver`.

## Application integration

A Python host can construct the Flask application directly:

```python
from abstract_toolserver import get_toolserver_app

app = get_toolserver_app()
```

Inspect the catalog before selecting an operation so the client uses the inputs advertised by the running service. Session, channel and ledger data are stored by Toolserver. The browser, media and document backends expose their own runtime capabilities through the same catalog.
