https://scriptmasterlabs.com/blog/how-to-build-mcp-server-typescript
文章示範以 TypeScript SDK 與 Zod 定義 MCP 工具,並讓相同處理程式支援本機 stdio 與遠端 Streamable HTTP。建議用 MCP Inspector 測試、避免 stdio 輸出干擾協定、付費服務採無狀態模式,並發布靜態工具清單與 llms.txt,確保目錄可索引;輸入欄位應符合模型實際能提供的資訊。
via DEV Community: typescript
November 2, 2026 at 08:03AM