內容簡介
總結:MCP Tracker 是一個僅供管理員使用的 WordPress 外掛,幫助管理員監控和了解與他們的 WordPress 網站相關的 MCP (Model Context Protocol) REST API 請求。
問題與答案:
1. 這個外掛有哪些特點?
- 自動檢測:通過識別 Mcp-Session-Id 標頭來自動檢測 MCP 請求
- 全面記錄:記錄請求詳情,包括路由、方法、標頭和響應數據
- 用戶追踪:顯示觸發每個請求的 WordPress 用戶(或識別訪客請求)
- 高級篩選:按日期範圍、工具名稱和用戶篩選請求
- 詳細查看:以格式化 JSON 查看完整的請求標頭和響應內容
- 隱私焦點:所有數據都保存在您的服務器上 - 沒有外部傳輸
- 性能優化:對站點性能影響最小,使用效率高的數據庫查詢
2. 這個外掛的使用情境有哪些?
- 監控 WordPress 網站中的 MCP 工具使用情況
- 調試 MCP 整合問題
- 了解何時以及哪些工具被調用
- 追踪 API 響應模式
- 審計與 MCP 相關的活動
3. 這個外掛的技術細節是什麼?
- 使用 WordPress REST API 鉤子進行非侵入式記錄
- 具備適當索引的自定義數據庫表
- 安全的僅限管理員訪問,帶有功能檢查
- 針對所有管理員操作的驗證碼驗證
- 為安全起見準備的 SQL 語句
- 自我修復的數據庫表創建
外掛標籤
開發者團隊
原文外掛簡介
MCP Tracker is an admin-only WordPress plugin designed to monitor and log MCP (Model Context Protocol) requests made to the Abilities API on your WordPress site.
If you are using the Abilities API to power AI-driven tools or MCP-based integrations, MCP Tracker gives you complete visibility into how those tools interact with your REST endpoints — without modifying or interfering with request flow.
The plugin automatically detects MCP requests (identified via the Mcp-Session-Id header), records detailed request and response data, and presents everything in a structured, filterable interface inside WordPress Admin.
Whether you’re debugging Abilities API integrations, auditing MCP tool usage, or analyzing response behavior, MCP Tracker provides the observability layer you need.
Features
Automatic MCP Detection
Identifies MCP requests related to Abilities API using the Mcp-Session-Id header.
Comprehensive Logging
Logs route, method, headers, request payload, response status, and response body.
User Attribution
Displays which WordPress user (or guest) initiated the MCP request.
Advanced Filtering
Filter logs by date range, tool name, and user for targeted analysis.
Formatted JSON Inspection
View complete request and response data in a structured format.
Privacy Focused
All logs remain stored in your WordPress database. No external transmission or telemetry.
Performance Optimized
Efficient logging using native WordPress REST hooks and optimized queries.
Use Cases
Debug Abilities API integrations
Monitor MCP-based AI tool usage
Analyze REST response patterns
Audit MCP activity on production sites
Investigate failed or unexpected tool executions
Technical Details
Uses WordPress REST API hooks for non-intrusive logging
Custom indexed database table for efficient storage
Admin-only access with capability checks
Nonce verification for secure actions
Prepared SQL statements for database safety
Self-healing table creation on activation
