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

This package is not yet published to PyPI — install it from source (below) in the meantime.

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 -e ".[dev]"     # editable install + pytest/ruff; drop [dev] for CLI-only use
tenaxis --help

Add [langchain] (e.g. pip install -e ".[dev,langchain]") if you need the LangChain agent adapter, or [mcp] if you need to run an MCP server as a real stdio process — both are kept optional 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.0.tar.gz (56.7 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.0-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tenaxisos_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 56.7 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.0.tar.gz
Algorithm Hash digest
SHA256 c76f065b51044e8bbf05851a070f20742585eedd34beba3d59ee84a8a5b43237
MD5 b281c2ef78e1f3699ea1d3bcb8cd5c9b
BLAKE2b-256 44ccd0a796d9176e514b5ca8f5ae0aaf1c0d9ecfa6fd7eb27c59f890583ac302

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenaxisos_sdk-0.2.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: tenaxisos_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 51.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47faa59b703c03380e819f2b986d4fc35486df740a71606a863cc0cccb50f5a7
MD5 586e49e9f7d52a4047ca5212102a9509
BLAKE2b-256 2bc6b968227870742af9843b882d893e3c06b001c6886d5d930b579c7afc3c5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenaxisos_sdk-0.2.0-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

0.2.1

2 files

This release

0.2.0 This release

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