From 72f63c9e3b36eea2c7784125adf5aa22dd69ad7c Mon Sep 17 00:00:00 2001 From: pablof7z Date: Thu, 12 Feb 2026 22:54:58 +0000 Subject: Add NIP-AD: MCP Server and Skill Announcements --- AD.md | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 AD.md (limited to 'AD.md') diff --git a/AD.md b/AD.md new file mode 100644 index 0000000..70b7ddb --- /dev/null +++ b/AD.md @@ -0,0 +1,73 @@ +NIP-AD +====== + +MCP Server and Skill Announcements +---------------------------------- + +`draft` `optional` + +Defines event kinds for announcing MCP servers and skills. + +--- + +## MCP Server Announcement (Kind 4200) + +Announces an MCP server that provides tools to agents. + +```json +{ + "kind": 4200, + "pubkey": "", + "tags": [ + ["name", ""], + ["description", ""], + ["command", ""] + ], + "content": "" +} +``` + +### Tags + +- `name` — Server identifier +- `description` — What the server provides +- `command` — Command to start the server (e.g., `npx @anthropic-ai/mcp-server-fetch`) + +--- + +## Skill Announcement (Kind 4202) + +Announces a skill—packaged capabilities with instructions and associated files. + +```json +{ + "kind": 4202, + "pubkey": "", + "tags": [ + ["title", ""], + ["description", ""], + ["e", "<1063-event-id>"], + ["license", ""] + ], + "content": "" +} +``` + +### Tags + +- `title` — Skill name +- `description` — One-line description +- `e` — Reference to NIP-94 file metadata (kind 1063), one or more +- `license` — SPDX license identifier + +### Content + +Contains skill instructions in markdown, injected into agent context when active. + +### Referenced Files + +Each `e` tag references a kind 1063 event with: +- `url` — File location +- `name` — Relative filepath for installation +- `m` — MIME type +- `x` — SHA-256 hash -- cgit v1.2.3