upleb.uk

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

summaryrefslogtreecommitdiff
path: root/AD.md
diff options
context:
space:
mode:
Diffstat (limited to 'AD.md')
-rw-r--r--AD.md73
1 files changed, 73 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