Skip to content

Commit ffb5c95

Browse files
committed
Address Adam's feedback
Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent a388d43 commit ffb5c95

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

docs/reference/server-json/generic-server-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The official registry has some more restrictions on top of this. See the [offici
1818

1919
The optional `_meta` field allows publishers to include custom metadata alongside their server definitions using reverse DNS namespacing.
2020

21-
```
21+
```jsonc
2222
{
2323
"_meta": {
2424
"io.modelcontextprotocol.registry/publisher-provided": {

docs/reference/server-json/official-registry-requirements.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ When publishing to the official registry, **only data under the specific key `io
5151

5252
**Example:**
5353

54-
```json
54+
```jsonc
5555
{
5656
"_meta": {
5757
"io.modelcontextprotocol.registry/publisher-provided": {
@@ -79,4 +79,51 @@ The `_meta` field in `server.json` is **different** from the `_meta` field retur
7979
- `updatedAt`: When the server was last updated
8080
- `isLatest`: Whether this is the latest version
8181

82+
**Example: What you publish (server.json)**
83+
84+
```jsonc
85+
{
86+
"name": "io.github.example/my-server",
87+
"version": "1.0.0",
88+
"description": "My MCP server",
89+
// ... other fields ...
90+
"_meta": {
91+
"io.modelcontextprotocol.registry/publisher-provided": {
92+
"tool": "ci-publisher",
93+
"version": "2.0.0"
94+
}
95+
}
96+
}
97+
```
98+
99+
**Example: What the registry API returns**
100+
101+
```jsonc
102+
{
103+
"server": {
104+
"name": "io.github.example/my-server",
105+
"version": "1.0.0",
106+
"description": "My MCP server",
107+
// ... other fields ...
108+
"_meta": {
109+
"io.modelcontextprotocol.registry/publisher-provided": {
110+
"tool": "ci-publisher",
111+
"version": "2.0.0"
112+
}
113+
}
114+
},
115+
"_meta": {
116+
// Registry-managed metadata at response level
117+
"status": "active",
118+
"publishedAt": "2024-01-15T10:30:00Z",
119+
"updatedAt": "2024-01-15T10:30:00Z",
120+
"isLatest": true
121+
}
122+
}
123+
```
124+
125+
Notice how the registry API response has **two** `_meta` fields:
126+
1. Inside the `server` object: Your publisher-provided metadata (preserved from server.json)
127+
2. At the response level: Registry-managed metadata (automatically added by the registry)
128+
82129
Registry-managed metadata cannot be set or overridden by publishers. See the [API documentation](../api/generic-registry-api.md) for the complete response structure.

0 commit comments

Comments
 (0)