InkQuest

dev.inkquest由 inkquest.dev 發布官方發布者v1.0.0更新於 Oct 25, 2026

Browse free InkQuest stories, openings, and HSK recommendations.

已驗證Streamable HTTP可網頁執行知識與記憶媒體與設計

概覽

AI 產生的概覽

一個唯讀的遠端 MCP 伺服器,讓助理瀏覽 InkQuest 免費語言學習故事、讀取開場場景,並依 HSK 等級推薦故事。

可以做什麼
列出免費公開故事,含標題、等級(HSK 或 CEFR)、類型、簡介和閱讀連結,可依語言、HSK 等級和類型篩選。取得某個故事的免費開場場景,附上拼音或發音及簡短釋義(若有),以及開場選項。依 HSK 等級、類型或興趣關鍵字和目標語言推薦最多三個故事,每個附簡短理由。
適用情境
適合需要特定 HSK 或 CEFR 等級的中文或英文閱讀練習材料,或想要附閱讀連結的故事推薦時使用。它是瀏覽與推薦工具,不是完整閱讀或帳號工具。
執行需求
位於 inkquest.dev 的遠端 Streamable HTTP 端點;未宣告驗證、環境變數或請求標頭。需要能連線到該端點的網路。
安裝前請注意
唯讀,且僅限免費公開目錄內容:不提供生成故事和付費場景,付費選項會被標示並省略其後續場景。MCP 端點不要求任何憑證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 InkQuest,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/dev.inkquest%2Finkquest/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "inkquest": {
      "type": "http",
      "url": "https://inkquest.dev/api/mcp"
    }
  }
}

README

InkQuest

Interactive language-learning fiction built with Next.js, Supabase, and OpenNext Cloudflare.

Getting Started

Install dependencies and run the development server:

bash
pnpm installpnpm dev

Open http://localhost:3000.

Generated Stories Foundation

The first cloud-generation foundation includes:

  • Supabase credit ledger, reservations, story graph, jobs, outbox, billing tables, and RLS in supabase/migrations/202608220001_generated_story_billing.sql.
  • Server-created Lemon Squeezy checkouts and idempotent webhook processing.
  • Authenticated quote and generated-story job creation APIs.
  • Cloud adapter contracts and a reusable scene enrichment core in tools/story-pipeline/src/core.

Required server environment variables:

text
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYNEXT_PUBLIC_GOOGLE_CLIENT_IDSUPABASE_SERVICE_ROLE_KEYNEXT_PUBLIC_SITE_URL
LEMONSQUEEZY_API_KEYLEMONSQUEEZY_STORE_IDLEMONSQUEEZY_WEBHOOK_SECRETLEMONSQUEEZY_SUBSCRIPTION_VARIANT_IDLEMONSQUEEZY_SUBSCRIPTION_CREDIT_GRANTLEMONSQUEEZY_CREDIT_PACK_VARIANT_IDLEMONSQUEEZY_CREDIT_PACK_GRANT
GENERATION_PRICING_VERSIONGENERATION_OPENING_TEXT_CREDITSGENERATION_OPENING_TTS_CREDITSGENERATION_SCENE_TEXT_CREDITSGENERATION_SCENE_TTS_CREDITS

NEXT_PUBLIC_GOOGLE_CLIENT_ID is the Web OAuth client ID from Google Cloud. Add each deployed site origin (including local development) to its authorized JavaScript origins, and enable Google provider in Supabase.

Credit-pack variables are optional until that product is enabled. Generation pricing falls back to 20 credits for opening text, 10 for opening TTS, 12 for scene text, and 6 for scene TTS when the corresponding environment variables are missing or invalid. TTS pricing is required only when every_scene is offered. Never expose the service-role key, Lemon API key, or webhook secret through a NEXT_PUBLIC_ variable.

Apply the migrations in filename order. Existing environments that already ran the first two migrations should next apply supabase/migrations/202608230001_generated_story_tts.sql; it creates the private audio bucket and adds independent TTS commit/retry/refund transactions.

The generation execution path is:

text
Next.js → inkquest-generation Queue → generation-dispatcher → Cloud Run story-pipeline Worker

Additional main-app variables:

text
GENERATION_DISPATCH_SECRETGENERATED_AUDIO_BUCKET

Cloud Run Worker variables:

text
SUPABASE_URLSUPABASE_SERVICE_ROLE_KEYGENERATION_WORKER_TOKENLLM_CHAT_COMPLETIONS_URLLLM_API_KEYLLM_MODELLLM_PROMPT_VERSIONTENCENT_SECRET_IDTENCENT_SECRET_KEYTENCENT_REGIONTENCENT_TTS_VOICEAZURE_SPEECH_KEYAZURE_SPEECH_REGIONAZURE_TTS_VOICE_ZHAZURE_TTS_VOICE_ENSTORY_TTS_ZH_PROVIDERSTORY_TTS_EN_PROVIDERGENERATED_AUDIO_BUCKET

GENERATED_AUDIO_BUCKET defaults to generated-audio. Configure the Azure Speech key and region on the Cloud Run Worker; the verified evaluation resource uses eastasia. Azure is preferred for both Chinese and English when configured, with zh-CN-Xiaoxiao:DragonHDFlashLatestNeural and en-US-JennyNeural as defaults. Set STORY_TTS_ZH_PROVIDER or STORY_TTS_EN_PROVIDER to azure or tencent to override selection. The Worker image also installs FFmpeg to normalize multi-part Tencent audio into one seekable MP3 before upload.

Create inkquest-generation and inkquest-generation-dlq in Cloudflare, deploy the main app, then deploy tools/generation-dispatcher/wrangler.jsonc. Configure GENERATION_WORKER_URL on the dispatcher and store GENERATION_WORKER_TOKEN with wrangler secret put.

For local development, start the Worker in a separate terminal before generating a story:

bash
PORT=8080 pnpm --filter @inkquest/story-pipeline worker:start

The Next.js development server dispatches new jobs to http://127.0.0.1:8080 by default. Set GENERATION_WORKER_URL to override it, and make sure Next.js and the Worker use the same GENERATION_WORKER_TOKEN.

Call POST /api/internal/generation/outbox every minute with Authorization: Bearer <GENERATION_DISPATCH_SECRET> to recover failed queue publications and expired Worker leases.

MCP

A read-only Model Context Protocol server for the public story catalog is served at /api/mcp (Streamable HTTP). It lists free stories, returns the opening scene, and recommends matches, each with an https://inkquest.dev/stories/{id} link. It does not expose generated stories or premium scenes. Setup, local checks, and registry publishing are in docs/mcp.md.

Validation

bash
pnpm exec tsc --noEmitpnpm --filter @inkquest/story-pipeline typecheckpnpm lintpnpm build

Deployment uses OpenNext Cloudflare; see wrangler.jsonc and the preview / deploy scripts in package.json.

來源:README.md,提交 e941122

工具

3

list_stories

List public stories

List free, public InkQuest stories. Each card has the title, level (HSK for Chinese, CEFR for English), genre, a short description, and the public reading URL https://inkquest.dev/stories/{id}. Optional filters: target_language (zh or en), hsk_level (Chinese stories only), and genre. Does not include subscriber-only scenes, withdrawn demos, or user-generated stories.

輸入參數genrehsk_leveltarget_language

get_story_opening

Get the free opening

Return the free opening scene of one public InkQuest story: plain text, pinyin or pronunciation and short glosses when the catalog has them, and the opening choices. Premium choices are labeled and their following scenes are omitted. Always includes the https://inkquest.dev/stories/{id} URL where the reader continues. Refuses unknown ids, withdrawn demos, locked stories, and user-generated stories. Never returns subscriber-only scene text.

輸入參數story_id必填

recommend_story

Recommend a public story

Recommend up to three public InkQuest stories. Pass hsk_level (1-9 or "HSK 4") to rank Chinese stories by closeness to that band. Optional genre or interests (keywords such as mystery, romance, xianxia, sci-fi) boost matches. Optional target_language is zh or en. Each match includes a short reason and a https://inkquest.dev/stories/{id} link. Only free catalog stories are considered; subscriber-only scenes and user-generated stories are excluded.

輸入參數genrehsk_levelintereststarget_language

版本歷史

1
  1. v1.0.0最新Oct 15, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。