Namespace Unity.AI.MCP.Editor.ToolRegistry
Classes
McpDescriptionAttribute
Provides descriptions and constraints for MCP tool parameter properties. Applied to properties in parameter classes to enhance automatically generated schemas.
McpOutputSchemaAttribute
Marks a static method as providing a custom output schema for an MCP tool. Output schemas help MCP clients understand the structure of tool return values.
McpSchemaAttribute
Marks a static method as providing a custom input schema for an MCP tool. Use this when a tool takes JObject parameters and needs a schema more specific than the default.
McpToolAttribute
Marks a static method or class as an MCP tool that can be invoked by MCP clients. Tools are automatically discovered at editor startup using Unity's TypeCache system.
McpToolInfo
Represents the metadata and schema information for an MCP tool. Used for tool registration and discovery by MCP clients.
McpToolRegistry
Central registry for managing MCP tools with automatic discovery and runtime registration. Provides discovery of attribute-decorated tools and dynamic tool registration at runtime.
McpToolRegistry.ToolChangeEventArgs
Event arguments for tool changes. Provides information about what changed in the tool registry.
Structs
ToolSettingsEntry
A tool entry enriched with settings state, used by the settings UI.
Interfaces
IUnityMcpTool
Interface for implementing class-based MCP tools with flexible parameter handling. Use this when your tool needs state management, complex initialization, or custom schema generation. For simpler tools with strongly-typed parameters, consider using IUnityMcpTool<TParams> instead.
IUnityMcpTool<TParams>
Generic interface for class-based MCP tools with strongly-typed parameters. Recommended for most tools as it provides automatic schema generation and type safety.
Enums
McpToolRegistry.ToolChangeType
Specifies the type of change that occurred in the tool registry.