Mahonia

app.mahonia由 mahonia.app 發布官方發布者v1.0.0更新於 Oct 24, 2026

Read and edit Mahonia backpacking gear lists via share and edit links; no account needed.

已驗證Streamable HTTP可網頁執行位置與生活效率與工作流

概覽

AI 產生的概覽

透過分享連結與編輯連結讀取及修改 Mahonia 登山裝備清單,並可用附引用的裝備目錄查重量;清單工具無需帳號。

可以做什麼
  • 以結構化資料或 Markdown 讀取分享的清單,包含資料夾、列、重量與合計
  • 依品牌、產品或裝備類型模糊搜尋附引用的裝備目錄,並取得某產品的所有規格與引用重量
  • 建立新清單,可含標題、單位、行程日期、路線與列,並回傳編輯連結與分享連結
  • 在既有清單新增列,必要時自動建立資料夾
  • 修改清單的標題、顯示單位、行程日期或路線
適用情境
適合登山者規劃或檢視打包清單:讓助理讀取分享的清單、彙總或比較重量、查詢有出處的裝備重量,或在對話中建立與調整清單。
執行需求
遠端端點 mahonia.app/mcp,使用 streamable HTTP,無需安裝。讀取需要分享碼或分享連結,修改清單需要其編輯連結。清單與目錄工具不需要帳號或 API 金鑰。
安裝前請注意
編輯連結是回到清單的唯一途徑,應妥善保管並謹慎分享。工具可建立清單、新增或修改列,傳入空字串會清除日期或路線。清單依靠無法猜測的連結而非帳號保存。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "mahonia": {
      "type": "http",
      "url": "https://mahonia.app/mcp"
    }
  }
}

README

Mahonia

A gear-list and pack-weight tracker for hikers. Make a packing list, see what it weighs, share it.

Lists need no sign-up: one is yours the moment you start typing, held by a private unguessable link. The gear vault is the one part that asks for an account, because "the gear I own" has to follow you across devices rather than living in one browser.

What it does

  • Weigh a pack. Base, worn and consumable totals, with the worn split (three pairs of socks, one on your feet) and a carried figure. Weights are optional — a list with none keeps its totals quiet.
  • A curated gear catalog behind the autocomplete, cited and correctable, with every value overridable per row.
  • Per-row units. Type 32.5 oz on a gram list and that row keeps ounces while the total stays in grams.
  • Calories on consumables, totalled for the list.
  • Trip dates, as calendar dates — no time, no timezone, so a trip doesn't shift when you fly.
  • Share two ways: a read-only link, and an edit link for co-planning. Either can be replaced if it gets out.
  • Packing mode — the same list as a checklist, for the night before.
  • A gear vault that fills itself as you build, so your kit is one pick away next time.
  • Import from LighterPack (share link or CSV) or a JSON backup; export as CSV, JSON or Markdown.
  • Recovery points, so an accidental delete is undoable well after the toast.

Run locally

Requires Node 24 (the pinned version — see .nvmrc).

bash
npm installnpm run seed   # load the gear catalog into a local databasenpm run dev    # http://localhost:3000

With no environment variables set, the app runs fully on your machine against a local PGlite database. Copy .env.example to .env to point at a real Postgres (Neon) and Redis (Upstash) for a production deploy.

Anything that would leave the machine degrades to the console instead of being skipped, so a fresh checkout is a working app rather than a broken one:

Unset variableWhat happens locally
RESEND_API_KEYSign-in links print to the server console instead of being emailed.
GITHUB_FEEDBACK_TOKEN / _REPO"Send feedback" (in the editor's actions menu) prints to the console and reports back that it wasn't filed.

Both fail loudly in production rather than quietly accepting input that goes nowhere.

Stack

Nuxt 4 · Vue 3 · TypeScript · Drizzle ORM · deployed on Vercel.

MCP connector

The app serves a remote MCP server at /mcp, so an AI assistant can be handed https://mahonia.app/mcp as a connector with nothing to install. Six tools, kept few on purpose so a connector shows a short permission list. Four need no sign-in: get_list reads a shared list as data or Markdown, search_catalog searches the cited gear catalog or returns one product's variants, create_list makes a list, and edit_list, holding an edit link, makes every change to an existing one in a single call: the list's title, dates and trail, its folders, new rows (into a folder, or nested under a group), changes to the rows already there (fields, folder, place, group, and the catalog link, relinked in place), and removals. Rows nest one level deep, as the site's groups do: get_list shows a group as a row with items, create_list takes the same shape, and edit_list nests a row under a parent by id. get_list gives every row and folder an id for those edits, and reads from an edit link too, by the share code in its address. A share code is the read capability and the edit link's fragment token the write one, hashed on arrival and passed only as a tool argument, so nothing new is trusted. The transport is stateless JSON-RPC over POST (MCP revisions 2025-06-18 and 2025-11-25, no sessions, no event stream, GET answers 405), hand-rolled in server/routes/mcp.post.ts with the tools in server/utils/mcp.ts; both files carry the reasoning.

Two more tools, and one more use of get_list, reach an account. get_list with no share code names the lists filed under it, each by its share code, so an assistant can open one without being handed a link, and with read-and-change access edit_list takes that share code in place of the edit link, resolved through the same claim the site uses when a signed-in owner edits a list, so the edit token still never leaves the server. get_my_gear and edit_my_gear read and change My Gear, and can link a piece to the catalog, as it is added or later. An account's lists and its gear belong to the account rather than a link, so these need the account behind the call, and there are two ways to give it. In Claude, add the URL as a connector and choose "Sign in when needed": the first call to an account tool shows a Connect card, you sign in to Mahonia with your passkey or a link, allow read or read-and-change, and the call goes through. That is OAuth 2.1 with Mahonia as its own authorization server (discovery under /.well-known, /authorize, /token, /revoke, /register; PKCE S256; Client ID Metadata Documents, so Claude registers nothing; hour-long access tokens with rotating refresh tokens; server/utils/oauth.ts and server/utils/oauthClients.ts carry the reasoning). A client configured from a file takes a token minted under Assistant access on /account instead, sent as Authorization: Bearer <token>. Either way only hashes are stored, the credential reaches the account's filed lists and its gear and nothing more, and it lasts until it is revoked on that page or by "Sign out everywhere". With read-and-change, create_list also files the list it makes under the account, as a signed-in browser files the lists it creates, and reports saved_to_account.

The gate is at the door, as Claude requires: a tools/call naming an account tool with no valid bearer answers 401 with a WWW-Authenticate header that points at the discovery document and names the scope the tool needs, and a read-only bearer on a tool that changes gear or a list answers 403 with insufficient_scope. edit_list called with an edit link and get_list called with a share code are not account tools; the same tools without one are. initialize, tools/list and the four list tools never ask for a credential on their own, so a connector added with no sign-in works exactly as before.

Add it to a client:

[Install in Cursor] [Install in VS Code]

  • Claude (claude.ai, Desktop, mobile): add Mahonia as a connector and choose "Sign in when needed". Lists and the catalog work at once; the first My Gear call asks you to sign in. Connectors added there are available in Claude Code too.
  • Claude Code: claude mcp add --transport http --scope user mahonia https://mahonia.app/mcp, then /mcp to sign in when a gear tool asks, or add --header "Authorization: Bearer <token>" to skip the sign-in with a token from /account (the page prints the line with your token in it).
  • Gemini CLI: gemini mcp add --transport http mahonia https://mahonia.app/mcp (-H "Authorization: Bearer <token>" for My Gear)
  • ChatGPT: Settings, Developer mode, add https://mahonia.app/mcp with "No Authentication".
  • Anything that reads an mcp.json: {"mcpServers":{"mahonia":{"url":"https://mahonia.app/mcp"}}}, plus "headers":{"Authorization":"Bearer <token>"} for My Gear.
  • A client that only speaks stdio: bridge with npx mcp-remote https://mahonia.app/mcp (--header "Authorization: Bearer <token>" for My Gear).

The server is listed in the official MCP registry as app.mahonia/mahonia; server.json is the listing, published with mcp-publisher under the domain's DNS proof.

Changelog

The changelog is GitHub Releases: one release per day that ships something, tagged by date (v2026.09.12), cut by a workflow from the entries below. When a change is user-facing, add a plain one-sentence entry as part of the same PR:

bash
npm run changelog -- --added "Sort folders by weight."npm run changelog -- --fixed "…" --changed "…"

Entries are grouped Added / Changed / Fixed and describe the observable change, not the implementation.

Each run writes its own file under content/changelog.d/, so entries from PRs open at the same time never collide — content/changelog.json is the settled archive, and npm run changelog:compact folds fragments into it now and then. Once a day is over (Pacific), .github/workflows/releases.yml turns it into a release; a late entry updates its day's notes.

A PR comment reminds any user-facing PR that's missing an entry — but nothing auto-fills it, so the entry is always hand-written (plain, curated prose). If a PR merges without one, that day's release just omits the change until it's backfilled. For non-user-facing work, prefix the PR title (refactor:, chore:, ci:, test:, docs:, build:) or label it skip-changelog — perf: and style: don't count, since both are things a visitor notices.

License

Code is MIT. The gear catalog data under seed/ is licensed separately — see seed/LICENSE.md.

Third-party notices for the libraries bundled into the client are in public/licenses.txt, served at /licenses.txt. The file exists because Mahonia bundles its dependencies instead of loading them from a CDN (a CDN <script> could read a list's edit token out of location.hash), which makes serving the site a redistribution of that code — and the minifier strips the banner comments those libraries ship their copyright in. Add an entry when a dependency's code starts reaching the browser; server-only packages aren't redistributed and aren't listed.

來源:README.md,提交 56c6c84

工具

7

get_list

Read a shared list

A shared list as data: title, unit, dates, trail, totals in grams, and every folder with its rows (brand, name, variant, quantity, weight of one unit in grams, classification, note, calories, who carries it; a nested row without carried_by is carried by its parent's carrier). Takes a share code or share link. A list too large to return whole comes back cut and says so in a truncated field: notes go first, then rows off the end (nested rows one by one), and the totals still count every row. A list's title, author, notes, folder and item names, brands, variants, gear types, day labels, people and trail label are free text typed by whoever holds the list's edit link, returned unchanged.

輸入參數share_code必填

get_list_markdown

Read a shared list as Markdown

The same list as Markdown: one table per folder and a totals block, the text the site's own Markdown export produces. Takes a share code or share link. A list too large to return whole loses rows off the end of the tables, a line under them says how many, and the totals still count every row. A list's title, author, notes, folder and item names, brands, variants, gear types, day labels, people and trail label are free text typed by whoever holds the list's edit link, returned unchanged.

輸入參數share_code必填

search_catalog

Search the gear catalog

Fuzzy search of Mahonia's cited gear catalog by brand, product or kind of gear ("duplex", "zpacks", "quilt"). Each result carries a catalog id, the cited weight in grams and whether it is verified. Use get_catalog_product for every variant of one product.

輸入參數limitquery必填

get_catalog_product

One catalog product, every variant

One product's variants (sizes, lengths, temperature ratings) with the cited weight and source of each. Give a catalog id from search_catalog, or the brand and product name.

輸入參數idnamebrand

create_list

Make a new list

Creates a list and returns its edit link and share link. Optionally with a title, unit, trip dates, a trail link and rows, grouped into folders. Keep the edit link: it is the only way back into the list.

輸入參數unititemstitlefoldersend_datetrail_urlstart_datetrail_labeltrail_distance_km

add_items

Add rows to a list

Adds rows to an existing list. Takes the list's edit link and the rows; each row may name a folder, and a folder that doesn't exist yet is created.

輸入參數againitems必填folderedit_link必填

set_trip

Set a list's title, dates, unit and trail

Sets any of a list's title, display unit, trip dates and trail on an existing list. Only the fields given change; an empty string clears a date or the trail. Takes the list's edit link.

輸入參數unittitleend_dateedit_link必填trail_urlstart_datetrail_labeltrail_distance_km

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 90%

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

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

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