载入中...
搜索中...
未找到
McpInputTools.hpp 文件参考

Playtest input batch tools for the embedded MCP server. 更多...

#include <Poco/JSON/Object.h>
#include "common/Export.h"
#include <string>
#include <string_view>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::dev
 

函数

bool eve::dev::isMcpInputTool (std::string_view name)
 Whether name belongs to the input playtest tool family.
 
std::string eve::dev::callMcpInputTool (std::string_view name, Poco::JSON::Object::Ptr args)
 Execute one input tool.
 
std::string_view eve::dev::mcpInputToolSchemas ()
 Comma-free MCP tool schema fragments for the input family.
 
void eve::dev::pollMcpInputBatches ()
 Advance pending wait/capture batches once per game-loop poll. @thread MCP poll / game-loop thread only.
 
void eve::dev::resetMcpInputBatchesForTest ()
 Drop pending batches (tests / server stop).
 

详细描述

Playtest input batch tools for the embedded MCP server.

Mirrors the Godot MCP runtime pattern: inject key/mouse/text/ui actions, wait a number of game-loop polls, then optionally capture a frame — without blocking the main thread inside tools/call (wait+capture completes via pollMcpInputBatches on each McpServer::poll).

在文件 McpInputTools.hpp 中定义.