diff options
| -rw-r--r-- | AD.md | 73 | ||||
| -rw-r--r-- | README.md | 3 |
2 files changed, 76 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 | ||
| @@ -105,6 +105,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | |||
| 105 | - [NIP-99: Classified Listings](99.md) | 105 | - [NIP-99: Classified Listings](99.md) |
| 106 | - [NIP-A0: Voice Messages](A0.md) | 106 | - [NIP-A0: Voice Messages](A0.md) |
| 107 | - [NIP-A4: Public Messages](A4.md) | 107 | - [NIP-A4: Public Messages](A4.md) |
| 108 | - [NIP-AD: MCP Server and Skill Announcements](AD.md) | ||
| 108 | - [NIP-B0: Web Bookmarks](B0.md) | 109 | - [NIP-B0: Web Bookmarks](B0.md) |
| 109 | - [NIP-B7: Blossom](B7.md) | 110 | - [NIP-B7: Blossom](B7.md) |
| 110 | - [NIP-BE: Nostr BLE Communications Protocol](BE.md) | 111 | - [NIP-BE: Nostr BLE Communications Protocol](BE.md) |
| @@ -178,6 +179,8 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | |||
| 178 | | `2003` | Torrent | [35](35.md) | | 179 | | `2003` | Torrent | [35](35.md) | |
| 179 | | `2004` | Torrent Comment | [35](35.md) | | 180 | | `2004` | Torrent Comment | [35](35.md) | |
| 180 | | `2022` | Coinjoin Pool | [joinstr][joinstr] | | 181 | | `2022` | Coinjoin Pool | [joinstr][joinstr] | |
| 182 | | `4200` | MCP Server Announcement | [AD](AD.md) | | ||
| 183 | | `4202` | Skill Announcement | [AD](AD.md) | | ||
| 181 | | `4550` | Community Post Approval | [72](72.md) | | 184 | | `4550` | Community Post Approval | [72](72.md) | |
| 182 | | `5000`-`5999` | Job Request | [90](90.md) | | 185 | | `5000`-`5999` | Job Request | [90](90.md) | |
| 183 | | `6000`-`6999` | Job Result | [90](90.md) | | 186 | | `6000`-`6999` | Job Result | [90](90.md) | |