.vscode — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited .vscode (MCP Server) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
自己為 Claude 寫本地端 MCP Server 很簡單,有手就行😁 完整流程 Demo 的 gif 圖檔 MCP開啟圖示
MCP Server 就像「AI 的 USB 插槽」,讓 AI 能安全地連接外部資料或工具。 舉例:AI 想查電腦檔案或查詢股票價格,MCP Server 就負責幫 AI 取得這些資料或執行操作。
總結:MCP 讓 AI 從只能「說」進化到能「做」,大幅擴展應用範圍與價值,推動 AI 進入真正的智能代理(AI Agent)時代
這是用來給 Claude 查詢指定地區的天氣資訊
我去申請 https://openweathermap.org/ 的免費服務 請去註冊並取得 API 金鑰 (API Key)
OPENWEATHERMAP_API_KEY=你的實際API金鑰貼在這裡將 .env 放在專案根目錄,或在 MCP 啟動參數中提供 .env 路徑。預設會讀取目前工作目錄下的 .env。
npm install
npm run build
npm test成功建置後,使用 Claude Desktop 的 envPath 參數指定專案根目錄下的 .env。
https://claude.ai/download
右上角 File => Settings 開啟 Developer 模式
Windows 用戶請 開啟目錄 C:\Users\使用者名稱\AppData\Roaming\Claude 檔案名稱 claude_desktop_config.json
{
"mcpServers": {
"weather": {
"command": "node",
"args": [
"D:\\github\\ClaudeLocalMCP.ts\\dist\\index.js",
"envPath=D:\\github\\chiisen\\ClaudeLocalMCP.ts\\.env"
]
}
}
}envPath 是 .env 檔案路徑。路徑中可包含空白或等號。也可以將 OPENWEATHERMAP_API_KEY 設為程序環境變數;沒有指定 envPath 時,伺服器會讀取工作目錄的 .env。
工具名稱為 get_weather。英文城市可直接查詢;中文城市會先使用 MyMemory 翻譯。若 MyMemory 額度不足或服務無法連線,請改用英文城市名稱。翻譯與天氣服務各有 10 秒請求期限。
確認一下 MCP 是否正常開啟 MCP開啟圖示 檢視一下 MCP 名稱 MCP開啟圖示 詢問時要指定地區,如: 台中天氣如何? Claude 會要你確認(Allow for this chat)是否可以執行 MCP 服務 MCP開啟圖示
Windows 用戶請 開啟目錄 C:\Users\使用者名稱\AppData\Roaming\Claude\logs
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.