npm nyuchi-docs-mcpstreamable-httpupdated 1mo ago
Nyuchi engineering documentation — how things are done at Nyuchi, and how to use the Mzizi tools from a Nyuchi project. Published at docs.nyuchi.com.
nyuchi docs 能做什么?
nyuchi-docs
Nyuchi engineering documentation — how things are done at Nyuchi, and how to use the Mzizi tools from a Nyuchi project. Published at docs.nyuchi.com.
This repo is a pnpm workspace with these packages:
| Package | Path | What it does |
|---|---|---|
site |
site/ |
The Astro + Starlight docs site itself. Ships as a Cloudflare Worker with Static Assets. |
@nyuchi/nyuchi-docs-search |
nyuchi-docs-search/ |
Publishable npm package: cmdk-style search modal + Ask-AI tab for Starlight sites. |
shamwari-docs-ai |
shamwari-docs-ai/ |
Cloudflare Worker — the Ask-AI chat proxy (SSE). |
nyuchi-docs-mcp-worker |
nyuchi-docs-mcp-worker/ |
Cloudflare Worker nyuchi-docs-mcp — the docs MCP server at docs.nyuchi.com/mcp. |
Companion site
bundu-labs/bundu-docs covers the
Bundu Foundation's outward-facing projects — the Mzizi product, the Ubuntu
doctrine, and the Bundu brand system. It installs @nyuchi/nyuchi-docs-search
from npm and points at the nyuchi-docs-mcp worker.
Sections (site/src/content/docs/)
platform/— the product guide for the Nyuchi platform.api/— API Docs: the/v1gateway, WorkOS authentication, console-managed API keys, security, and the product namespaces.analytics/— dashboards, reports, and connecting data sources.kweli/— Mukoko Kweli product guides: verification, cross-app how-to, open data, data quality, design system.mukoko-weather/— Mukoko Weather user guide and stations.integrations/— connectors, webhooks, the docs MCP server, and the Mukoko Events MCP server.identity/— WorkOS,accounts.mukoko.com(the AuthKit issuer), SSO, JWTs.console/— the Nyuchi Console atplatform.nyuchi.com.tools/— the cross-repo tools directory: every skill, CLI, and MCP server across the Nyuchi and Bundu repos.mzizi-tools/—mzizi-mcp,mzizi-cli,mzizi-skills, the DNA double-helix architecture, registry health, and the A2A design.deployment/— Cloudflare, Vercel, and Supabase deployment patterns.conventions/— PR doctrine, commit doctrine, repo-naming rules.
Develop
pnpm install
pnpm dev # site only
pnpm -r build # all packages
pnpm -r test # all packages
Site dev server: http://localhost:4321. Content lives in
site/src/content/docs/; the sidebar is configured in site/astro.config.mjs.
Search + Ask AI
The search modal opens with ⌘K / Ctrl+K. The Ask AI tab streams
answers from shamwari-docs-ai (Cloudflare Worker) with retrieval-grounded
citations. To enable it locally, copy site/.env.example to site/.env:
cp site/.env.example site/.env
# .env:
# PUBLIC_SHAMWARI_AI_URL=https://shamwari-docs-ai.nyuchi.workers.dev
Deploy
Both workers in this repo deploy via Cloudflare Workers Builds — the
Cloudflare GitHub App
is connected to nyuchi/nyuchi-docs with one trigger per worker (root
directory points at the worker package). No GitHub Actions deploy workflow,
no CLOUDFLARE_API_TOKEN repo secret.
nyuchi-docs(site) — rootsite/, ships as a Cloudflare Worker with Workers Static Assets. Live athttps://nyuchi-docs.nyuchi.workers.dev. Custom domaindocs.nyuchi.comis attached via the Workers custom-domain API in a separate cutover step (apex still points at the legacy Mintlify-on-Vercel deployment until then).shamwari-docs-ai— rootshamwari-docs-ai/, thin proxy in front of Cloudflare AI Search. Live athttps://shamwari-docs-ai.nyuchi.workers.dev. Seeshamwari-docs-ai/README.mdfor the per-corpus AI Search instance setup (managed via REST API).nyuchi-docs-mcp— rootnyuchi-docs-mcp-worker/, the docs MCP server. Live athttps://nyuchi-docs-mcp.nyuchi.workers.devand routed fromdocs.nyuchi.com/mcp*. Needs its own Workers Builds trigger (root directorynyuchi-docs-mcp-worker/).
Well-known and machine-readable endpoints
docs.nyuchi.com serves these outside the docs tree. Most are static files in
site/public/; security.txt is generated per request by the site worker.
| Path | Served from | What it is |
|---|---|---|
/robots.txt |
site/public/robots.txt |
Crawl policy + sitemap pointer. Everything here is meant to be indexed. |
/llms.txt |
site/public/llms.txt |
Machine-readable site index for LLMs. |
/AUTH.md |
site/public/AUTH.md |
Agent-facing WorkOS auth reference, synced from nyuchi/api-gateway. |
/.well-known/mcp/server-card.json |
site/public/.well-known/mcp/ |
MCP server card for the nyuchi-docs-mcp worker at /mcp. |
/.well-known/security.txt |
site/src/worker/security-txt.ts |
RFC 9116 disclosure contact — generated per request, not a static file. |
security.txt is dynamic because RFC 9116 makes Expires mandatory and caps
it under one year, so a checked-in file silently becomes non-compliant as it
ages. site/wrangler.toml sets run_worker_first = true, so every request
already passes through site/src/worker/gate.ts; it answers this path before
the gate check and before the asset router, deriving Expires from the
request time (180 days out). Same approach as nyuchi/nhimbe and
nyuchi/kweli.
Why pnpm workspace
The search package (nyuchi-docs-search) is consumed by both
nyuchi-docs (this repo, via workspace:*) and bundu-docs (separate repo,
via the npm registry). Keeping it in the same workspace as the docs site
means local changes to the search UI are picked up instantly during pnpm dev,
while the published package is a single pnpm publish away.
安装
把 nyuchi docs 添加到你的客户端。选择你正在使用的那个。
{
"servers": {
"nyuchi-docs-mcp": {
"type": "http",
"url": "https://docs.nyuchi.com/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add nyuchi-docs-mcp -- npx -y nyuchi-docs-mcpcodex mcp add nyuchi-docs-mcp -- npx -y nyuchi-docs-mcpamp mcp add nyuchi-docs-mcp -- npx -y nyuchi-docs-mcp{
"mcpServers": {
"nyuchi-docs-mcp": {
"command": "npx",
"args": [
"-y",
"nyuchi-docs-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"nyuchi-docs-mcp": {
"command": "npx",
"args": [
"-y",
"nyuchi-docs-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"nyuchi-docs-mcp": {
"command": "npx",
"args": [
"-y",
"nyuchi-docs-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"nyuchi-docs-mcp": {
"command": "npx",
"args": [
"-y",
"nyuchi-docs-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"nyuchi-docs-mcp": {
"command": "npx",
"args": [
"-y",
"nyuchi-docs-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"nyuchi-docs-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"nyuchi-docs-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"nyuchi-docs-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"nyuchi-docs-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y nyuchi-docs-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
评分
39 / 100
不完整
- 文档25/25
- 维护16/25
- 可信度6/20
- 能力0/15
- 安装体验15/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 44 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.1.0最新 | 2026年7月19日 |