diff options
| author | pablof7z <pfer@me.com> | 2026-02-12 22:54:58 +0000 |
|---|---|---|
| committer | pablof7z <pfer@me.com> | 2026-02-12 22:54:58 +0000 |
| commit | 72f63c9e3b36eea2c7784125adf5aa22dd69ad7c (patch) | |
| tree | 6ff476e525747cd2040d1f0b902eb65b7f6dbeb2 /AD.md | |
| parent | e83326e6d45050f323de128e2e0b75ea9e0acde2 (diff) | |
Add NIP-AD: MCP Server and Skill Announcementsannouncements
Diffstat (limited to 'AD.md')
| -rw-r--r-- | AD.md | 73 |
1 files changed, 73 insertions, 0 deletions
| @@ -0,0 +1,73 @@ | |||
| 1 | NIP-AD | ||
| 2 | ====== | ||
| 3 | |||
| 4 | MCP Server and Skill Announcements | ||
| 5 | ---------------------------------- | ||
| 6 | |||
| 7 | `draft` `optional` | ||
| 8 | |||
| 9 | Defines event kinds for announcing MCP servers and skills. | ||
| 10 | |||
| 11 | --- | ||
| 12 | |||
| 13 | ## MCP Server Announcement (Kind 4200) | ||
| 14 | |||
| 15 | Announces an MCP server that provides tools to agents. | ||
| 16 | |||
| 17 | ```json | ||
| 18 | { | ||
| 19 | "kind": 4200, | ||
| 20 | "pubkey": "<publisher-pubkey>", | ||
| 21 | "tags": [ | ||
| 22 | ["name", "<server-name>"], | ||
| 23 | ["description", "<what-the-server-does>"], | ||
| 24 | ["command", "<execution-command>"] | ||
| 25 | ], | ||
| 26 | "content": "" | ||
| 27 | } | ||
| 28 | ``` | ||
| 29 | |||
| 30 | ### Tags | ||
| 31 | |||
| 32 | - `name` — Server identifier | ||
| 33 | - `description` — What the server provides | ||
| 34 | - `command` — Command to start the server (e.g., `npx @anthropic-ai/mcp-server-fetch`) | ||
| 35 | |||
| 36 | --- | ||
| 37 | |||
| 38 | ## Skill Announcement (Kind 4202) | ||
| 39 | |||
| 40 | Announces a skill—packaged capabilities with instructions and associated files. | ||
| 41 | |||
| 42 | ```json | ||
| 43 | { | ||
| 44 | "kind": 4202, | ||
| 45 | "pubkey": "<publisher-pubkey>", | ||
| 46 | "tags": [ | ||
| 47 | ["title", "<skill-name>"], | ||
| 48 | ["description", "<what-the-skill-does>"], | ||
| 49 | ["e", "<1063-event-id>"], | ||
| 50 | ["license", "<SPDX-identifier>"] | ||
| 51 | ], | ||
| 52 | "content": "<skill-instructions>" | ||
| 53 | } | ||
| 54 | ``` | ||
| 55 | |||
| 56 | ### Tags | ||
| 57 | |||
| 58 | - `title` — Skill name | ||
| 59 | - `description` — One-line description | ||
| 60 | - `e` — Reference to NIP-94 file metadata (kind 1063), one or more | ||
| 61 | - `license` — SPDX license identifier | ||
| 62 | |||
| 63 | ### Content | ||
| 64 | |||
| 65 | Contains skill instructions in markdown, injected into agent context when active. | ||
| 66 | |||
| 67 | ### Referenced Files | ||
| 68 | |||
| 69 | Each `e` tag references a kind 1063 event with: | ||
| 70 | - `url` — File location | ||
| 71 | - `name` — Relative filepath for installation | ||
| 72 | - `m` — MIME type | ||
| 73 | - `x` — SHA-256 hash | ||