# Mcp Health

> Test all MCP server connections and report health status. Usage - /mcp-health

- **Type:** Skill
- **Install:** `agentstack add skill-patricksudo-fadacai-portfolio-mcp-health`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [PatrickSUDO](https://agentstack.voostack.com/s/patricksudo)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [PatrickSUDO](https://github.com/PatrickSUDO)
- **Source:** https://github.com/PatrickSUDO/fadacai-portfolio/tree/main/.claude/skills/mcp-health

## Install

```sh
agentstack add skill-patricksudo-fadacai-portfolio-mcp-health
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# MCP Health Check

測試所有 MCP server 的連線狀態，快速診斷問題。

## Workflow

### 1. 平行測試所有 MCP Server

盡可能同時呼叫以下 7 個測試，使用最簡單的工具確認連線：

| # | Server | 測試工具 | 測試呼叫 |
|---|--------|---------|---------|
| 1 | firstrade-server | `get_account_balance` | `()` |
| 2 | yfinance-advanced | `get_stock_info` | `("AAPL")` |
| 3 | sec-edgar-mcp | `get_company_info` | `("AAPL")` |
| 4 | fmp-mcp | `getCompanyProfile` | `("AAPL")` |
| 5 | technical-mcp | `get_technical_indicators` | `("AAPL")` |
| 6 | eodhd-mcp | `get_sentiment_trend` | `("AAPL.US", 7)` |
| 7 | polymarket-mcp | `get_trending_markets` | `()` |

### 2. 判定狀態

對每個 server 的回應判定：
- **✅ Healthy** — 正常返回數據
- **⚠️ Degraded** — 返回但數據不完整或響應異常慢
- **❌ Failed** — 呼叫失敗或超時

### 3. 輸出狀態表

```
## MCP Server 健康檢查

| Server | 狀態 | 延遲 | 備註 |
|--------|------|------|------|
| firstrade-server | ✅ Healthy | ~Xs | 即時持倉來源 |
| yfinance-advanced | ✅ Healthy | ~Xs | — |
| sec-edgar-mcp | ✅ Healthy | ~Xs | — |
| fmp-mcp | ✅ Healthy | ~Xs | Free tier |
| technical-mcp | ✅ Healthy | ~Xs | — |
| eodhd-mcp | ❌ Failed | — | 連線失敗 |
| polymarket-mcp | ✅ Healthy | ~Xs | Demo mode |

健康: X/7 | 異常: X/7
```

### 4. 失敗時的處理

對於 ❌ Failed 的 server，顯示：
- 錯誤訊息摘要
- 手動重啟指令（僅顯示，**不自動執行**）：

```
# 手動重啟指令（請在終端機執行）：
# yfinance-advanced:
cd ~/.claude/yahoo-finance-mcp && uv run server.py

# sec-edgar-mcp:
cd ~/.claude/sec-edgar-mcp && uv run --project sec-edgar-runner server.py

# fmp-mcp:
node /opt/homebrew/lib/node_modules/financial-modeling-prep-mcp-server/stdio-entry.mjs
```

### 5. 建議

- 若 1-2 個 server 失敗 → 建議重啟該 server，其他 skill 可正常使用（會 fallback）
- 若 3+ 個 server 失敗 → 建議重啟 Claude Code session
- 提醒：MCP server 由 Claude Code 自動管理，通常重開 session 即可恢復

## Output Format
- 繁體中文輸出
- 簡潔表格格式
- 預估執行時間：~30 秒

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [PatrickSUDO](https://github.com/PatrickSUDO)
- **Source:** [PatrickSUDO/fadacai-portfolio](https://github.com/PatrickSUDO/fadacai-portfolio)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-patricksudo-fadacai-portfolio-mcp-health
- Seller: https://agentstack.voostack.com/s/patricksudo
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
