Logo von heku

heku

Organisation
RapidThoughtLabs

A single dynamic MCP server that turns JSON configs into working API tools

HerausgeberRapidThoughtLabs
Repositoryheku
SpracheTypeScript
Forks
1
Sterne
23
Verfügbare Tools
4
Transporttypstdio
Kategorien
LizenzApache-2.0
Links
  • Tools mit KI-Workflows verbinden

    heku stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 4 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    23 Sterne und 1 Forks im verlinkten Repository.

heku

heku — one brain, eight connectors

One server. Any API. Any LLM.

Your agent's tool manifest breaks around ten MCP servers. Every server you add fattens the manifest until the context fills up and the model starts forgetting which tools exist. heku is one MCP server that removes that ceiling: you describe each tool as a JSON config, and heku serves them lazily — the manifest stays a few hundred tokens whether you've loaded ten configs or two hundred, and the model pulls in only the tools it needs, when it needs them.

One server, any number of APIs, no context bloat. Agents can even write their own configs live from API docs.

bash
npx @rapidthoughtlabs/heku start

Website · Launch post → · Console · heku hub


Try it now

console.rapidthoughtlabs.space — hosted console you can point at any running heku instance. Connect, browse configs, chat with your tools, and inspect the system prompt — no local build needed.

app.rapidthoughtlabs.space — heku hub, the online registry for browsing, installing, and publishing heku configs. Find community-built connectors for GitHub, Slack, Linear, and more — or publish your own.


Quick start

Install (requires Node.js ≥ 20):

bash
npx @rapidthoughtlabs/heku start
# or: npm install -g @rapidthoughtlabs/heku && heku start

Create mcp-configs/mcp.github.json:

json
{
  "id": "github-http",
  "name": "GitHub API",
  "description": "Manage GitHub repos, issues, and pull requests",
  "connector": {
    "type": "http",
    "base_url": "https://api.github.com",
    "auth": { "type": "bearer", "token_env": "GITHUB_TOKEN" }
  },
  "tools": [
    {
      "name": "list_repos",
      "description": "List repositories for the authenticated user",
      "method": "GET",
      "path": "/user/repos",
      "params": [
        { "name": "per_page", "type": "number", "required": false, "location": "query", "description": "Results per page" }
      ]
    }
  ]
}
bash
heku auth setup github-http   # writes GITHUB_TOKEN to .env
heku start

Your LLM now has a github-http.list_repos tool — and the manifest grew by only that one entry.


How it works

heku sits between your LLM and every API you've configured. Three ideas make it different from running a pile of separate MCP servers:

  • Lazy discovery. The manifest the model sees stays small no matter how many configs you load. Tools are surfaced on demand instead of dumped up front, so you never hit the ~ten-server context wall.
  • Configs, not code. A tool is a JSON file — an endpoint, its params, and how to authenticate. No per-integration server to build, ship, or maintain.
  • Self-managing. Point heku at API docs and it can author and edit its own configs through internal tools, then hot-reload them without a restart.

Tool names follow the pattern config_id.tool_name — e.g. github-http.list_repos, linear-graphql.create_issue.


Features

  • 8 connector types — 4 standard (HTTP, GraphQL, gRPC, child-MCP) + 4 experimental (CLI, File, SQL, MongoDB)
  • Lazy tool discovery — manifest stays a few hundred tokens regardless of how many configs are loaded
  • Hot-reload — add or edit a config, tools update live without restart
  • Auto-discovery — gRPC reflection, GraphQL introspection, and child MCP tool listing fill in tools automatically
  • Response stripping — base64 blobs, null fields, oversized strings, and long arrays are trimmed before the model sees them, keeping context lean without losing data
  • Built-in console UI — React dashboard for chat, config editing, and registry browsing
  • heku hub — publish and install community configs from app.rapidthoughtlabs.space
  • Auth handled — bearer, basic, API key, and OAuth2 with .env-based credential management, encrypted at rest by default
  • Self-managing — the server can create and edit its own configs via internal tools

Connectors

Each connector type wraps a different kind of backend as MCP tools. Full config schemas, field references, and examples live in connectors.md.

ConnectorStatusWhat it wrapsTool discovery
httpstandardREST APIsmanual (define each endpoint)
graphqlstandardGraphQL APIsauto (introspection)
grpcstandardgRPC servicesauto (reflection / .proto)
mcpstandardexisting MCP serversauto (proxied)
cliexperimentalshell commandsmanual
fileexperimentalfilesystem read/writemanual
sqlexperimentalPostgres / MySQL / SQLitemanual (named queries)
mongodbexperimentalMongoDBmanual (document ops)

Experimental connectors are functional, but their config schema and behaviour may change in future releases.


Auth

All credentials read from environment variables — heku auth setup writes them to .env, and nothing ever travels over the MCP protocol.

TypeHeader
bearerAuthorization: Bearer {token}
basicAuthorization: Basic base64(user:token)
api_keyCustom header, e.g. X-API-Key
oauth2_staticPre-acquired OAuth2 access token
json
{ "type": "bearer",       "token_env": "GITHUB_TOKEN" }
{ "type": "api_key",      "key_env": "MY_KEY", "header_name": "X-Api-Key" }
{ "type": "basic",        "username_env": "MY_USER", "token_env": "MY_PASS" }
{ "type": "oauth2_static","token_env": "MY_OAUTH_TOKEN" }

Secrets are encrypted at rest. The first time you save a credential, heku generates a per-machine master key and stores it outside the project tree — the OS keychain when available (macOS Keychain, Windows DPAPI, Linux secret-tool), or a 0600 key file when no keychain exists. In containers or CI, set HEKU_MASTER_KEY yourself to skip key generation entirely (read-only: rotation happens at the platform level instead). From then on, mcp.*.env files hold enc:v1:... ciphertext instead of plaintext tokens. heku auth status shows which provider is active, heku secrets status shows per-config encryption state, and heku secrets rotate rolls the key with a resumable grace window.


CLI commands

text
heku start [config-dir]      Start the MCP server (stdio by default)
                             Flags: --http, --port <n>, --debug

heku list [service]          List loaded configs + auth status
heku auth                    Check or set up credentials interactively
heku auth status             Show per-service auth health
heku auth setup [service]    Walk through env-var setup, write to .env

heku secrets init               Generate (or adopt) the per-machine master key
heku secrets encrypt [service]  Migrate plaintext secrets to enc:v1 in place
heku secrets rotate             Rotate the master key (grace window, resumable)
heku secrets status             Show master-key provider + per-config encryption state
heku secrets decrypt [service]  Escape hatch: rewrite secrets back to plaintext

heku login                   Authenticate with the registry
heku logout                  Clear stored registry credentials

heku install <target>        Install a config from the registry
                             Target: @ns/slug or @ns/slug@version
heku uninstall <target>      Remove an installed registry config
heku publish [file]          Publish a local config to the registry
heku fork <namespace/slug>   Fork a published config into your namespace

heku discover                Scan Claude Desktop / Cursor for MCP servers
heku update                  Update heku to the latest version
heku help                    Show usage

Start with the console UI:

bash
heku start --http --port 3456

Then open console.rapidthoughtlabs.space and connect to http://localhost:3456.


Console UI

The dashboard is a React + Vite app — available hosted at console.rapidthoughtlabs.space or embedded when you run heku start --http.

  • Chat — test tools through a model of your choice (OpenAI, Together AI)
  • Configs — visual editor for connector and tool definitions
  • Prompts — inspect the system prompt layers and token counts
  • Registry — browse, install, and publish configs
  • Auth — credential status across all configs at a glance

heku hub

app.rapidthoughtlabs.space is the default registry for sharing configs — browse community connectors, install with one command, and publish your own.

bash
heku install @rtl/github
heku install @rtl/slack@1.2.0
heku publish mcp-configs/mcp.stripe-http.json

Use --registry <url> to point at a self-hosted registry.


System config (optional)

Drop heku.config.json in your config directory:

json
{
  "log_level": "info",
  "rate_limits": {
    "github-http": { "requests_per_minute": 60 }
  },
  "self_config": true
}

Development

bash
git clone https://github.com/RapidThoughtLabs/heku
cd heku
npm install

npm run dev          # client (5173) + console server (3456) in parallel
npm run dev:mcp      # MCP stdio server only — for testing with Claude Desktop
npm run build        # bundle CLI to dist/cli.js via tsup
npm run typecheck    # tsc --noEmit
npm test             # vitest

Layout

src/             MCP server core (CLI, connectors, auth, loader, executor)
server/          Express backend for the console UI
client/          React + Vite dashboard
protos/          Example .proto files for gRPC connector testing
scripts/         Registry seed scripts
mcp-configs/     Local config files (gitignored)

Tech stack

TypeScript · Node.js (ESM) · @modelcontextprotocol/sdk · Express · React 19 · Vite · Zustand · @grpc/grpc-js · GraphQL · tsup · Vitest


Changelog

Console (UI) changes are tracked separately in client/CHANGELOG.md.

0.4.0

  • Secrets encrypted at rest — mcp.*.env files now hold AES-256-GCM ciphertext instead of plaintext tokens, protected by a per-machine master key (OS keychain / DPAPI / secret-tool, or a key file). New heku secrets init | encrypt | rotate | status | decrypt commands; heku auth status shows the active provider.
  • Console: custom LLM provider — bring your own OpenAI-spec inference endpoint (base URL, API token, deployment models), with built-in Azure OpenAI auto-detection.

0.3.2

  • Response stripping — every tool response is structurally trimmed before it reaches the model. Base64 blobs become size markers, null/empty fields are dropped, strings over 8 000 chars are head-truncated, and arrays over 100 items are capped. Structure-only — never decides which field matters.

0.3.1

  • Renamed meta-tool namespace from mcp.one.* to heku.* across all connectors, prompts, and client code
  • Fixed deployed console manifest style switcher (settings API calls now use the correct bridge base URL)
  • Fixed prompt page config catalog not refreshing when heku connects after page load
  • Markdown rendering in the demo chat — assistant responses now render formatted text
  • Config catalog descriptions now show in composed prompt preview; falls back to display name when description is absent
  • Dual manifest preview in Prompts page — flat and namespaced styles with separate token counts
  • heku server version now reads from package.json at runtime in dev mode instead of showing 0.0.0-dev

0.3.0

  • Registry versioning overhaul — semver-based publish/install flow
  • CLI registry commands: install, uninstall, fork, publish
  • Console registry browser tab

0.2.x

  • SQL and MongoDB connector types (experimental)
  • Config write lock — block LLM agents from mutating configs
  • Hot-reload watcher improvements

Contributors


License

Apache License 2.0 — see LICENSE.

Installation

TypingMind
{
  "mcpServers": {
    "heku": {
      "command": "npx",
      "args": [
        "@rapidthoughtlabs/heku",
        "start"
      ]
    }
  }
}

Verfügbare Tools

  • list_configs

    [one] Start here. Returns the names of all active configs as a flat array. Config IDs follow the pattern <base>-<connector> where connector is one of: http, cli, file, grpc, graphql, mcp, sql, mongodb. Use these names to scope one.search or one.list_tools.

  • search

    [one] Find tools by name or intent across all configs (or within a specific one). Returns matching tools with full schemas grouped by match quality: exact name match first, then partial, then description, then related. Indexes both native one.* self-management tools and all service tools. Pass config for exact-first matching: 'github-http' returns only github-http tools; 'github' matches both github-http and github-cli.

  • invoke

    [one] Execute any registered tool by its qualified name (config_id.tool_name). Use after one.search or one.list_tools to run the tool you found. Works for all service tools (open-meteo-http.get_forecast, github-http.create_issue, etc.) and all one.* self-management tools.

  • list_tools

    [one] Returns tools with full schemas ready to call. No args: returns only the native one.* self-management surface. With config_id: returns all tools in that config. For targeted lookup by name or intent, use one.search instead.

heku MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald heku verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

heku als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für heku ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "heku": {
      "command": "npx",
      "args": [
        "-y",
        "@rapidthoughtlabs/heku"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von heku. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von heku.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit heku bei dieser Aufgabe helfen?
heku
Gerne. Ich habe es gelesen.
Das habe ich mit heku gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server heku verwendet?

heku ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich heku MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie heku mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum heku MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald heku verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich heku MCP mit TypingMind?

heku wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt heku MCP in TypingMind bereit?

heku stellt 4 MCP-Tools bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um heku MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls heku eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇