GuardMarket

io.github.zma-petterzhang由 GitHub 账号 zma-petterzhang 发布v0.3.0更新于 Oct 24, 2026

MCP client for commerce/data skills; requires a configured GuardMarket backend.

已验证STDIO仅桌面数据与分析商业与电商

概览

AI 生成的概览

GuardMarket 是一个本地 MCP 客户端,让助手通过单独运营的后端搜索、查看并调用付费的商业与数据技能。

可以做什么
搜索并查看已发布技能,包括其模式、示例、效果和价格,后端允许时可匿名使用。使用明确的消费上限和幂等键调用选定技能。读取钱包可用余额、预留余额和币种。获取自己调用的结果与计费状态。技能涵盖对提供数据的商业、库存、CSV、JSON、文本、日期、数学、统计、编码、校验和单位换算处理。
适用场景
适合希望助手运行目录中的数据转换或商业计算技能,并愿意通过已有的 GuardMarket 后端按成功调用付费的场景。不适用于实时税率、汇率、股价或运费报价,它并不获取这些数据。
运行要求
需要一个运行中的 GuardMarket 后端,通过 GUARDMARKET_URL 配置(HTTPS 或数字回环 HTTP)。wheel/stdio 安装需要 Python 3.11+;桌面包需要支持 MCPB 0.4 及 uv 的宿主。调用、钱包和收据需要后端账户设置中创建的消费者 API 密钥,通过 GUARDMARKET_API_KEY 或权限为 0600 的密钥文件提供;搜索和查看在后端允许时可匿名使用。
安装前请注意
调用会产生费用,待定或结果不确定的调用可能保留冻结额度;应复用同一幂等键和相同参数,而不是新建键。价格和币种由后端给出,文档中的低价只是演示。API 密钥属于凭据,不要写入提交的配置或聊天消息。第三方技能可能有外部影响,由 market.describe 披露。

安装

在 SourceWeft 中

  1. 打开 控制台中的 GuardMarket,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

GuardMarket — commerce and data skills over MCP

中文 · 125-skill catalog · Releases · MCP Registry · Integration examples

GuardMarket gives MCP clients five tools to discover versioned skills, inspect their schemas and prices, invoke with an explicit spending cap, and read wallet balances and receipts. The catalog describes 125 implemented commerce, inventory, CSV, JSON, text, date, math, statistics, encoding, validation, and unit-conversion skills.

Version 0.3.0 is published: the public repository, release installation files, and 130-page documentation site are available. The MCPB has an active MCP Registry record under io.github.zma-petterzhang/guardmarket, published on 2026-09-26. This is package metadata registration; OpenAI and Claude plugin-directory approval are separate steps.

This repository is the public client and documentation. Skill execution, accounts, and billing run in a separately operated GuardMarket backend. Installing this client does not create a backend or a wallet. A public production MCP endpoint and PyPI listing are not yet provided. The static website is documentation, not an execution endpoint. The bundled examples are synthetic and contain no account data.

Install and connect

Desktop bundle: download guardmarket-mcp-0.3.0.mcpb from release v0.3.0 and verify it against SHA256SUMS. Open it in a host that supports MCPB 0.4 and its uv runtime. The host manages Python 3.11+; the bundle has no external Python dependencies. Configure your actual backend URL in the install form. Leave the masked consumer API key blank for anonymous discovery. Hosts supporting only older MCPB formats should use the wheel/stdio installation below. This bundle still needs a running backend; it does not install the marketplace server. See bundle details.

Python 3.11+ is required. The Python client has no runtime dependencies.

sh
python3 -m venv .venv.venv/bin/python -m pip install "git+https://github.com/zma-petterzhang/[email protected]".venv/bin/guardmarket-mcp --version

For installation without Git, download the wheel from release v0.3.0, verify its SHA-256 against the release SHA256SUMS, then run python -m pip install /path/to/guardmarket_mcp-0.3.0-py3-none-any.whl. Pin a version or commit in production. On Windows use .venv\Scripts\python.exe and .venv\Scripts\guardmarket-mcp.exe.

Set GUARDMARKET_URL to your backend origin, for example http://127.0.0.1:8787 for a local instance. The client accepts HTTPS origins and numeric-loopback HTTP origins only. Redirects and environment HTTP proxies are disabled.

sh
export GUARDMARKET_URL=http://127.0.0.1:8787.venv/bin/guardmarket-mcp

The command waits for MCP messages on standard input; it is normally launched by your AI client. market.search and market.describe work anonymously if the backend permits public discovery. The other three tools require a consumer API key created in that backend's account settings. Provide it via the client's environment (GUARDMARKET_API_KEY) or a user-owned mode-0600 regular file (--key-file /absolute/path/key). The key-file option is POSIX-only; environment variables work on Windows. Never put a real key in a committed configuration or a chat message.

Tools and billing behavior

MCP toolPurposeAuthorization
market.searchSearch current published skills and pricesAnonymous
market.describeRead a selected version's schemas, examples, effects, and priceAnonymous
market.invokeRun a user-authorized skill with max_price_micros and idempotency_keyAPI key
market.walletRead available/reserved balances and currencyAPI key
market.receiptRetrieve an owned invocation result and billing stateAPI key

First search, then describe the exact returned skill_id, then invoke. One currency unit equals 1,000,000 micros. The documented ¥0.01 example is a demo price, not a promise about a deployment. The selected backend reports its currency, test/production mode, and actual prices. Test mode uses simulated funds. Successful invocations are chargeable; a pending or uncertain invocation may retain a hold. After an uncertain result, reuse the same idempotency key and identical arguments. Do not submit a new key to “retry.”

Example use cases: calculate a cart total with supplied tax and discount rates; validate and normalize product data; escape CSV formulas before spreadsheet export; compare inventory reorder thresholds; summarize provided numbers. These tools do not obtain live tax rates, exchange rates, stock prices, or shipping quotes. The original 125 functions transform supplied data; third-party skills may have external effects, disclosed by market.describe.

Connect an AI client

Examples and verified source references cover Claude Desktop, Claude Code, Qwen Code, Qwen-Agent, and Codex. The portable plugin.json, mcp.json, and skills/ bundle also includes Codex and Claude compatibility manifests. Install the client first so guardmarket-mcp is on the launcher PATH, or use the executable's absolute path.

ChatGPT and Claude web connectors require a deployed public HTTPS MCP endpoint and its configured authorization flow. They cannot connect to a laptop's stdio command through a repository URL. A GitHub repository, documentation website, or llms.txt does not automatically install tools in any model or guarantee indexing.

Development and release

sh
python -m unittest discover -s tests -vpython scripts/build_docs.pypython -m pip install buildpython -m buildpython scripts/build_mcpb.py

CI validates Python 3.11–3.13, regenerates the static site, and builds the wheel and MCPB. Pushing a v* tag creates a GitHub release with a wheel, source archive, desktop MCPB bundle, and SHA-256 checksums; it does not publish to PyPI or any AI vendor directory. The MCPB builder uses an explicit allowlist and deterministic ZIP metadata, and prints its fileSha256 for registry preparation. GitHub Pages serves docs/ using its deployment workflow. Public catalog metadata is a versioned snapshot; the chosen backend remains authoritative at invocation time.

A separate manual GitHub Actions workflow prepares and publishes the released MCPB's metadata to the MCP Registry using GitHub OIDC. It verifies the release artifact and its checksum first. The v0.3.0 registration run succeeded, and its registry record is active. The record points to the immutable v0.3.0 release artifact; documentation updates on main do not replace that artifact. MCP Registry publication is separate from OpenAI or Claude plugin-directory review.

Security · Privacy and data handling · Client terms

来源:README.md,提交 91338cc

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.0最新Sep 26, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分