Token导航 LogoToken导航TokenDH.com
MCP A2a Fitness Wellness Multi Agent System logo
AI代理未说明官方级别未说明来源级核验

MCP A2a Fitness Wellness Multi Agent System

MCP Server

一个用于健康与健身指导的多代理系统,通过数据收集和处理提供个性化建议。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
PythonClaudeAI代理Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

amanichopra

提供方

amanichopra

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

健康/健身代理多智能体系统

这是我在研讨会上分享的代码,旨在揭秘MCP/A2A并展示如何利用它们构建一个用于健康与健身指导的多智能体系统。视频链接如下: 这里.

项目结构

WELLNESS-TRACKING-SYSTEM/
├── agents/                             # Contains agents responsible for data collection and processing
│   ├── data_collection_agent/          # Main data collection logic
│   │   ├── mcp_clients/                # Clients for connecting to MCP servers
│   │   │   └── client.py               # Handles client-side communication
│   │   ├── mcp_servers/                # MCP server implementations
│   │   │   ├── hana.py                 # Connects to SAP HANA for data retrieval
│   │   │   └── agent.py                # Core MCP server agent logic
│   │   └── host_agent/                 # Host-side coordination agent
│   │       └── agent.py                # Manages communication with host application
│   └── __pycache__/                    # Compiled Python cache files
│
├── common/                             # Shared modules and interfaces
│   ├── a2a/                            # Agent-to-agent communication layer
│   │   ├── client.py                   # Client implementation for A2A messaging
│   │   ├── server.py                   # Server for A2A communication
│   │   ├── types.py                    # Shared type definitions for A2A protocol
│   │   └── __init__.py
│   └── __pycache__/
│
├── data/                               # Sample data and datasets
│   ├── fitness_activity.csv            # Fitness activity sample data
│   └── sleep_recovery.csv              # Sleep recovery sample data
│
├── host_app/                           # Host application entrypoint
│   ├── app.py                          # Main application logic for the host
│   └── __init__.py
│
├── .env                                # Environment variables
├── .python-version                     # Python version configuration
├── load_hana.ipynb                     # Notebook for loading SAP HANA data from files in `data/`
├── main.py                             # Root script to spin up all agents at once
├── Makefile                            # Command shortcuts for build/run tasks
├── pyproject.toml                      # Project configuration and dependencies
├── README.md                           # Project documentation
├── requirements.txt                    # Python dependencies
├── run_host_app.py                     # Scri

环境设置

  1. 确保 .env 在根目录中,以下填充了值。请用您的SAP AI Core和SAP HANA凭据替换占位符。
HANA_HOST='...'
HANA_PORT='...'
HANA_USER='...'
HANA_PASSWORD='...'
AICORE_AUTH_URL='...'
AICORE_CLIENT_ID='...'
AICORE_CLIENT_SECRET='...'
AICORE_RESOURCE_GROUP='...'
AICORE_BASE_URL='...'
  1. uv sync 从(某个来源)安装需求 uv.lock.
  2. 要使用Claude Desktop测试HANA MCP服务器,请运行 make run-data-collection-agent-hana-mcp-server 随后是 make add-data-collection-agent-mcp-server-claude-desktop 在您的Claude桌面配置中注册服务器。例如, ~/Library/Application Support/Claude/claude_desktop_config.json 将会查看下面的内容。请注意,您也可以使用 make run-mcp-inspector 在连接到Claude Desktop之前,先测试MCP服务器。
{
  "mcpServers": {
    "hana-mcp-server": {
      "command": "~/.local/bin/uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "--with-requirements",
        "~/Documents/Code/wellness-tracking-system/requirements.txt",
        "fastmcp",
        "run",
        "~/Documents/Code/wellness-tracking-system/data_collection_agent/mcp_servers/hana.py:app"
      ],
      "env": {
        "HANA_HOST": "...",
        "HANA_PORT": "...",
        "HANA_USER": "...",
        "HANA_PASSWORD": "..."
      },
      "transport": "stdio",
      "type": null,
      "cwd": null,
      "timeout": null,
      "description": null,
      "icon": null,
      "authentication": null
    }
  }
}
  1. 要运行MCP客户端以测试自定义设置,且不将Claude Desktop作为主机应用程序,可执行 make run-data-collection-agent-hana-mcp-client您可以通过这个命令行界面(CLI)与代理进行交互。
  2. 要运行A2A服务器,您可以先关闭MCP服务器和客户端,因为数据收集代理中的A2A客户端会再次启动MCP服务器。
  3. make run_data_collecition_agent_a2a_server 并且 make run_host_agent_a2a_server 启动每个A2A服务器。然后,运行带有(界面)的UI(用户界面) run_host_app 并且参观 http://localhost:7860 访问用户界面。

目录标签

目录标签

PythonClaudeAI代理健康指导本地部署健身跟踪多代理系统数据收集个性化建议

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP