Official Python SDK and MCP server for the Assistable AI v3 API (generated from OpenAPI).
Project description
assistableai (Python)
Official Python SDK and MCP server for the Assistable AI v3 API, generated
from spec/openapi.json — the same source of truth as
the TypeScript SDK, CLI, and MCP server.
- SDK — typed operation functions + models (openapi-python-client: attrs + httpx) with a thin auth wrapper.
- MCP server — every v3 operation as an MCP tool, via FastMCP's
from_openapi(optional[mcp]extra).
Install
pip install assistableai # SDK only
pip install 'assistableai[mcp]' # SDK + MCP server
SDK usage
import assistableai
from assistableai.api.assistants import list_assistants, get_assistant
from assistableai.api.contacts import create_contact
from assistableai.models import ContactCreate # example model
client = assistableai.configure(
api_key="ask_live_…",
subaccount_id="<subaccount-id>", # sent as X-Subaccount-Id (optional)
)
# Every op exposes sync / sync_detailed / asyncio / asyncio_detailed.
# Responses are the full {data, error, request_id} envelope (a typed model).
envelope = list_assistants.sync(client=client.raw, limit=2)
# Need status codes / headers? Use *_detailed:
resp = get_assistant.sync_detailed("<assistant-id>", client=client.raw)
print(resp.status_code, resp.parsed)
# Per-call subaccount override:
list_assistants.sync(client=client.raw, x_subaccount_id="<other-subaccount>")
Credentials resolve from explicit args, then the environment
(ASSISTABLE_API_KEY, ASSISTABLE_SUBACCOUNT_ID, ASSISTABLE_BASE_URL). Default
base URL is https://api.assistable.ai.
configure() stores a process-global client (assistableai.get_client()); for
multiple credentials, construct assistableai.AssistableAI(...) instances
directly and pass .raw.
MCP server
ASSISTABLE_API_KEY=ask_live_… ASSISTABLE_SUBACCOUNT_ID=<id> assistableai-mcp
# or: python -m assistableai.mcp
Add to an MCP client (e.g. Claude Desktop):
{
"mcpServers": {
"assistableai": {
"command": "assistableai-mcp",
"env": {
"ASSISTABLE_API_KEY": "ask_live_…",
"ASSISTABLE_SUBACCOUNT_ID": "<subaccount-id>"
}
}
}
}
Develop
uv sync --all-extras # create the dev venv
uv run python scripts/generate.py # regenerate assistableai._client from the spec
uv build # build wheel + sdist
The generated client (src/assistableai/_client) and the bundled spec
(src/assistableai/spec/openapi.json) are committed; regenerate them whenever
spec/openapi.json changes.
Project details
Release history Release notifications | RSS feed
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 assistableai-0.2.0.tar.gz.
File metadata
- Download URL: assistableai-0.2.0.tar.gz
- Upload date:
- Size: 104.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3ee13bb4f3f17376635a7c5115332a9c63bfe121460a37396dc632cd49aac43
|
|
| MD5 |
2c3ac6af473df0bb20848f2e2e34a4b9
|
|
| BLAKE2b-256 |
952eadcddbbb74638593c89cbbfc2fb8078219acf2b4779736fd98f5cc2ee302
|
Provenance
The following attestation bundles were made for assistableai-0.2.0.tar.gz:
Publisher:
release.yml on assistableai/assistableai-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
assistableai-0.2.0.tar.gz -
Subject digest:
c3ee13bb4f3f17376635a7c5115332a9c63bfe121460a37396dc632cd49aac43 - Sigstore transparency entry: 1703041006
- Sigstore integration time:
-
Permalink:
assistableai/assistableai-sdk@c48b7b0df2979a56aa11bac9aedf2aadc20689d6 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/assistableai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c48b7b0df2979a56aa11bac9aedf2aadc20689d6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file assistableai-0.2.0-py3-none-any.whl.
File metadata
- Download URL: assistableai-0.2.0-py3-none-any.whl
- Upload date:
- Size: 418.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19f58617620aeaa2dd648d4b5e5414234cd8ab30ae621e8ab0bd40dcd207811a
|
|
| MD5 |
c3e728fd832316b2409f0928fc709d51
|
|
| BLAKE2b-256 |
a3a2b1dd3b9acf4c5bf58252cfbca7ecd5f05066760e5995e94d805a1c604f63
|
Provenance
The following attestation bundles were made for assistableai-0.2.0-py3-none-any.whl:
Publisher:
release.yml on assistableai/assistableai-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
assistableai-0.2.0-py3-none-any.whl -
Subject digest:
19f58617620aeaa2dd648d4b5e5414234cd8ab30ae621e8ab0bd40dcd207811a - Sigstore transparency entry: 1703041388
- Sigstore integration time:
-
Permalink:
assistableai/assistableai-sdk@c48b7b0df2979a56aa11bac9aedf2aadc20689d6 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/assistableai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c48b7b0df2979a56aa11bac9aedf2aadc20689d6 -
Trigger Event:
push
-
Statement type: