Skip to content

Commit 50d22a9

Browse files
committed
Rename registry to package
1 parent 52cf2c1 commit 50d22a9

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

api/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ GET /v0/servers/a5e8a7f0-d4e4-4a1d-b12f-2896a23fd4f1?version=0.0.3
5151
"source": "github",
5252
"id": "b94b5f7e-c7c6-d760-2c78-a5e9b8a5b8c9"
5353
},
54-
"registry_canonical": "npm",
55-
"registries": [
54+
"package_canonical": "npm",
55+
"packages": [
5656
{
57-
"name": "npm",
58-
"package_name": "@modelcontextprotocol/server-filesystem",
57+
"registry_name": "npm",
58+
"name": "@modelcontextprotocol/server-filesystem",
5959
"license": "MIT",
6060
"command": {
6161
"name": "npx",
@@ -202,11 +202,11 @@ API Response:
202202
"source": "github",
203203
"id": "abc123de-f456-7890-ghij-klmnopqrstuv"
204204
},
205-
"registry_canonical": "npm",
206-
"registries": [
205+
"package_canonical": "npm",
206+
"packages": [
207207
{
208-
"name": "npm",
209-
"package_name": "@modelcontextprotocol/server-brave-search",
208+
"registry_name": "npm",
209+
"name": "@modelcontextprotocol/server-brave-search",
210210
"license": "MIT",
211211
"command": {
212212
"name": "npx",
@@ -264,11 +264,11 @@ API Response:
264264
"source": "github",
265265
"id": "d94b5f7e-c7c6-d760-2c78-a5e9b8a5b8c9"
266266
},
267-
"registry_canonical": "docker",
268-
"registries": [
267+
"package_canonical": "docker",
268+
"packages": [
269269
{
270-
"name": "docker",
271-
"package_name": "mcp/filesystem",
270+
"registry_name": "docker",
271+
"name": "mcp/filesystem",
272272
"license": "MIT",
273273
"command": {
274274
"name": "docker",

api/openapi.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,17 +270,17 @@ components:
270270
type: string
271271
example: "info"
272272

273-
Registry:
273+
Package:
274274
type: object
275275
required:
276+
- registry_name
276277
- name
277-
- package_name
278278
properties:
279-
name:
279+
registry_name:
280280
type: string
281281
enum: [npm, docker, pypi, homebrew]
282282
example: "npm"
283-
package_name:
283+
name:
284284
type: string
285285
example: "@modelcontextprotocol/server-filesystem"
286286
license:
@@ -313,14 +313,14 @@ components:
313313
- $ref: '#/components/schemas/Server'
314314
- type: object
315315
properties:
316-
registry_canonical:
316+
package_canonical:
317317
type: string
318318
enum: [npm, docker, pypi, crates]
319319
example: "npm"
320-
registries:
320+
packages:
321321
type: array
322322
items:
323-
$ref: '#/components/schemas/Registry'
323+
$ref: '#/components/schemas/Package'
324324
remotes:
325325
type: array
326326
items:

0 commit comments

Comments
 (0)