载入中...
搜索中...
未找到
McpTaskProfile.hpp
浏览该文件的文档.
52[[nodiscard]] EVENGINE_API_FOUNDATION bool mcpResolveTaskProfile(std::string_view taskKind, std::string_view profile,
57[[nodiscard]] EVENGINE_API_FOUNDATION std::vector<std::string> mcpProfileToolsetTags(std::string_view profile);
63[[nodiscard]] EVENGINE_API_FOUNDATION bool mcpProfileAllowsTool(std::string_view profile, std::string_view tool);
69[[nodiscard]] EVENGINE_API_FOUNDATION std::optional<McpProfileEscalate> mcpProfileEscalateHint(std::string_view profile,
85EVENGINE_API_FOUNDATION void mcpFilterNoteCall(bool allowed, std::size_t resultBytes, bool offeredEscalate);
Definition ActionGuideExport.cpp:13
bool 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.
Definition McpTaskProfile.cpp:81
std::string mcpProcessProfile()
Current process-level profile; empty when unset.
Definition McpTaskProfile.cpp:267
std::vector< std::string > mcpProfileToolsetTags(std::string_view profile)
Tag list advertised for EVE_MCP_TOOLSET when only a named profile is chosen.
Definition McpTaskProfile.cpp:124
std::string mcpProfileToolsetEnv(std::string_view profile)
Comma-joined toolset tags for env forwarding (eve-mcp --profile=).
Definition McpTaskProfile.cpp:134
void mcpSetProcessProfile(std::string_view profile)
Install or clear the process-level profile (EVE_MCP_PROFILE mirror for tests).
Definition McpTaskProfile.cpp:261
McpFilterStats mcpFilterStats()
Snapshot of proxy metrics since process start / last test reset.
Definition McpTaskProfile.cpp:291
bool mcpProfileAllowsTool(std::string_view profile, std::string_view tool)
Whether tool is allowed under a concrete named profile (empty = no profile gate).
Definition McpTaskProfile.cpp:144
void mcpFilterNoteCall(bool allowed, std::size_t resultBytes, bool offeredEscalate)
Record a tools/call attempt for proxy metrics.
Definition McpTaskProfile.cpp:283
std::string mcpSessionProfile()
Current session-level profile; empty when no session overlay.
Definition McpTaskProfile.cpp:278
std::optional< McpProfileEscalate > mcpProfileEscalateHint(std::string_view profile, std::string_view tool)
Suggest an escalate edge when tool is denied by profile.
Definition McpTaskProfile.cpp:210
void mcpSetSessionProfile(std::string_view profile)
Install or clear the session-level profile overlay.
Definition McpTaskProfile.cpp:273
Proxy counters for profile A/B comparisons (not billing truth).
Definition McpTaskProfile.hpp:35
std::uint64_t approxResultBytes
Definition McpTaskProfile.hpp:39
Suggested profile change when a call is rejected by the active profile.
Definition McpTaskProfile.hpp:28