← Back to Leaderboard
Tsuperdesigndev

superdesigndev/treg

GitHub Trending ×5d

MCP registry and credential-injecting proxy for shared agent tools

Engineering Health (Methodology)
B+ · 73/100
Maintenance Activity
● Updated today
Latest Release
Rolling commits (main)
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption21/25
Release Cadence11/20
License Clarity6/20
MCPSelf-HostedAPICLI1 README badge views (30d)
Total Stars
★ 10,008
24h Growth
+58
7d Growth
+1,149
Forks
1,058

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

superdesigndev/treg Star History (2026-07-14 - 2026-12-01) ALL-TIME STAR HISTORY (2026-07 – 2026-12) +10k in 140d · avg +71/day 10.6k 5.3k 0 2026-07-14: ★ 12026-07-25: ★ 592026-08-08: ★ 632026-08-22: ★ 5602026-09-05: ★ 1,1832026-09-19: ★ 1,6872026-10-03: ★ 4,0522026-10-17: ★ 5,6452026-10-30: ★ 6,6922026-11-08: ★ 7,6392026-11-17: ★ 8,3382026-11-26: ★ 9,6462026-12-01: ★ 10,008 ★ 10k 07-14 09-22 12-01

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Treg is a Python service that combines a team tool registry, an MCP surface, and a credential-injecting HTTP proxy. On /call, the application resolves a tool by name or by upstream host and longest matching base_url prefix, decrypts the selected secrets, applies the tool’s bindings, and hands the request to the upstream relay. A binding can inject a credential into a header or query parameter, and a tool can have several bindings. proxy.py handles byte streaming, while the application handles tool selection, settlement, and asynchronous audit recording.

The module boundaries keep transport separate from authentication and tool management. injectors.py handles credential placement, oauth.py handles consent, code exchange, and single-flight token refresh, and health.py probes tools and notifies owners when credentials break. convert.py scaffolds skill directories into registrable bundles. The relay preserves provider-specific API shapes rather than translating them into a universal schema. MCP adds a discovery and invocation surface; it does not replace the underlying HTTP API contract.

Key Capabilities & Differentiators

The hosted catalog supports task-based search and per-endpoint inspection for services spanning SEO, social trends, enrichment, ads, web access, and media generation. treg catalog get exposes parameters, pricing, and an example response. Routing prefers a registered team tool, then a stored team provider credential, then a verified public route, and finally a priced call using Treg’s credential and the team’s prepaid balance. Using a team key bypasses Treg metering, not any charges imposed by the upstream provider. An unpriced endpoint is refused when it would otherwise require Treg’s credential.

Teams can register HTTP endpoints, authenticated vendor CLI binaries, and bundles that pair a SKILL.md with tools and secrets. treg scan previews what would be registered; treg upload registers it, and --replace updates existing entries. The hosted /mcp/ surface includes catalog endpoints, team tools, and imported skills. The Claude directory connector at /mcp/v2/ is narrower: it exposes curated catalog endpoints only, excludes image, video, and audio generation, and separates read from write calls.

Trade-offs & Limitations

Compared with direct provider SDKs, Treg centralizes credential handling and discovery across agents, but adds a network hop and a privileged intermediary. Because the proxy preserves upstream API shapes, callers still need provider-specific request formats and error handling. Catalog search can show equivalent services and prices side by side, but ordinary calls do not silently select a different vendor or fail over across vendors. Compared with a generic reverse proxy, Treg adds credential bindings, OAuth refresh, catalog discovery, and settlement, at the cost of more state to operate.

Streaming has a specific boundary: when settlement or resource ownership requires checking the response body, the normal path buffers up to 8 MiB and returns an uncharged 502 if the response exceeds that limit. Declared spooled_response endpoints use a temporary file and can return the full response after settlement. Eligible free downloads and team-owned calls stream directly. Audit recording is asynchronous; validate its delivery guarantees before relying on it for compliance. The package metadata classifies the license as Other/Proprietary, so confirm the actual LICENSE terms before commercial deployment or redistribution.

Hardware & Deployment Guide

The tools-registry package requires Python 3.12 or 3.13. The fastest evaluation path is the Render-hosted treg.to service via the CLI or an MCP client. For self-hosting, settings use the TREG_ prefix; the default database URL is sqlite+aiosqlite:///./treg.db, with PostgreSQL intended for production. TREG_READ_DATABASE_URL configures an optional read datasource, but queries have to opt into it. Set a persistent TREG_SECRET_KEY before storing credentials: the fallback is ephemeral, and those encrypted secrets will not be usable after a restart. During rotation, the first key encrypts and every configured key can decrypt.

Supported configuration also includes AWS Secrets Manager startup settings and a KMS key identifier for stored credentials. Self-hosting moves the registry and proxy into your environment; it does not make external API calls offline or establish access to the hosted catalog’s provider accounts. Size for concurrent upstream requests, database activity, response buffering, and temporary-file I/O rather than GPU capacity. Package metadata identifies version 0.33.0, while the release list includes v1.0.0-beta.3 through v1.0.0-beta.5. With no release notes supplied, verify the target artifact and its upgrade path rather than assuming those version lines are interchangeable.

Routing: /call resolves by tool name or by upstream host and longest base_url match.
Credentials: A single HTTP request can receive multiple server-side bindings, such as an OAuth bearer and a developer-token header.
Response handling: Evidence-dependent responses use an 8 MiB in-memory path; declared spooled endpoints use temporary files for settlement.
Credential priority: Team tools and stored provider keys take precedence over verified public routes and metered Treg credentials.
MCP boundaries: /mcp/ supports team tools and skills; hosted /mcp/v2/ is catalog-only, separates reads from writes, and excludes media generation.
Operations: SQLite is the development default, PostgreSQL is the production option, and a separate read datasource is explicitly opt-in.
Best For

Teams that want several coding agents to discover and call shared APIs, CLIs, and skills without distributing provider credentials, while optionally using a metered hosted catalog.

Skip If

You only need a few stable provider SDKs, require offline execution or a normalized cross-provider API, or cannot operate a credential gateway and verify its licensing terms.

Reviewed on 2026-11-29 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Quick Start & Installation

MCPSelf-HostedAPICLI
# 1. install the CLI — also points it at the registry
curl -fsSL https://treg.to/install.sh | sh

# 2. sign in (GitHub default · --email for a one-time code · --token for agents/CI)
treg login

# 3. do something useful immediately — no key, nothing registered
treg catalog search "backlinks for a domain"     # find a tool by what it DOES
treg call tikhub.tiktok.user.profile --query uniqueId=tiktok
treg balance                                     # exactly what that cost

# (or `treg onboard` for the guided walkthrough)

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
treg ★10k+1.1kPython—MCP registry and credential-injecting proxy for shared agent tools
rea485.5k+8.1kTypeScriptMITA local CLI and MCP server for evidence-backed app and binary analysis
graphify155.7k+2.6kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.
last30days-skill78.6k+4.1kPythonMITAn agent skill with a CLI and MCP bundle for cited, cross-source 30-day research

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/superdesigndev/treg.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

superdesigndev/treg Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about treg

Which interface should I use: MCP or the HTTP proxy?

Use /mcp/ when an agent needs the catalog, team-owned tools, and imported skills. The hosted /mcp/v2/ Claude connector is catalog-only, excludes image, video, and audio generation, and separates read from write calls. For an existing HTTP integration, the /call proxy preserves the upstream request shape and strips X-Treg-Token before forwarding. Catalog provider routes reject paths that are not listed.

Does self-hosting need a GPU, and what should I size for?

No local GPU or VRAM requirement is shown for the registry and proxy: catalog generation runs at the provider. Size the server for concurrent upstream requests, database activity, in-memory response buffers, and temporary-file I/O. If you also run vendor CLIs, account for the resources and dependencies of those binaries separately.

Can we self-host Treg for commercial use?

Self-hosting is supported, but the package metadata classifies the license as Other/Proprietary and points to LICENSE. The license text is not available here, so do not assume rights to commercial operation, modification, or redistribution. Review LICENSE and applicable provider terms before rollout. Do not assume a self-hosted instance inherits the hosted service’s provider accounts, credits, or pricing.

How does Treg compare with direct SDKs or a general-purpose reverse proxy?

A direct SDK is a better fit for one or two stable providers when you want native types, API-specific helpers, and no extra gateway. A plain reverse proxy can centralize HTTP forwarding, but you would have to add team-scoped credentials, OAuth refresh, catalog discovery, and metering separately. Treg is most useful when several agents need that shared layer and you can operate it as a privileged service.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining superdesigndev/treg? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature superdesigndev/treg on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare