Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "14.25.1",
"description": "Command-Line Interface for Firebase",
"main": "./lib/index.js",
"mcpName": "io.github.firebase/firebase-mcp",
"bin": {
"firebase": "./lib/bin/firebase.js"
},
Expand Down
5 changes: 5 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ if [[ $VERSION != "preview" ]]; then
npm --prefix ./scripts/publish/firebase-docker-image install
echo "Updated package-lock.json for Docker image."


echo "Updating server.json for MCP registry..."
. ./scripts/update-server.sh $NEW_VERSION
echo "Updated server.json for MCP registry."

echo "Cleaning up release notes..."
rm CHANGELOG.md
touch CHANGELOG.md
Expand Down
24 changes: 24 additions & 0 deletions scripts/update-server-json-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

set -e

if [ -z "$1" ]; then
echo "Usage: $0 <new_version>"
exit 1
fi

NEW_VERSION=$1
SERVER_JSON_PATH="src/mcp/server.json"

awk -v new_version="$NEW_VERSION" '
BEGIN { in_packages = 0 }
/packages/ { in_packages = 1 }
in_packages && /"version":/ {
sub(/"version": ".*"/, "\"version\": \"" new_version "\"")
}
{ print }
' "$SERVER_JSON_PATH" > tmp.json && mv tmp.json "$SERVER_JSON_PATH"


echo "Successfully updated firebase-tools version to $NEW_VERSION in $SERVER_JSON_PATH"

23 changes: 23 additions & 0 deletions src/mcp/server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
"name": "io.github.firebase/firebase-mcp",
"description": "A MCP server that provides AI development tools the ability to work with Firebase in your app.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"A MCP server" is redundant here. Maybe something like (stolen from the CLI extension page):

Suggested change
"description": "A MCP server that provides AI development tools the ability to work with Firebase in your app.",
"description": "Gives AI development tools Firebase-specific capabilities and expertise.",

"repository": {
"url": "https://github.com/firebase/firebase-tools",
"source": "github",
"subfolder": "src/mcp"
},
"version": "0.3.0",
"packages": [
{
"registryType": "npm",
"identifier": "firebase-tools",
"runtimeHint": "npx",
"runtimeArguments": [{"type": "positional", "value": "mcp"}],
"version": "14.25.1",
"transport": {
"type": "stdio"
}
}
]
}
Loading