TetreesEX/TetreesAgent_EX

This Agent MCP allows you to train external intelligence with zero GPU and let you trade it at Tetrees EX

Tetrees Agent EX – Public MCP Integration Kit

What it is – An open‑source Node.js kit that lets you talk to Tetrees EX’s MCP (Marketplace Control Protocol) service. It provides a command‑line client, example scripts and configuration files for three roles:

Role What you can do with the kit
Buyer / operator Search the public catalog of Tetrees AI Packs, view a Pack’s public AVCP (Agent Verification & Compliance) report, get a price quote in Tetrees Points, run a preview (without spending points until you confirm), and download owned packs as a .taip file.
Builder Attach your own HTTPS API, a nested MCP server, or a local “skill” process to a published Pack, keeping all credentials on your machine.
Seller Create a Pack listing, upload an immutable .taip release, run the AVCP check, view private feedback, and publish a passing version.

Why it matters – Tetrees EX is a marketplace for ready‑to‑run AI “packs” (model + prompt + optional tooling). The kit gives developers a safe, contract‑driven way to consume, extend, or sell those packs without needing a GPU locally; the heavy model inference runs on Tetrees‑hosted providers and is billed in Points.


Getting started (quick‑start)

  1. Prerequisites – Node 20+ and a revocable API token from a Tetrees account.
  2. Configure the MCP client – Add a JSON entry like:
    {
      "mcpServers": {
        "tetrees-ai": {
          "command": "npx",
          "args": ["-y", "https://ex.tetrees.ai/pkg/tetrees-mcp.tgz?v=2.2.1"],
          "env": {
            "TETREES_API_URL": "https://ex.tetrees.ai/api",
            "TETREES_TOKEN": "<your‑token>"
          }
        }
      }
    }
    
  3. Install & inspect –
    npm install
    export TETREES_TOKEN="txk_…"
    npm run mcp:inspect   # shows available tools without spending points
    
  4. Run commands – The repo ships a small CLI wrapper (npm run tetrees -- …). Example read‑only calls:
    npm run tetrees -- catalog "research"
    npm run tetrees -- owned
    npm run tetrees -- report <pack-id>
    
    To get a price quote:
    npm run tetrees -- quote <pack-id> <model-id>
    
    And to actually execute a task (you must add --confirm-spend):
    npm run tetrees -- run <pack-id> <model-id> "Your task" --confirm-spend
    

Example buyer flow – The examples/buyer/discover-and-quote.mjs script demonstrates searching for a pack, inspecting its AVCP report, quoting an 8k‑token run, and stopping before spending points.


Extending packs (builder flow)

Supported extension types

  • https_api – Declare a fixed HTTPS endpoint and the methods the pack can call. Headers (e.g., API keys) are read from the local environment.
  • mcp – Spin up a nested MCP server (no interactive shell) and expose its tools to the pack.
  • local_skill – A tiny child process that receives a single JSON request and returns a JSON response (useful for custom scripts).

The repo includes:

  • examples/extensions/client-extensions.example.json – template manifest.
  • examples/extensions/local-skill/issue-summary.mjs – a sample local skill.
  • docs/BUILDER_GUIDE.md – step‑by‑step instructions.

All credentials stay on the user’s machine; Tetrees never sees them.


Publishing packs (seller flow)

  1. Readiness check – node examples/seller/check-readiness.mjs <pack-id> verifies that the pack meets the public contract.
  2. Upload – node examples/seller/upload-pack.mjs <pack-id> 1.1.0 ./release.taip --confirm-upload publishes an immutable .taip file.
  3. Use the hosted MCP UI or the API (links provided in the README) to run the AVCP audit, view the private report, and finally publish the passing version.

Reference files:

  • docs/SELLER_GUIDE.md
  • examples/seller/pack-listing.example.json

Security & boundaries

The repository does not contain any proprietary Tetrees Agent code, model weights, private prompts, or moderation logic. It only implements the public contract: authenticated HTTP calls to the Tetrees API, plus a thin CLI wrapper. The SECURITY.md and docs/PUBLIC_BOUNDARY.md files describe the exact surface area that contributors may touch.


License

Client code, examples, and documentation are released under the MIT license. The Tetrees trademarks and the hosted service remain the property of Tetrees EX; the license does not grant any rights to the service itself.


Bottom line – If you want to programmatically browse, test, extend, or sell AI Packs on Tetrees EX without handling GPUs or model hosting, this repo gives you a ready‑made, contract‑driven Node.js client and a collection of practical examples.

Related

  • Project
  • Project
  • Project
  • Project
  • Project