Skip to content

Commit 63e891e

Browse files
charlotteliangjoehanMichaelDoyle
authored
working progress of mcp server registry (#9491)
* working progress of mcp server registry * Adding mcpName to package.json * Use our actual package name * Provide the right command * Updating publish script to bump version in server.json too * Update src/mcp/server.json Co-authored-by: Michael Doyle <michael.james.doyle@gmail.com> --------- Co-authored-by: Joe Hanley <joehanley@google.com> Co-authored-by: Michael Doyle <michael.james.doyle@gmail.com>
1 parent 0001855 commit 63e891e

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "14.26.0",
44
"description": "Command-Line Interface for Firebase",
55
"main": "./lib/index.js",
6+
"mcpName": "io.github.firebase/firebase-mcp",
67
"bin": {
78
"firebase": "./lib/bin/firebase.js"
89
},

scripts/publish.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ if [[ $VERSION != "preview" ]]; then
127127
npm --prefix ./scripts/publish/firebase-docker-image install
128128
echo "Updated package-lock.json for Docker image."
129129

130+
131+
echo "Updating server.json for MCP registry..."
132+
. ./scripts/update-server.sh $NEW_VERSION
133+
echo "Updated server.json for MCP registry."
134+
130135
echo "Cleaning up release notes..."
131136
rm CHANGELOG.md
132137
touch CHANGELOG.md
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
if [ -z "$1" ]; then
6+
echo "Usage: $0 <new_version>"
7+
exit 1
8+
fi
9+
10+
NEW_VERSION=$1
11+
SERVER_JSON_PATH="src/mcp/server.json"
12+
13+
awk -v new_version="$NEW_VERSION" '
14+
BEGIN { in_packages = 0 }
15+
/packages/ { in_packages = 1 }
16+
in_packages && /"version":/ {
17+
sub(/"version": ".*"/, "\"version\": \"" new_version "\"")
18+
}
19+
{ print }
20+
' "$SERVER_JSON_PATH" > tmp.json && mv tmp.json "$SERVER_JSON_PATH"
21+
22+
23+
echo "Successfully updated firebase-tools version to $NEW_VERSION in $SERVER_JSON_PATH"
24+

src/mcp/server.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
3+
"name": "io.github.firebase/firebase-mcp",
4+
"description": "Gives AI development tools Firebase-specific capabilities and expertise.",
5+
"repository": {
6+
"url": "https://github.com/firebase/firebase-tools",
7+
"source": "github",
8+
"subfolder": "src/mcp"
9+
},
10+
"version": "0.3.0",
11+
"packages": [
12+
{
13+
"registryType": "npm",
14+
"identifier": "firebase-tools",
15+
"runtimeHint": "npx",
16+
"runtimeArguments": [{"type": "positional", "value": "mcp"}],
17+
"version": "14.25.1",
18+
"transport": {
19+
"type": "stdio"
20+
}
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)