upleb.uk

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

summaryrefslogtreecommitdiff
path: root/AD.md
blob: 70b7ddb0fab7dc789337fe80658a542b0145a9e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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": "<publisher-pubkey>",
  "tags": [
    ["name", "<server-name>"],
    ["description", "<what-the-server-does>"],
    ["command", "<execution-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": "<publisher-pubkey>",
  "tags": [
    ["title", "<skill-name>"],
    ["description", "<what-the-skill-does>"],
    ["e", "<1063-event-id>"],
    ["license", "<SPDX-identifier>"]
  ],
  "content": "<skill-instructions>"
}
```

### 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