MCP server 实例审计与孤儿清理
fpga_server_cleanupAudit local pango-mcp processes to detect orphan candidates. Optionally terminate confirmed orphans after verification, keeping client-held instances.
Instructions
审计本机 pango-mcp stdio server 的 PID、父进程、年龄与私有内存;只把父进程已消失或父 PID 已复用的实例列为 orphan_candidate。默认只读;confirm:true 才终止经二次身份复核的孤儿。仍由客户端持有的实例永不跨任务强杀。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fpga_server_cleanup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pids | No | 可选候选 PID 白名单;未列入或不是 pango-mcp 孤儿的进程不会终止 | |
| confirm | No | 省略/false=只读审计;true=仅清理经二次复核的 orphan_candidate | |
| minAgeSec | No | 孤儿最小存活秒数,默认 60;避免父进程退出瞬间竞态 |