Skip to main content
Glama

fire_config_mcp

设置

1.安装依赖项

bun install

2.创建并放置serviceAccount.json

要允许服务器访问 Firebase 远程配置,您需要一个 Google Cloud 服务帐户密钥文件:

A. Google Cloud Console(点击式)

  1. 在拥有您的 Firebase 应用的同一 GCP 项目内打开IAM 和管理 → 服务帐户

  2. 单击**“创建服务帐户”**

    • 名称: mcp-remote-config (任何名称都可以)

    • 描述:“MCP 服务器 – 远程配置访问”

  3. 授予此服务帐号访问权限:

    • 在角色选择器中,搜索远程配置查看器远程配置管理员(根据需要)并选择它。

    • 如果您的模板条件引用 GA4 受众,则可以选择添加Firebase Analytics Viewer

  4. 完成→完成。

  5. 在列表中,单击帐户 →密钥选项卡 →添加密钥创建新密钥JSON

  6. 下载 JSON 文件并将其作为serviceAccount.json放在项目根目录中。

注意: 请勿serviceAccount.json提交到版本控制。它已在.gitignore中。

3.运行服务器

bun run index.ts

默认情况下,服务器将在端口 3000 上启动。

Related MCP server: Firebase App Distribution API MCP Server

用法

将此 MCP 服务器添加到客户端(例如,Cursor、Claude Desktop 或您自己的 MCP 客户端)

在光标中:

  1. 打开光标设置 → 功能 → 添加新的 MCP 服务器。

  2. 对于命令,使用:

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客户端连接到此服务器:

import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js"; const client = new Client({ name: "my-client", version: "1.0.0" }); const transport = new SSEClientTransport("http://localhost:3000/mcp"); await client.connect(transport); // Now you can list tools, call tools, etc. const tools = await client.listTools();

有关更多详细信息,请参阅MCP TypeScript SDK 文档


该项目是使用 bun v1.2.7 中的bun init创建的。Bun 是一个快速的一体化 JavaScript 运行时。

-
security - not tested
F
license - not found
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IdanAizikNissim/FireConfigMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server