Skip to main content

tai42-kit

License: Apache 2.0

Generic leaf helpers, settings primitives, pooled clients, and LLM/AI factories for the TAI ecosystem. It provides the reusable building blocks the server is composed from: data and text transforms, LangChain/FastMCP/MCP tool glue, the pooled-client facade and concrete drivers (redis, curl, mcp, postgres, http), the SSRF URL guard and safe download, MCP client transports over a UDS socket, the settings machinery, LLM/embedding factories with checkpoint/store backends, and logging setup. Heavier backends are gated behind extras and imported lazily. Typed package (py.typed).

Position in the ecosystem

TAI is an open-source runtime for MCP tools, agents, and workflows — the server that hosts a capability and supplies the operational layer around it (manifest loading, access control, OAuth connectors, background execution, monitoring, storage, and human-in-the-loop steps).

Four packages; each depends only on the ones to its left:

                     tai42-kit  <--.
                   /  (helpers)     \
tai42-contract  <-+                  +--  tai42-skeleton
  (interfaces)     \                /    (the server)
                     tai42-cli  <--'
               (the remote client)

tai42-kit obeys the leaf rule: its only tai-* dependency is tai42-contract. It implements the contract's BaseClient Protocol and consumes its manifest types; among tai-* packages it depends on nothing else.

Install

Requires Python 3.13+. Install from PyPI into the environment that runs the server:

uv add tai42-kit

Or from source — clone this repo and add it as an editable dependency; the tai42-* dependencies resolve in-tree from the workspace.

git clone https://github.com/tai42ai/tai42   # next to your app checkout
cd /path/to/your/app
uv add --editable ../tai42/core/kit

Backends are gated behind extras, so install the ones you need — e.g. the pooled-client drivers tai42-kit[redis], tai42-kit[postgres], tai42-kit[curl], the checkpoint/store backends tai42-kit[langgraph-checkpoint-postgres], tai42-kit[langgraph-checkpoint-sqlite], and LLM-provider backends like tai42-kit[anthropic], tai42-kit[google], tai42-kit[mistral], tai42-kit[xai], tai42-kit[ollama], tai42-kit[huggingface].

Development

uv venv --python 3.13
uv pip install --no-sources --editable ".[dev,llm,jq,uvicorn,redis,curl,postgres]"
uv run --no-sync ruff check .
uv run --no-sync ruff format --check .
uv run --no-sync pyright       # 0 errors; missing optional ML backends report as warnings
uv run --no-sync pytest --cov --cov-report=term-missing        # optional-extra tests skip if their extra is absent

See CONTRIBUTING.md for the rules.

Documentation

The whole platform — concepts, guides, and the generated reference — lives in the unified documentation site:

License

Apache-2.0. See LICENSE and NOTICE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tai42_kit-3.2.0.tar.gz (136.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tai42_kit-3.2.0-py3-none-any.whl (162.2 kB view details)

Uploaded Python 3

File details

Details for the file tai42_kit-3.2.0.tar.gz.

File metadata

  • Download URL: tai42_kit-3.2.0.tar.gz
  • Upload date:
  • Size: 136.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tai42_kit-3.2.0.tar.gz
Algorithm Hash digest
SHA256 e01f329e081ec5a57d2bba3319a67384e07b9a809fe3e71c6d6638525d6146ef
MD5 e8d3cff6dc8f703a0e032482b461fe53
BLAKE2b-256 67150d6f8c3f7156ad98176a5940cf7aec155edc1502763fc46088ff1c12517c

See more details on using hashes here.

File details

Details for the file tai42_kit-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: tai42_kit-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 162.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tai42_kit-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31cd5f2963fe62d23cd6e60c38651fa87deedf8d5d96398dd6b657be771ce300
MD5 c2a8fa93a00af8f1a86df7b4eb0b3355
BLAKE2b-256 ec0f7f7ca1ee5921f5c0d43074aa5709bb0645f6155d885b5c56dc56358137af

See more details on using hashes here.

Release history Release notifications | RSS feed

3.6.0

2 files

3.5.1

2 files

3.5.0

2 files

3.4.1

2 files

3.3.0

2 files

This release

3.2.0 This release

2 files

3.1.1

2 files

3.1.0

2 files

3.0.0

2 files

2.0.0

2 files

1.9.2

2 files

1.9.1

2 files

1.9.0

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page