载入中...
搜索中...
未找到
Toolset / read-only / exclude filtering for the embedded MCP server. 更多...
类 | |
| struct | eve::dev::McpToolNameView |
| One advertised MCP tool after schema parse (name only for filtering). 更多... | |
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::dev |
函数 | |
| std::vector< std::string > | eve::dev::mcpToolTags (std::string_view name) |
| Classify a built-in or script tool into toolset tags. | |
| bool | eve::dev::mcpToolMutates (std::string_view name) |
| Whether the tool mutates game / editor / host state. | |
| bool | eve::dev::mcpToolAllowed (std::string_view name) |
Whether name is visible under the current env filter. | |
| std::string | eve::dev::filterMcpToolsBody (std::string_view toolsBody) |
| Filter a JSON tools array body in place (objects joined by commas). | |
| std::string | eve::dev::mcpToolFilteredPayload (std::string_view name) |
| Human-readable rejection payload fields when a call is filtered out. | |
| void | eve::dev::mcpToolFilterReloadForTest () |
| Test helper: clear cached env snapshot so the next allow check reloads. | |
详细描述
Toolset / read-only / exclude filtering for the embedded MCP server.
Agents drown when tools/list returns 130+ schemas. Env-driven filters shrink the advertised surface and reject calls that are outside the active set, so list and call stay consistent (Godot MCP toolset/read-only pattern).
Environment:
EVE_MCP_TOOLSET— comma-separated tags (alldefault):core,debug,play,editor,host,scene,input,domain,agentEVE_MCP_READONLY=1— hide / reject mutating toolsEVE_MCP_EXCLUDE— comma-separated exact tool names to dropEVE_MCP_PROFILE— named task profile (verify.play,content.scene, …); stacks with toolset tags and with the session profile fromeve_agent_session_start(seeMcpTaskProfile.hpp)
在文件 McpToolFilter.hpp 中定义.