fire_config_mcp
设置
1.安装依赖项
2.创建并放置serviceAccount.json
要允许服务器访问 Firebase 远程配置,您需要一个 Google Cloud 服务帐户密钥文件:
A. Google Cloud Console(点击式)
- 在拥有您的 Firebase 应用的同一 GCP 项目内打开IAM 和管理 → 服务帐户。
- 单击**“创建服务帐户”**
- 名称:
mcp-remote-config
(任何名称都可以) - 描述:“MCP 服务器 – 远程配置访问”
- 名称:
- 授予此服务帐号访问权限:
- 在角色选择器中,搜索远程配置查看器或远程配置管理员(根据需要)并选择它。
- 如果您的模板条件引用 GA4 受众,则可以选择添加Firebase Analytics Viewer 。
- 完成→完成。
- 在列表中,单击帐户 →密钥选项卡 →添加密钥→创建新密钥→ JSON 。
- 下载 JSON 文件并将其作为
serviceAccount.json
放在项目根目录中。
注意: 请勿将
serviceAccount.json
提交到版��控制。它已在.gitignore
中。
3.运行服务器
默认情况下,服务器将在端口 3000 上启动。
用法
将此 MCP 服务器添加到客户端(例如,Cursor、Claude Desktop 或您自己的 MCP 客户端)
在光标中:
- 打开光标设置 → 功能 → 添加新的 MCP 服务器。
- 对于命令,使用:
npx -y 超级网关 --sse http://localhost:3000/mcp
"fire-config-mcp": { "command": "npx", "args": [ "-y", "supergateway", "--sse", " http://localhost:3000/mcp " ] } ```(或者使用您环境中配置的路径/命令。)3.保存并连接。
在您自己的 MCP 客户端中(TypeScript 示例):
您可以使用@modelcontextprotocol/sdk客户端连接到此服务器:
有关更多详细信息,请参阅MCP TypeScript SDK 文档。
该项目是使用 bun v1.2.7 中的bun init
创建的。Bun 是一个快速的一体化 JavaScript 运行时。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
提供对 Firebase 远程配置的访问的 MCP 服务器,允许客户端通过模型上下文协议与 Firebase 远程配置设置进行交互并管理该设置。
Related MCP Servers
- AsecurityFlicenseAqualityA server providing a unified interface to interact with Firebase services, including Authentication, Firestore, and Storage.Last updated -97TypeScript
- AsecurityAlicenseAqualityThe Firebase MCP server provides a standardized interface to interact with Firebase services, including Firebase Authentication, Firestore, and Firebase Storage.Last updated -9346172TypeScriptMIT License
- -securityFlicense-qualityAuto-generated MCP server that enables interaction with the Firebase App Distribution API, allowing users to manage distribution of pre-release app builds to testers through natural language commands.Last updated -Python
- -securityFlicense-qualityAn MCP Server providing access to Google's Firebase API, allowing natural language interaction with Firebase services and resources.Last updated -Python