Skip to main content
Glama
ai-fsxgt

Poco MCP Service

by ai-fsxgt

Poco MCP Service

独立 MCP 服务模块(目录内自洽),用于承载 Poco 的多类型 MCP 工具。

目录结构

  • app/core:配置与基础设施

  • app/clients:后端 API 客户端

  • app/schemas:结构化输出模型

  • app/services:工具编排与分析逻辑

  • app/tools:MCP tools(按领域拆分)

  • app/main.py:MCP 入口,挂载多子服务

  • skills:面向 AI 的调用与分析技能文档

Related MCP server: hiveconsciousness

快速启动

cd mcp_service
uv sync
uv run python -m app.main

默认使用 http 传输(0.0.0.0:8090)。如需 stdio

MCP_TRANSPORT=stdio uv run python -m app.main

认证建议:

  • 推荐通过 MCP headers 透传用户自己的 API Key(可同时传 admin/global)。

  • BACKEND_ADMIN_API_KEY 作为无 HTTP 请求上下文时的可选回退(例如本地直连测试)。

  • 可选配置 BACKEND_GLOBAL_API_KEY(global-scope 工具或回退场景使用)。

可用工具(当前)

  • analysis_get_company_daily_usage

  • analysis_get_user_daily_usage

  • analysis_get_usage_scenarios

  • analysis_get_daily_analysis_brief

  • analysis_get_daily_content_taxonomy

  • analysis_get_daily_user_proficiency

  • analysis_get_daily_user_personas

  • analysis_get_daily_report_dataset

  • management_ping

  • management_describe_service

MCP 服务配置示例

{
  "mcpServers": {
    "poco_analytics": {
      "type": "http",
      "url": "${MCP_ANALYTICS_HTTP_URL:-http://host.docker.internal:8090/mcp}",
      "headers": {
        "BACKEND_ADMIN_API_KEY": "${MCP_ANALYTICS_ADMIN_API_KEY}",
        "BACKEND_GLOBAL_API_KEY": "${MCP_ANALYTICS_GLOBAL_API_KEY:-}"
      }
    }
  }
}

说明:

  • "/workspace/mcp_service"容器内路径,仅在 stdio + command 启动模式需要。

  • 当前推荐 http 方式接入,不再需要在 MCP Server 配置里写 command/args

  • MCP_ANALYTICS_ADMIN_API_KEY / MCP_ANALYTICS_GLOBAL_API_KEY 建议配置为用户级环境变量

  • mcp_service 会优先读取来路 headers 中的 BACKEND_ADMIN_API_KEYBACKEND_GLOBAL_API_KEY;同时兼容 Authorization

  • 仅在无 HTTP 请求上下文时,才回退 BACKEND_ADMIN_API_KEY / BACKEND_GLOBAL_API_KEY(便于本地直连测试)。

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides comprehensive monitoring and observability for MCP server ecosystems with real-time health checks, performance metrics, distributed tracing, anomaly detection, and automated performance reports using OpenTelemetry and Prometheus.
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for agent ecosystem analytics. Provides real-time health snapshots including transaction velocity and dispute rates, predictive analysis with confidence scoring, and pattern detection across multi-agent networks.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Unified MCP server for observability and monitoring, providing tools to query metrics, logs, and traces through Prometheus, Grafana, Loki, and Jaeger.
    2
    Mozilla Public 2.0
  • F
    license
    A
    quality
    D
    maintenance
    MCP server for the WhatsMyBudget Analytics API, providing tools to query budget periods, categories, accounts, and summaries.
    26
    -