Navigation
API > API/Plugins > API/Plugins/ModelContextProtocol
| Name | IModelContextProtocolModule |
| Type | class |
| Header File | /Engine/Plugins/Experimental/ModelContextProtocol/Source/ModelContextProtocol/Public/IModelContextProtocolModule.h |
| Include Path | #include "IModelContextProtocolModule.h" |
Syntax
class IModelContextProtocolModule : public IModuleInterface
Implements Interfaces
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnRefreshTools | TMulticastDelegate_NoParams< void > | IModelContextProtocolModule.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddResourceProvider
(
const TSharedRef< IModelContextProtocolResourceProvider >& ResourceProvider |
Add a resource provider. | IModelContextProtocolModule.h | |
bool AddTool
(
const TSharedRef< IModelContextProtocolTool >& Tool |
Add tool to server, ensuring no tool is already registered by the same name (case-insensitive). | IModelContextProtocolModule.h | |
TSharedPtr< IModelContextProtocolTool > FindTool
(
const FString& ToolName |
Find tool by name (case-insensitive) | IModelContextProtocolModule.h | |
FString GetAnalyticsEventNamespace() |
IModelContextProtocolModule.h | ||
TSharedPtr< IAnalyticsProviderET > GetAnalyticsProvider() |
IModelContextProtocolModule.h | ||
const TArray< TSharedRef< IModelContextProtocolResourceProvider > > & GetResourceProviders () |
Returns current list of registered resource providers. | IModelContextProtocolModule.h | |
FModelContextProtocolServer * GetServer() |
Returns the MCP server instance, or nullptr if not created. | IModelContextProtocolModule.h | |
const TArray< TSharedRef< IModelContextProtocolTool > > & GetTools() |
Returns current list of registered tools being served | IModelContextProtocolModule.h | |
FOnRefreshTools & OnRefreshTools() |
IModelContextProtocolModule.h | ||
void RecordAnalyticsEvent
(
const FString& EventName, |
Records an MCP analytics event via the currently installed provider. | IModelContextProtocolModule.h | |
void RefreshTools () |
Called by ModelContextProtocol.RefreshTools console command. | IModelContextProtocolModule.h | |
bool RemoveResourceProvider
(
const TSharedRef< IModelContextProtocolResourceProvider >& ResourceProvider |
Remove / deregister resource provider. | IModelContextProtocolModule.h | |
bool RemoveTool
(
const TSharedRef< IModelContextProtocolTool >& Tool |
Remove Tool from server (by pointer) | IModelContextProtocolModule.h | |
void SetAnalyticsEventNamespace
(
const FString& Namespace |
Sets the namespace prepended (with "." separator) to all MCP analytics event names. | IModelContextProtocolModule.h | |
void SetAnalyticsProvider
(
const TSharedPtr< IAnalyticsProviderET >& AnalyticsProvider |
Sets the analytics provider used to record MCP telemetry events. | IModelContextProtocolModule.h | |
void StartServer
(
uint32 Port, |
Creates and starts the MCP HTTP server on the specified port and URL path. | IModelContextProtocolModule.h | |
void StopServer() |
Stops and destroys the MCP HTTP server. | IModelContextProtocolModule.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static IModelContextProtocolModule * Get() |
IModelContextProtocolModule.h | ||
static IModelContextProtocolModule & GetChecked() |
IModelContextProtocolModule.h |