载入中...
搜索中...
未找到
eve::editor::EditorMcpProjector类 参考

Host-scoped MCP projection over IEditorAutomation discovery. 更多...

#include <EditorMcpProjector.h>

Public 成员函数

 EditorMcpProjector ()=default
 
Result< void > attach (EditorHost *host, EditorMcpExportMode mode=EditorMcpExportMode::Commands)
 Attach a borrowed host as the active MCP projection scope.
 
void detach ()
 Clear the active attachment.
 
EditorHost * host () const
 Borrowed attached host, or null.
 
EditorMcpExportMode mode () const
 Active export mode.
 
bool isAttached () const
 True when a host is attached.
 
std::unordered_set< std::string > mountedOwners () const
 Mounted owner allowlist, empty when detached (no filter). @cost Linear in mounted package count; returns an owning set copy.
 
std::unordered_set< std::string > mountedTargetTypes () const
 Mounted target type allowlist, empty when detached (no filter). @cost Linear in mounted target types; returns an owning set copy.
 
Result< EditorValue > auditCompleteness () const
 Audit incomplete packages and orphan automation factories.
 

详细描述

Host-scoped MCP projection over IEditorAutomation discovery.

When attached, commands/target-list are filtered to mounted packages. Mode A only — per-command dynamic tools remain out of scope.

在文件 EditorMcpProjector.h 第 27 行定义.

构造及析构函数说明

◆ EditorMcpProjector()

eve::editor::EditorMcpProjector::EditorMcpProjector ( )
default

成员函数说明

◆ attach()

Result< void > eve::editor::EditorMcpProjector::attach ( EditorHost *  host,
EditorMcpExportMode  mode = EditorMcpExportMode::Commands 
)

Attach a borrowed host as the active MCP projection scope.

参数
hostHost that outlives the attachment; null detaches.
modeExport mode (default Commands / Mode A).

在文件 EditorMcpProjector.cpp 第 18 行定义.

引用了 eve::editor::Commands, host() , 以及 mode().

被这些函数引用 eve::editor::EditorAutomationProvider::attachHost() , 以及 eve::editor::EditorHost::exportMcp().

◆ auditCompleteness()

Result< EditorValue > eve::editor::EditorMcpProjector::auditCompleteness ( ) const

Audit incomplete packages and orphan automation factories.

返回
Applied object with incompletePackages[] and orphanFactoryTypes[].

在文件 EditorMcpProjector.cpp 第 43 行定义.

引用了 eve::editor::EditorWorkspace::getId(), isAttached(), left, provider, right, target, type, eve::editor::IEditorAutomationTargetFactory::types() , 以及 eve::editor::EditorHost::workspace().

被这些函数引用 eve::editor::EditorHost::auditPackages() , 以及 eve::editor::EditorAutomationProvider::invoke().

◆ detach()

void eve::editor::EditorMcpProjector::detach ( )

Clear the active attachment.

在文件 EditorMcpProjector.cpp 第 27 行定义.

被这些函数引用 eve::editor::EditorAutomationProvider::detachHost() , 以及 eve::editor::EditorHost::~EditorHost().

◆ host()

EditorHost * eve::editor::EditorMcpProjector::host ( ) const
inline

Borrowed attached host, or null.

在文件 EditorMcpProjector.h 第 42 行定义.

被这些函数引用 attach().

◆ isAttached()

bool eve::editor::EditorMcpProjector::isAttached ( ) const
inline

True when a host is attached.

在文件 EditorMcpProjector.h 第 48 行定义.

被这些函数引用 auditCompleteness().

◆ mode()

EditorMcpExportMode eve::editor::EditorMcpProjector::mode ( ) const
inline

Active export mode.

在文件 EditorMcpProjector.h 第 45 行定义.

被这些函数引用 attach().

◆ mountedOwners()

std::unordered_set< std::string > eve::editor::EditorMcpProjector::mountedOwners ( ) const

Mounted owner allowlist, empty when detached (no filter). @cost Linear in mounted package count; returns an owning set copy.

在文件 EditorMcpProjector.cpp 第 29 行定义.

引用了 eve::editor::EditorHost::mountedOwnerNames() , 以及 owner.

◆ mountedTargetTypes()

std::unordered_set< std::string > eve::editor::EditorMcpProjector::mountedTargetTypes ( ) const

Mounted target type allowlist, empty when detached (no filter). @cost Linear in mounted target types; returns an owning set copy.

在文件 EditorMcpProjector.cpp 第 36 行定义.

引用了 eve::editor::EditorHost::mountedTargetTypeNames() , 以及 type.


该类的文档由以下文件生成: