载入中...
搜索中...
未找到
#include "devtools/McpTaskProfile.hpp"#include "devtools/McpToolFilter.hpp"#include <cstdlib>#include <mutex>#include <unordered_set>命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::dev |
函数 | |
| bool | eve::dev::mcpResolveTaskProfile (std::string_view taskKind, std::string_view profile, std::string *outProfile, std::string *outTaskKind, std::string *errorCode, std::string *errorMessage) |
| Resolve taskKind + optional profile into a concrete profile id. | |
| std::vector< std::string > | eve::dev::mcpProfileToolsetTags (std::string_view profile) |
Tag list advertised for EVE_MCP_TOOLSET when only a named profile is chosen. | |
| std::string | eve::dev::mcpProfileToolsetEnv (std::string_view profile) |
Comma-joined toolset tags for env forwarding (eve-mcp --profile=). | |
| bool | eve::dev::mcpProfileAllowsTool (std::string_view profile, std::string_view tool) |
Whether tool is allowed under a concrete named profile (empty = no profile gate). | |
| std::optional< McpProfileEscalate > | eve::dev::mcpProfileEscalateHint (std::string_view profile, std::string_view tool) |
Suggest an escalate edge when tool is denied by profile. | |
| void | eve::dev::mcpSetProcessProfile (std::string_view profile) |
Install or clear the process-level profile (EVE_MCP_PROFILE mirror for tests). | |
| std::string | eve::dev::mcpProcessProfile () |
| Current process-level profile; empty when unset. | |
| void | eve::dev::mcpSetSessionProfile (std::string_view profile) |
| Install or clear the session-level profile overlay. | |
| std::string | eve::dev::mcpSessionProfile () |
| Current session-level profile; empty when no session overlay. | |
| void | eve::dev::mcpFilterNoteCall (bool allowed, std::size_t resultBytes, bool offeredEscalate) |
| Record a tools/call attempt for proxy metrics. | |
| McpFilterStats | eve::dev::mcpFilterStats () |
| Snapshot of proxy metrics since process start / last test reset. | |
| void | eve::dev::mcpFilterStatsResetForTest () |
| Test helper: zero proxy metrics. | |