Phocinae is a lightweight, zero-dependency MCP server designed to expose the Phocinae small language model's fast decision and reasoning capabilities to coding agents. It provides a suite of targeted tools—`gate`, `classify`, `route`, and `score`—allowing agents to quickly evaluate shell command execution safety, categorize system states, route tasks to the best tool, and score criteria. Built using only the Python standard library, it supports both stdio and Streamable HTTP transports with robust dual-protocol compatibility, multi-round elicitation for human approval, and a fail-closed design that guarantees safe defaults during failures.
主要功能
01Support for both stdio and Streamable HTTP transports with localhost binding
020 GitHub stars
03Pure Python standard library implementation with zero external runtime dependencies
04Fail-closed safety mechanism defaulting to command denial on backend anomalies
05Dual protocol support for modern MCP implementations and legacy 2024-11-05 clients
06Four core decision tools: gate, classify, route, and score
使用案例
01Safeguarding automated coding agents by validating shell commands before execution
02Triggering human-in-the-loop approval workflows for ambiguous or high-risk system commands
03Selecting the optimal tool dynamically from a candidate list based on current task state