smithery.ai

anp-agent

ANP 协议跨 Agent 调用技能。通过 did:wba 去中心化身份,调用 ANP 网络中的任意 Agent(如高德地图、?

First seen Mar 29, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,802 B
  • docs SUMMARY.md 286 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

ANP Agent Skill

通过 ANP (Agent Network Protocol) 协议,使用去中心化身份 (did:wba) 调用远程 Agent。

使用场景

当用户需要:

  • 调用 ANP 网络中的 Agent(高德地图、酒店、快递等)
  • 搜索地点、规划路线、查询天气
  • 预订酒店、查询快递
  • 发现新的 ANP Agent

调用流程

1. 连接 Agent(查看能力)

给定 AD URL,获取 Agent 的可用方法:

python scripts/anp_cli.py connect "<AD_URL>"

示例:

python scripts/anp_cli.py connect "https://agent-connect.ai/mcp/agents/amap/ad.json"

2. 调用方法

使用已注册 ID 或 AD URL 调用:

python scripts/anp_cli.py call <id|ad_url> <method> '<json_params>'

示例:

# 搜索北京咖啡厅
python scripts/anp_cli.py call amap maps_text_search '{"keywords":"咖啡厅","city":"北京"}'

# 查询天气
python scripts/anp_cli.py call amap maps_weather '{"city":"上海"}'

3. 管理 Agent

# 列出已注册
python scripts/anp_cli.py list

# 添加新 Agent
python scripts/anp_cli.py add <id> "<ad_url>"

# 移除
python scripts/anp_cli.py remove <id>

已注册 Agent

高德地图常用方法

方法 功能 参数示例
mapstextsearch 搜索地点 {"keywords":"咖啡厅","city":"北京"}
maps_weather 查询天气 {"city":"上海"}
mapsdirectiondriving 驾车路线 {"origin":"经度,纬度","destination":"经度,纬度"}
mapsaroundsearch 周边搜索 {"location":"经度,纬度","keywords":"美食"}

目录结构

anp-agent/
├── SKILL.md              # 本文件
├── config/
│   ├── did.json          # DID 文档(公钥)
│   ├── private-key.pem   # 私钥(签名用)
│   ├── agents.json       # 已注册的 Agent 列表
│   └── .gitignore        # 防止私钥泄露
└── scripts/
    └── anp_cli.py        # 主程序

依赖

pip install anp aiohttp