upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpablof7z <pfer@me.com>2026-02-12 22:54:58 +0000
committerpablof7z <pfer@me.com>2026-02-12 22:54:58 +0000
commit72f63c9e3b36eea2c7784125adf5aa22dd69ad7c (patch)
tree6ff476e525747cd2040d1f0b902eb65b7f6dbeb2
parente83326e6d45050f323de128e2e0b75ea9e0acde2 (diff)
Add NIP-AD: MCP Server and Skill Announcementsannouncements
-rw-r--r--AD.md73
-rw-r--r--README.md3
2 files changed, 76 insertions, 0 deletions
diff --git a/AD.md b/AD.md
new file mode 100644
index 0000000..70b7ddb
--- /dev/null
+++ b/AD.md
@@ -0,0 +1,73 @@
1NIP-AD
2======
3
4MCP Server and Skill Announcements
5----------------------------------
6
7`draft` `optional`
8
9Defines event kinds for announcing MCP servers and skills.
10
11---
12
13## MCP Server Announcement (Kind 4200)
14
15Announces 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
40Announces 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
65Contains skill instructions in markdown, injected into agent context when active.
66
67### Referenced Files
68
69Each `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
diff --git a/README.md b/README.md
index 2e11906..81ba9fa 100644
--- a/README.md
+++ b/README.md
@@ -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) |