Skip to content

Commit 47757c3

Browse files
committed
feat(mcp-registry): add MCP Registry metadata and server manifest
Add required metadata for publishing to the official Model Context Protocol (MCP) Registry: - Add mcpName field to npm package.json generation - Add mcp-name metadata to README.md for Python package - Add io.modelcontextprotocol.server.name to container image - Create server.json manifest with npm and PyPI package definitions Signed-off-by: Marc Nuri <[email protected]>
1 parent a965357 commit 47757c3

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ COPY ./ ./
66
RUN make build
77

88
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
9+
LABEL io.modelcontextprotocol.server.name="io.github.containers/kubernetes-mcp-server"
910
WORKDIR /app
1011
COPY --from=builder /app/kubernetes-mcp-server /app/kubernetes-mcp-server
1112
USER 65532:65532

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,4 +567,8 @@ Compile the project and run the Kubernetes MCP server with [mcp-inspector](https
567567
make build
568568
# Run the Kubernetes MCP server with mcp-inspector
569569
npx @modelcontextprotocol/inspector@latest $(pwd)/kubernetes-mcp-server
570-
```
570+
```
571+
572+
---
573+
574+
mcp-name: io.github.containers/kubernetes-mcp-server

build/node.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ npm-copy-project-files: npm-copy-binaries ## Copy the project files to the main
4141
@echo '"author": {"name": "Marc Nuri", "url": "https://www.marcnuri.com"},' >> $(MAIN_PACKAGE_JSON)
4242
@echo '"license": "Apache-2.0",' >> $(MAIN_PACKAGE_JSON)
4343
@echo '"bugs": {"url": "https://github.com/containers/kubernetes-mcp-server/issues"},' >> $(MAIN_PACKAGE_JSON)
44-
@echo '"homepage": "https://github.com/containers/kubernetes-mcp-server#readme"' >> $(MAIN_PACKAGE_JSON)
44+
@echo '"homepage": "https://github.com/containers/kubernetes-mcp-server#readme",' >> $(MAIN_PACKAGE_JSON)
45+
@echo '"mcpName": "io.github.containers/kubernetes-mcp-server"' >> $(MAIN_PACKAGE_JSON)
4546
@echo '}' >> $(MAIN_PACKAGE_JSON)
4647
$(foreach os,$(OSES),$(foreach arch,$(ARCHS), \
4748
OS_PACKAGE_JSON=./npm/$(NPM_PACKAGE)-$(os)-$(arch)/package.json; \

server.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
3+
"name": "io.github.containers/kubernetes-mcp-server",
4+
"description": "A Model Context Protocol (MCP) server for Kubernetes and OpenShift",
5+
"status": "active",
6+
"repository": {
7+
"url": "https://github.com/containers/kubernetes-mcp-server",
8+
"source": "github"
9+
},
10+
"version": "0.0.0",
11+
"packages": [
12+
{
13+
"registryType": "npm",
14+
"registryBaseUrl": "https://registry.npmjs.org",
15+
"identifier": "kubernetes-mcp-server",
16+
"version": "0.0.0",
17+
"transport": {
18+
"type": "stdio"
19+
}
20+
},
21+
{
22+
"registryType": "pypi",
23+
"registryBaseUrl": "https://pypi.org",
24+
"identifier": "kubernetes-mcp-server",
25+
"version": "0.0.0",
26+
"runtimeHint": "uvx",
27+
"transport": {
28+
"type": "stdio"
29+
}
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)