#include <mcp_manager.h>
Definition at line 39 of file mcp_manager.h.
◆ mcp_manager()
| unravel::mcp_manager::mcp_manager |
( |
| ) |
|
|
default |
◆ ~mcp_manager()
| unravel::mcp_manager::~mcp_manager |
( |
| ) |
|
◆ clear_activity()
| void unravel::mcp_manager::clear_activity |
( |
| ) |
|
◆ deinit()
◆ get_endpoint_url()
| auto unravel::mcp_manager::get_endpoint_url |
( |
| ) |
const -> std::string |
◆ get_error_count()
| auto unravel::mcp_manager::get_error_count |
( |
| ) |
const -> uint64_t |
◆ get_health_url()
| auto unravel::mcp_manager::get_health_url |
( |
| ) |
const -> std::string |
◆ get_host()
| auto unravel::mcp_manager::get_host |
( |
| ) |
const -> const char* |
◆ get_port()
| auto unravel::mcp_manager::get_port |
( |
| ) |
const -> int |
◆ get_request_count()
| auto unravel::mcp_manager::get_request_count |
( |
| ) |
const -> uint64_t |
◆ get_tool_call_count()
| auto unravel::mcp_manager::get_tool_call_count |
( |
| ) |
const -> uint64_t |
◆ get_tool_count()
| auto unravel::mcp_manager::get_tool_count |
( |
| ) |
const -> size_t |
◆ init()
◆ invoke_on_main()
template<typename Fn >
| auto unravel::mcp_manager::invoke_on_main |
( |
Fn && | fn, |
|
|
std::chrono::milliseconds | timeout = std::chrono::milliseconds(5000) ) -> std::optional<std::invoke_result_t<std::decay_t<Fn>>>
|
|
inline |
Run fn on the editor main thread and wait. Safe from MCP HTTP workers. fn must return a value (use bool for success/fail). Returns nullopt on timeout / exception.
Definition at line 71 of file mcp_manager.h.
◆ is_enabled()
| auto unravel::mcp_manager::is_enabled |
( |
| ) |
const -> bool |
◆ is_running()
| auto unravel::mcp_manager::is_running |
( |
| ) |
const -> bool |
◆ snapshot_activity()
◆ start()
| void unravel::mcp_manager::start |
( |
| ) |
|
◆ stop()
| void unravel::mcp_manager::stop |
( |
| ) |
|
◆ k_default_port
| int unravel::mcp_manager::k_default_port = 27182 |
|
staticconstexpr |
◆ k_host
| const char* unravel::mcp_manager::k_host = "127.0.0.1" |
|
staticconstexpr |
◆ k_max_activity_entries
| size_t unravel::mcp_manager::k_max_activity_entries = 256 |
|
staticconstexpr |
The documentation for this class was generated from the following files: