Skip to main content

tenaxisos-sdk

Python SDK and CLI for building, testing, signing, and publishing TenaxisOS packages — agents, MCP servers, and playbooks that install into a TenaxisOS kernel and can be shared through the Tenaxis Hub.

What this is

tenaxisos-sdk is the toolkit for building community capabilities for TenaxisOS:

  • Author agents and MCP servers as plain Python, using Agent and MCPServer base classes with host-brokered LLM/tool/file access — no network calls, secrets, or infrastructure of your own to manage.
  • Test locally against LocalMockHost, a fake host that lets you drive and assert on agent/tool behavior entirely offline.
  • Build a signed, versioned package manifest from your code.
  • Publish to the Tenaxis Hub (or import straight into a kernel you control for local development) so others can discover and install it.

Getting started

The fastest way in is examples/ — three runnable, heavily-commented examples, one per authoring surface (native agent, MCP server, LangChain framework adapter). Each has its own tests you can run immediately, no kernel or network required:

pip install -e ".[dev,mcp,langchain]"
pytest examples/minimal_text_agent/test_agent.py -v

See examples/README.md for which one to start with.

Documentation

Prose tutorials — go here once you know which capability you're building and want more depth than the examples give:

What this contains

Directory Purpose
src/tenaxisos_sdk/core/ Manifest validation, JSON Schema loading, Ed25519 signing/verification
src/tenaxisos_sdk/agents/ Agent/RunContext/Finding authoring surface, manifest generation
src/tenaxisos_sdk/host/ The host-brokered contract (Host protocol, ToolOutcome) every agent runs against
src/tenaxisos_sdk/testing/ LocalMockHost — no-kernel local test host
src/tenaxisos_sdk/tools/ Tool/MCPServer authoring surface, MCP manifest generation, [mcp] extra for the real stdio protocol bridge
src/tenaxisos_sdk/cli/ The tenaxis CLI: validate, build, sign, verify, test, publish, import, keygen, run, agent build, mcp init/test/build, workflow import
src/tenaxisos_sdk/runtime/adapters/ Agent framework adapters (LangChain today, [langchain] optional extra)
src/tenaxisos_sdk/importers/ External-workflow importers (n8n today) used by tenaxis workflow import

tenaxisos-sdk is published on PyPI: https://pypi.org/project/tenaxisos-sdk/. Version 0.2.1 is the current package release; 0.2.0 remains the SDK API contract version.

Prerequisites

  • Python 3.11 or 3.12.
  • No database, no server, no .env file — the CLI is stateless and takes everything (hub URL, API keys, key paths) as command-line flags.

Installation

python3 -m venv .venv && source .venv/bin/activate   # optional but recommended
pip install tenaxisos-sdk
tenaxis --help

Install optional extras only when needed:

pip install "tenaxisos-sdk[langchain]"   # LangChain agent adapter
pip install "tenaxisos-sdk[mcp]"         # run MCP servers as real stdio processes

For local development against this checkout, use an editable install:

pip install -e ".[dev,mcp,langchain]"

The optional extras are kept separate so the base SDK never requires heavy adapter-specific dependencies.

Everyday usage

tenaxis keygen                                        # once — generates an Ed25519 signing key pair
tenaxis validate <manifest.json>                       # schema + structural validation
tenaxis test <manifest.json>                           # runs the package's declared tests
tenaxis build <manifest-dir> --out <out.package.json>  # produces a distributable package artifact
tenaxis sign <manifest.json> --key <private-key-path>  # signing ceremony (human-reviewed, not run in CI)
tenaxis verify <manifest.json> --pubkey <public-key-b64> [--require]
tenaxis publish <manifest.json> --hub <hub-url> --api-key <publisher-api-key>
tenaxis import <n8n-export.json> --out <package-dir>   # n8n → native workflow package

tenaxis keygen writes your private signing key to disk (permissions locked to owner-only) — keep it out of version control and treat it like any other private key material; the CLI never transmits or stores it for you.

Tests

pip install -e ".[dev]"
pytest tests/ -v
ruff check src/ tests/

License

MIT — see LICENSE.

Download files

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

Source Distribution

tenaxisos_sdk-0.2.1.tar.gz (57.0 kB view details)

Uploaded Source

Built Distribution

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

tenaxisos_sdk-0.2.1-py3-none-any.whl (51.3 kB view details)

Uploaded Python 3

File details

Details for the file tenaxisos_sdk-0.2.1.tar.gz.

File metadata

  • Download URL: tenaxisos_sdk-0.2.1.tar.gz
  • Upload date:
  • Size: 57.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tenaxisos_sdk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b489a4ce5a9cce3f935a55a7f7f27a0b75237ecc1408d173bb6179dc9ec11441
MD5 a6c2d61709b3b5b0e62b04c20f0e90a0
BLAKE2b-256 4c057bc4ce36ff8a51233658feff51884af7f671e84c36f1eb4090b14bf8eb91

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenaxisos_sdk-0.2.1.tar.gz:

Publisher: release.yml on Tenaxisai/tenaxisos-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tenaxisos_sdk-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tenaxisos_sdk-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 51.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tenaxisos_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03bf31f6b3aec6bfd3b93f1454713d9fe36754a0767ca345ef9d7fd86ef6a1f8
MD5 3ab838a04e6848fdf6d05c9eba582a55
BLAKE2b-256 a85af72d8eb9798918ff01aba7815a8ef77f42885f487ef5c50298c9989bbe94

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenaxisos_sdk-0.2.1-py3-none-any.whl:

Publisher: release.yml on Tenaxisai/tenaxisos-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.3

2 files

This release

0.2.1 This release

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