MCP server integrating with Unitrust ipr.tsa.cn copyright solidification APIs.
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"ipr-mcp-server","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
• # IPR MCP Server **为大模型提供面向 Unitrust IPR 网关的固化、检索与回调能力,支持 MCP stdio 工具链。** --- ## 目录 - [概览](#概览) - [主要特性](#主要特性) - [安装与运行](#安装与运行) - [配置项](#配置项) - [MCP 客户端集成](#mcp-客户端集成) - [可用工具](#可用工具) - [架构速览](#架构速览) - [项目结构](#项目结构) - [开发与测试](#开发与测试) - [安全提示](#安全提示) - [许可证](#许可证) --- ## 概览 IPR MCP Server 是一个 Python 实现的 MCP(Model Context Protocol)服务器,面向 Unitrust ipr.tsa.cn 测试网关。它封装了脱敏哈希固化、源文件上传、证据下载、记录查询以及回调日志持久化等能力, 支持被各种 MCP 客户端(如 Claude Desktop、Cherry Studio 等)直接调用。 --- ## 主要特性 - **工具化接口**:`ipr_apply_desensitized`、`ipr_apply_with_source`、`ipr_download_assets`、`ipr_search_records`、`ipr_calc_file_hash` 全部暴露为 MCP `call_tool`。 - **RSA2 签名管线**:内置参数排序、私钥加载、SHA256withRSA 签名与 `Content-MD5` 生成。 - **源文件直传**:自动 PUT OSS 上传并携带 `Content-MD5`、`x-oss-forbid-overwrite`。 - **回调日志**:`ipr-mcp-callback` FastAPI 服务即时返回 `success`,同时写入 SQLite。 - **持久化与审计**:`Storage` 层将每次固化请求与回调记录入库,可用于调试或归档。 - **可脚本化示例**:`scripts/apply_source_demo.py` 演示端到端流程,`tests/manual_apply.py` 用于手动对拍。 --- ## 安装与运行 ```bash git clone https://github.com/your-org/ipr-mcp-server.git cd ipr-mcp-server python -m venv .venv . .venv/bin/activate pip install -e .[dev] cp .env.example .env # 填写 TSA_APP_ID、TSA_PRIVATE_KEY_PEM 等 ``` # 启动 MCP stdio 服务 ```bash ipr-mcp-server ``` # 启动 MCP WebSocket 服务(示例 :9000,路径 /mcp/ipr) ```bash python -m ipr_mcp_server.server --ws 0.0.0.0:9000 --ws-path /mcp/ipr # 或使用入口命令: ipr-mcp-server --ws-host 0.0.0.0 --ws-port 9000 --ws-path /mcp/ipr ``` # 启动 FastAPI 回调监听(:8080) ```bash ipr-mcp-callback ``` Docker 方式: ```bash docker build -t ipr-mcp-server . docker run --rm -it \ -e TSA_APP_ID=xxx \ -e TSA_PRIVATE_KEY_PEM="$(cat private.pem)" \ -e CALLBACK_PUBLIC_URL=https://host/callbacks/tsa \ ipr-mcp-server ``` ——— ## 配置项 | 环境变量 | 说明 | 默认值 | | ------------------- | ---------------------------------- | ------------------------- | | TSA_BASE_URL | 网关根地址 …
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.