Dpyc Oracle

io.github.lonniev由 GitHub 帳號 lonniev 發布v0.4.0更新於 Nov 4, 2026

DPYC Social Contract community concierge — free MCP for membership, governance, and onboarding

已驗證Streamable HTTP可網頁執行效率與工作流知識與記憶開發者工具

概覽

AI 產生的概覽

針對 DPYC Social Contract 社群的免費、免驗證 MCP 服務台:查詢成員、治理文件、入會指南,並支援簽章寫入登錄檔。

可以做什麼
  • 查詢社群登錄檔中的成員、服務、Authority、First Curator 與停權狀態
  • 閱讀治理與入會資料:規則手冊、簡介、經濟模型、稅率說明、入會與新增 Authority 指南
  • 檢查網路狀況:元件版本、部署公告、中繼清單、中繼故障回報與服務狀態
  • 註冊或變更登錄檔項目:公民身分挑戰與確認、Advocate、Authority、Operator 的註冊、更新與註銷
  • 發布、列出與取得定價活動
適用情境
當你需要了解或參與 DPYC Social Contract 網路時使用:確認某成員或服務是誰、閱讀其治理與入會步驟,或以 Authority、Advocate、活動作者身分執行簽章寫入。
執行需求
遠端 streamable HTTP 端點;讀取類工具不需安裝套件、帳號、API 金鑰或付費。寫入登錄檔需在 Authorization 標頭中帶上由對應 npub 金鑰產生的 NIP-98 簽章。需能連線至託管端點與社群登錄檔。
安裝前請注意
寫入工具會改變網路信任關係:register_operator、update_operator、deregister_operator 必須由擔保該 Operator 的 Authority 金鑰簽章,register_advocate 與 publish_campaign 必須由所寫入 npub 的金鑰簽章。簽章金鑰應留在使用者裝置上;確認公民身分需提交已簽章的 Nostr 事件。停權投票與退會工具尚未實作。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "dpyc-oracle": {
      "type": "http",
      "url": "https://dpyc-oracle.fastmcp.app/mcp"
    }
  }
}

README

DPYC Oracle

A free, unauthenticated MCP concierge service for the DPYC Social Contract. The Oracle answers questions about membership, governance, onboarding, and tax rates by reading the dpyc-community GitHub registry live. No credits, no Neon database, no Secure Courier, no payment or credentials required. Registry writes are the exception: each must come on a signed request (see Signed registry writes).

Available Tools

ToolParamsDescription
about()—Extended narration from repo docs (README + GOVERNANCE)
lookup_member(npub)npub: strLook up a member by Nostr npub
list_services(probe, kind)probe: bool = True, kind: str = "all"Enumerate the live service network from the registry, optionally MCP-handshaking each member for its own self-description and tool inventory
get_tax_rate()—Explains per-Authority ad valorem certification taxation; quotes no rate of its own and redirects to the relevant Authority's check_price
economic_model()—Qualitative model of how value flows up the Certification Chain (no hardcoded rates, counts, or revenue figures)
get_rulebook()—GOVERNANCE.md content
how_to_join()—Tier-specific onboarding guide
how_to_add_authority()—End-to-end guide for spinning up a new Tollbooth Authority (fetched live from dpyc-community)
who_is_first_curator()—First Curator's npub and record
network_versions()—Current recommended component versions
network_advisory()—Deployment advisory for operators
service_status()—Runtime version diagnostics
resolve_service(name, npub)name: str = "", npub: str = ""Resolve one service by name or npub (exactly one) to its npub, url, name, role and purchase_mode. Operators use this through the SDK's default_oracle_client() instead of reading GitHub
resolve_authority_for(npub)npub: strThe certifying Authority (npub, url, name) named by a member's upstream_authority_npub
get_relays()—The DPYC Nostr relay set from dpyc-community/relays.json, best first; relays the Oracle proved unreachable move to the back, none are dropped
report_relay_failure(relay, reporter_npub, signed_event, mode)relay: str, reporter_npub: str, signed_event: str, mode: str = "unknown"Report a relay in the DPYC set as unreachable. The event must be signed by reporter_npub; the Oracle then probes the relay itself and only its own probe re-ranks it
request_citizenship(npub, display_name)npub: str, display_name: strBegin citizenship onboarding (issues challenge)
confirm_citizenship(npub, challenge_id, signed_event_json)npub: str, challenge_id: str, signed_event_json: strComplete onboarding with signed Nostr event
register_advocate(npub, display_name, service_name, service_url, service_description)npub: str, display_name: str, service_name: str, service_url: str, service_description: strRegister a community utility service as an Advocate; the request must be signed with npub's own key
register_authority(authority_npub, display_name, service_url, upstream_authority_npub)authority_npub: str, display_name: str, service_url: str, upstream_authority_npub: strRegister a new Authority (called by onboarding flow)
register_operator(operator_npub, display_name, service_url, authority_npub)operator_npub: str, display_name: str, service_url: str, authority_npub: strRegister a new Operator. Called by the sponsoring Authority when its owner approves an adoption; the request must be signed with authority_npub's key
update_operator(operator_npub, authority_npub, service_url, display_name)operator_npub: str, authority_npub: str, service_url: str = "", display_name: str = ""Update an existing Operator's registry entry (e.g. new MCP endpoint). Called by the Authority when its owner approves the operator's update request; the request must be signed with authority_npub's key
deregister_operator(operator_npub, authority_npub)operator_npub: str, authority_npub: strRemove an Operator from the registry, when the operator leaves its Authority or the Authority disowns it. Called by the Authority; the request must be signed with authority_npub's key
check_ban_status(npub)npub: strCheck if an npub is banned
publish_campaign(author_npub, operator_npub, campaign_json, campaign_name, campaign_markdown)author_npub: str, operator_npub: str, campaign_json: str, campaign_name: str = "", campaign_markdown: str = ""Publish a pricing campaign to the DPYC community; the request must be signed with author_npub's key
list_campaigns(operator_npub, author_npub)operator_npub: str = "", author_npub: str = ""List published pricing campaigns, optionally filtered by operator or author
get_campaign(author_npub, operator_npub, slug, format)author_npub: str, operator_npub: str, slug: str, format: str = "json"Retrieve a published pricing campaign (JSON or Markdown)

Stubbed (Future)

ToolDescription
renounce_membership(npub)Citizen self-removal via automated PR
initiate_ban_election(target_npub, reason)Start economic ban voting
cast_ban_vote(election_id, vote, npub)Lightning-funded ban vote

Signed registry writes

register_operator, update_operator and deregister_operator change who the network trusts, so the Oracle takes them only from the Authority that sponsors the operator. The request must carry a NIP-98 signature (Authorization: Nostr <base64 kind-27235>, bound to the request's method, URL and body) made with the key of the authority_npub it names. An unsigned request, or one signed by any other key, is refused.

register_advocate and publish_campaign take the same NIP-98 signature, made with the key of the npub they write: an Advocate registers itself, and a campaign is published under its author's own npub. Anyone holding a key may do either; no one may do it in another npub's name.

Every other Oracle tool answers with no Authorization header at all.

Operators never call these tools themselves. An operator asks its Authority (request_adoption, update_operator or deregister_operator on the Authority), and the Authority makes the signed call here once its owner approves, or at once for a deregistration.

Citizenship Onboarding

New citizens can self-register via Schnorr signature verification:

  1. request_citizenship(npub, display_name) — issues a cryptographic challenge
  2. Sign the challenge with your Nostr nsec (offline, nsec never leaves your device)
  3. confirm_citizenship(npub, challenge_id, signed_event_json) — verifies signature and auto-commits

On success, the Oracle creates an individual member file at members/citizens/{npub}.json in dpyc-community. The CI workflow regenerates members/read-only-lookup-cache.json from the individual files.

Advocate Registration

Advocates are community utility services (e.g., OAuth2 collectors) that provide shared infrastructure but aren't monetized Operators. Registration is Oracle-mediated — no challenge-response needed:

register_advocate(    npub="<service_npub>",    display_name="My Service",    service_name="my-service",    service_url="https://my-service.fastmcp.app",    service_description="What the service does",)

The Oracle commits members/advocates/{npub}.json directly and updates members/read-only-lookup-cache.json, so the Advocate is discoverable at once. Peer MCP servers discover the service URL through this Oracle's resolve_service(name=...), which tollbooth-dpyc calls as default_oracle_client().resolve_service(name=...).

How to Connect

This service is hosted on Horizon. Add it to your MCP client configuration:

json
{  "mcpServers": {    "dpyc-oracle": {      "url": "https://dpyc-oracle.fastmcp.app/mcp"    }  }}

Related Repos

The authoritative, always-current roster lives in the registry — call list_services() / lookup_member() / network_versions() for live data. The stable source repos:

Core

Authorities (certification chain)

Operators

Advocates (shared utilities, unmonetized)

License

Apache-2.0

來源:README.md,提交 953dbe2

工具

30

about

About

Extended narration about DPYC, the Social Contract, and the Oracle. Fetches README.md and GOVERNANCE.md from the dpyc-community repo and assembles a comprehensive context answer.

無需輸入參數。

lookup_member

Lookup Member

Look up a member by their Nostr npub. Can look up any role's npub — citizen, operator, or authority. Returns the full member record if found, or a not-found message.

輸入參數npub必填

get_tax_rate

Get Tax Rate

Explain how Tollbooth certification taxation works. Taxation is ad valorem and **per-Authority** — there is no single network-wide number, and the Oracle deliberately quotes none. The actual fee is the Authority's own accounting, set in its pricing model and reported at transaction time. This tool is a docent: it explains the model and points to the live source. For the exact figure, query the relevant Authority's ``check_price`` for ``certify_credits``.

無需輸入參數。

economic_model

Economic Model

Explain the DPYC Social Contract economic model — qualitatively. Describes how value flows through the network: ad valorem certification fees, the cascade up the Certification Chain to the First Curator, and where the live numbers actually live. The Oracle quotes **no** rates, counts, or revenue figures — those belong to the Authorities' pricing models and the live registry, not to a docent. Free, unauthenticated.

無需輸入參數。

get_rulebook

Get Rulebook

Fetch the DPYC Social Contract governance document. Returns the raw markdown of GOVERNANCE.md from the dpyc-community repo.

無需輸入參數。

how_to_join

How To Join

Tier-specific onboarding guide for joining the DPYC Social Contract. Covers all five tiers: Citizen, Advocate, Operator, Authority, and First Curator. Includes Nostr keygen instructions and practical next steps.

無需輸入參數。

who_is_first_curator

Who Is First Curator

Identify the First Curator (Prime Authority) of the Certification Chain. Returns the curator's npub, display name, and member record.

無需輸入參數。

network_versions

Network Versions

Get current recommended versions of all Tollbooth components. Returns component versions, minimum compatibility, active protocols, and a short advisory summary. Data is fetched live from network-status.json in the dpyc-community repo.

無需輸入參數。

network_advisory

Network Advisory

Get current network deployment advisory. Returns human-readable guidance on what changed recently, urgent upgrades, and actions operators should take. Fetched live from ADVISORY.md in the dpyc-community repo.

無需輸入參數。

how_to_add_authority

How To Add Authority

End-to-end guide for spinning up a new Tollbooth Authority. Returns the eight-step procedure covering identity, region selection, GitHub workspace, dpyc-community registry entry, Neon + BTCPay + Horizon deployment, BTCPay credential delivery via Secure Courier, the self-registration challenge-response with the parent Authority, and pre-funding the cert-fee balance. Fetched live from docs/how-to-add-authority.md in the dpyc-community repo.

無需輸入參數。

service_status

Service Status

Diagnostic: report this service's software versions and runtime info. Free, unauthenticated. Use to verify deployment versions across the DPYC ecosystem.

無需輸入參數。

list_services

List Services

Enumerate the live DPYC service network with self-described summaries. Reads the member roster from the dpyc-community registry, then (when ``probe=True``) performs a lightweight MCP handshake against each member's public service endpoint to fetch that service's *own* self-description and tool inventory. Nothing about the services is hardcoded here — descriptions are authored by each service, and prices come from each Operator/Authority pricing model (call the service's ``check_price``). Resilient by design: per-service timeout, partial results, brief caching, and a registry-only fallback when an endpoint is asleep or unreachable. A sleeping service never breaks the listing. Free, unauthenticated.

輸入參數kindprobe

get_relays

Get Relays

Return the DPYC Nostr relay set, best first. The single source of truth is ``dpyc-community/relays.json``. An Operator seeds its relay set from here at cold start (its only fixed dependency is this Oracle endpoint), then reads its own bootstrap config from Nostr using just its nsec — no direct GitHub access. That file is a curated *guess*: it says which relays are worth using, not which are up this minute. Relays that an operator reported and the Oracle then proved unreachable are moved to the back of the list; everything else keeps its declared order, and nothing is ever dropped. This call never probes anything — it is on every operator's cold-start path, so it stays a lookup. Ranking improves only when someone hits a dead relay and says so via ``report_relay_failure``. Report failures only; successes need no announcement. Free.

無需輸入參數。

report_relay_failure

Report Relay Failure

Report that a relay in the DPYC set was unreachable, and re-rank it. A report does not set a relay's rank. It asks the Oracle to measure that relay *now*, and the Oracle's own probe decides. A false or mistaken report therefore costs one probe and changes nothing — no caller can demote a healthy relay by asserting that it is down. Report only failures. Successes are far too frequent to be worth carrying, and a relay that works needs no announcement.

輸入參數moderelay必填signed_event必填reporter_npub必填

resolve_authority_for

Resolve Authority For

Resolve the certifying Authority for an operator npub. Returns the Authority's ``{npub, url, name}`` (from the operator's ``upstream_authority_npub``). Use this after bootstrap to learn — and verify — which Authority signed your config, without reading GitHub.

輸入參數npub必填

resolve_service

Resolve Service

Resolve a DPYC service by ``name`` or ``npub``. Returns ``{npub, url, name, role, purchase_mode}`` where ``purchase_mode`` is the registry-topology fact ``"certified"`` or ``"direct"`` (not a price). Supply exactly one of ``name`` or ``npub``.

輸入參數namenpub

request_citizenship

Request Citizenship

Begin the citizen registration process (Operator-owned flow). This is the **citizen** registration path. Called by the Operator on behalf of a patron — invokes the Oracle directly. No Authority npub is required or consulted. The patron's npub is registered as a Citizen in the DPYC community. The npub provided here becomes the user's **patron identity** — the keypair they will use for credit purchases and service access across all Tollbooth-monetized services. Not to be confused with **operator** registration, which goes through the Authority via a Nostr DM delegation request. Issues a cryptographic challenge that the applicant must sign with their Nostr private key (nsec) to prove they own the claimed npub. The nsec never leaves the applicant's device. Returns a challenge_id, nonce, and signing instructions. The applicant signs a Nostr event containing the nonce and submits it via confirm_citizenship within 10 minutes.

輸入參數npub必填display_name必填

confirm_citizenship

Confirm Citizenship

Complete the citizen registration by submitting a signed Nostr event. This is part of the **citizen** registration flow (Operator-owned). The Operator calls this on behalf of a patron after the patron has signed the cryptographic challenge from request_citizenship. Verifies: 1. The challenge exists and hasn't expired 2. The Schnorr signature is valid 3. The event's pubkey matches the claimed npub 4. The event content contains the issued nonce 5. The npub is not already registered On success, commits directly to dpyc-community/members/citizens/{npub}.json to register the new Citizen immediately.

輸入參數npub必填challenge_id必填signed_event_json必填

register_authority

Register Authority

Register a new Authority in the DPYC community registry. Called by an Authority service at the end of the onboarding protocol (after the candidate proves npub ownership and the Prime Authority approves). Commits a new ``members/authorities/{npub}.json`` file to dpyc-community on GitHub. The full Authority onboarding protocol is a 3-step Nostr DM challenge-response flow: 1. ``register_authority_npub(npub)`` — Authority sends DM challenge 2. ``confirm_authority_claim(npub)`` — verifies candidate DM, escalates to Prime 3. ``check_authority_approval(npub)`` — Prime approves, this tool is called

輸入參數service_url必填display_name必填authority_npub必填upstream_authority_npub必填

register_operator

Register Operator

Register a new Operator in the DPYC community registry. Called by an Authority service when its owner approves an operator's adoption request; the request must be signed with the Authority's key.

輸入參數service_url必填display_name必填operator_npub必填authority_npub必填

update_operator

Update Operator

Update an existing Operator's registry entry. Used when an Operator moves to a new MCP endpoint, changes its display name, or needs to correct a registration. Called by an Authority when its owner approves the operator's update request; the request must be signed with that Authority's key.

輸入參數service_urldisplay_nameoperator_npub必填authority_npub必填

deregister_operator

Deregister Operator

Remove an Operator from the DPYC community registry. Called by an Authority when the operator leaves it or the Authority disowns the operator; the request must be signed with the Authority's key. An Operator cannot exist without a sponsoring Authority, so deregistration removes the member file entirely, returning the Operator to initial state.

輸入參數operator_npub必填authority_npub必填

register_advocate

Register Advocate

Register a new Advocate in the DPYC community registry. Advocates are community utility services that provide shared infrastructure (e.g., OAuth2 callback collectors) but aren't monetized Operators or certification Authorities. The request must be signed with ``npub``'s own key (NIP-98): a service registers itself, and no one can register an npub they do not hold.

輸入參數npub必填service_url必填display_name必填service_name必填service_description必填

check_ban_status

Check Ban Status

Check whether an npub is banned from the DPYC Social Contract. Looks up the member in the community registry and checks whether their status is "banned". Unknown npubs are not considered banned (they simply aren't members). Free, unauthenticated. Used by operators during the cold path (credit purchases) to enforce community bans.

輸入參數npub必填

renounce_membership

Renounce Membership

Citizen self-removal from the DPYC Social Contract via automated PR. Not yet implemented — will create a GitHub PR to remove the member from the registry.

輸入參數npub必填

initiate_ban_election

Initiate Ban Election

Initiate a community ban election against a member. Not yet implemented — will create a GitHub Issue with a 72-hour discussion period and Lightning-funded economic voting.

輸入參數reason必填target_npub必填

cast_ban_vote

Cast Ban Vote

Cast a Lightning-funded vote in an active ban election. Not yet implemented — will verify npub membership, validate the election is active, and record the vote with a Lightning payment proof.

輸入參數npub必填vote必填election_id必填

publish_campaign

Publish Campaign

Publish a pricing campaign to the DPYC community. Commits both a machine-importable JSON file and a human-readable Markdown summary to the dpyc-community campaigns directory. The request must be signed with ``author_npub``'s key (NIP-98), so a campaign is published only under its author's own name.

輸入參數author_npub必填campaign_json必填campaign_nameoperator_npub必填campaign_markdown

list_campaigns

List Campaigns

List published pricing campaigns from the DPYC community. Optionally filter by operator or author npub.

輸入參數author_npuboperator_npub

get_campaign

Get Campaign

Retrieve a published pricing campaign.

輸入參數slug必填formatauthor_npub必填operator_npub必填

版本歷史

2
  1. v0.4.0最新Oct 21, 2026
  2. v0.3.0Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

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