载入中...
搜索中...
未找到
#include "common/Export.h"#include <Poco/JSON/Object.h>#include <map>#include <optional>#include <string>#include <string_view>#include <type_traits>#include <utility>#include <vector>类 | |
| struct | eve::dev::McpToolRoute |
| Owned route value; callbacks belong to the compiled binary, never a reloadable plugin. 更多... | |
| struct | eve::dev::McpToolFamily |
| Process-lifetime compiled family descriptor, generated from its provider declaration. 更多... | |
| class | eve::dev::McpToolFamilyCatalog |
| Immutable schema/route catalogue built transactionally from compiled families. @ownership Owns schema strings and tool-name keys; function pointers remain binary-owned. @lifetime Immutable until destruction; not a plugin/unload registration mechanism. @thread Construction is caller-owned; concurrent const reads are safe afterward. @reentrancy Schema callbacks run without locks and must not request this catalogue while it is building. 更多... | |
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::dev |
| namespace | eve::dev::detail |
宏定义 | |
| #define | EVE_MCP_TOOL_FAMILY(Id, Schemas, Handler, Payload) |
| Declare one family beside its implementation; CMake derives composition from compiled sources. | |
枚举 | |
| enum class | eve::dev::McpToolPayload { eve::dev::TextValue , eve::dev::ContentEnvelope } |
| Wire shape returned by a compiled tool provider. 更多... | |
函数 | |
| const McpToolFamilyCatalog & | eve::dev::compiledMcpToolCatalog () |
| Build the process-immortal compiled catalogue once, then borrow it until exit. @lifetime Survives static teardown together with McpServer's detached stdio reader. @thread Synchronized first construction; schema callbacks cannot reenter this function during that build. | |
| std::vector< McpToolFamily > | eve::dev::compiledMcpToolFamilies () |
| Generated build input; returns binary-owned descriptors for exactly the compiled providers. @cost Copies a descriptor per compiled family, once per catalogue construction. | |
宏定义说明
◆ EVE_MCP_TOOL_FAMILY
| #define EVE_MCP_TOOL_FAMILY | ( | Id, | |
| Schemas, | |||
| Handler, | |||
| Payload | |||
| ) |
值:
McpToolFamily eveMcpToolFamily_##Id() { \
return {#Id, &Schemas, {&detail::invokeMcpFamily<&Handler>, McpToolPayload::Payload}}; \
}
Declare one family beside its implementation; CMake derives composition from compiled sources.
在文件 McpToolFamilies.hpp 第 86 行定义.