Skip to content
Hussh
Connect MCP

Hussh wiki — scalable app + MCP architecture

The live architecture that turns the Hussh wiki into a Drive-sourced, GCS/Firestore-served public/private reader and MCP server for agents.

About Wiki2 weeks ago

TL;DR: Hussh evolved the LLM Wiki pattern into a live app: Drive is the private source workspace, Cloud Storage and Firestore are the serving/index plane, the MCP server is the capability boundary, and the Next.js reader is a pure MCP client. Anonymous users see the public wiki at https://wiki.hushh.ai; authenticated owners and agents get the full private corpus, write tools, drafts review, and artifact capture through the same routes and the same MCP endpoint.

Status as of 2026-05-26: Production services are live on Cloud Run: reader at https://wiki.hushh.ai, MCP at https://mcp.hushh.ai. The GCS/Firestore serving mode is implemented for runtime reads and indexes, while MCP writes can now persist through wiki Drive source + GCS/Firestore without creating a Git commit per write. A scheduled backup export job mirrors Drive source markdown into Git for audit/export/bootstrap continuity. The reader uses clean wiki URLs such as /wiki/products/one; legacy .md and /wiki/wiki/... forms redirect for compatibility.

Relations

Status as of 2026-11-05

The live service facts as of 2026-11-05: the wiki is served at https://wiki.hussh.si, and wiki.hussh.ai redirects there. The authenticated MCP endpoint is https://mcp.hussh.si/mcp/auth, and a public read-only endpoint is available at https://mcp.hussh.si/mcp. The MCP server exposes 17 tools to authenticated callers.

Muse reconnected to the wiki on 2026-11-05 through a registered connector, whose credential is issued automatically on Google sign-in at https://wiki.hussh.si/auth.

The older claims on this page naming wiki.hushh.ai and mcp.hushh.ai as the production addresses are superseded by this status.

Runtime map

LayerCode / contentJob
Private sourceRestricted Shared Drive source workspaceHuman-editable source workspace, private permission boundary, no-redeploy content CRUD.
Serving planeCloud Storage snapshots + Firestore metadata/indexesFast public/private reads, search/list indexes, chronology, aliases, checksums, publish state, and self-repair.
Git mirrorWiki schema, page mirror, and raw-source exportsDaily audit/export/bootstrap history while the hosted serving plane stabilizes.
MCP serverAuth and sync serviceAuth, visibility filtering, search, write tools, artifact tools, Drive sync, derived publishing, audit.
ReaderNext.js public/private UIAuth page, drafts UI, artifact rendering, clean routes.
Deploymentcloudbuild.yamlBuilds and deploys hussh-mcp and hussh-wiki to Cloud Run.
TestsCore release checks, full MCP audit, and focused reader auditsPublic/private safety, UI and route verification.

MCP capability model

Anonymous callers get the public reader and 9 public-safe read tools: wiki_read, wiki_search, wiki_list, wiki_relations, wiki_lint, wiki_history, wiki_diff, wiki_recent_public, and wiki_recent_changes.

Authenticated callers get 17 tools on the authenticated endpoint https://mcp.hussh.si/mcp/auth: the 9 public reads plus the write, capture, and artifact tools (wiki_write, wiki_patch, wiki_link, wiki_delete, wiki_promote_visibility, wiki_capture, wiki_artifact_save, wiki_artifact_delete). A public read-only endpoint also exists at https://mcp.hussh.si/mcp; it returns only the public tools and strips private content, so it is not the endpoint to use for full access.

Muse reconnected to the authenticated endpoint on November 5, 2026 through the custom connector custom.hussh-wiki, authenticated with the Writer bearer credential issued automatically on Google sign-in. In the Muse client the delete, visibility-promotion, and artifact-delete tools are deliberately blocked; additive writes run only with the founder's authorization for that specific change.

Private MCP resources and prompts are gated too. The full index, schema, non-negotiables, glossary, and operational prompts require auth.

Source and serving architecture

The reader does not read markdown from disk. It calls MCP from server components and route handlers. In GCS/Firestore serving mode, MCP reads from hosted snapshots and metadata rather than scanning Drive or the repo on every request:

  • The reader-to-MCP client forwards authenticated session evidence when present.
  • Anonymous server-side calls use short-lived response caching and in-flight de-duplication to keep section pages and sort changes fast.
  • The route helper maps canonical wiki paths to clean reader URLs.
  • Draft approval/rejection routes call MCP write tools; they never bypass the MCP audit and visibility rules.
  • MCP writes use a configurable durability mode. In serving mode they mirror changed content into the wiki Drive source workspace and publish affected derived snapshots into Cloud Storage/Firestore without per-write Git commits; git mode is still available for explicit audit/export workflows.
  • Direct Drive edits are designed to publish through sync/reconcile without a reader redeploy.
  • The scheduled backup export job keeps Git current as a mirror without adding Git latency or approval churn to normal MCP writes.

Interface layer

The UI is Apple/Hussh in appearance and Material 3 Expressive in interaction semantics:

  • M3 semantic tokens live in the shared reader style layer.
  • MUI remains as component infrastructure where useful: ButtonBase, Dialog, form controls, SSR Emotion cache, and theme overrides.
  • The Hussh theme layer maps MUI defaults onto Hussh tokens and suppresses defaults that conflict with the desired motion/state layer.
  • The focused reader audit verifies route, viewport, dialog, topbar, and interaction behavior.

Material 3 Expressive and MUI are not treated as the same thing. MUI is an implementation library; M3 Expressive is the interaction contract.

What changed from the original plan

The original plan described phases and a future build. The live system now has:

  • One auth-tiered MCP server instead of separate private/public MCP servers.
  • Clean production domains instead of only Cloud Run URLs.
  • Drive-backed source plus GCS/Firestore serving for no-redeploy content updates.
  • Git-backed audit/export continuity with protected-path rules.
  • Keyword-aware search with capped display relevance and public/private filtering.
  • Auto-capture with drafts fallback.
  • Artifact save/delete for code, SVG, mermaid, HTML, images, and documents.
  • Published/edited chronology, section sort toggles, route transitions, centered popovers, and public list performance fixes in the reader.
  • A lean core MCP release gate, with the full MCP audit available on demand.

Drift-control rule

Karpathy's pattern says good answers become wiki pages. Hussh adds one more constraint: good implementation decisions must also become repo docs or tests. If the founder-facing concept, the public wiki page, and the code diverge, the fix is not more chat. The fix is a small page/doc/test update that makes the contract explicit.

Architecture streamlining boundary

  • Current repo truth: the wiki/MCP app can expose public and private pages, but publishing rules must keep private bodies, people/contact details, secrets, and partner artifacts out of public prose.
  • North-star direction: wiki pages can become the public concept contract only when current repo truth, north-star direction, not-shipped caveats, and source notes are explicit.
  • Not shipped / not implied: wiki-as-app is not a CRM, personal-knowledge app, or partner storage plane.
  • Source notes: internal architecture catalog and partner-architecture notes.

Sources

  • Public vs private surfaces
  • LLM Wiki pattern
  • Artifact capture
  • MCP implementation notes — auth tier and tool/resource/prompt dispatch.
  • MCP implementation notes — public activity feed.
  • Reader implementation notes — reader-to-MCP client.
  • Reader implementation notes — clean wiki route mapping.
  • Reader implementation notes — Material 3 Expressive and Apple/Hussh tokens.
  • Muse connector registration and live tool listing, verified 2026-11-05.