Class McpServerToolAttribute
- Namespace
- nanoFramework.WebServer.Mcp
- Assembly
- nanoFramework.WebServer.Mcp.dll
Attribute to mark a method as an MCP server tool and provide metadata for discovery and documentation.
[AttributeUsage(AttributeTargets.Method)]
public class McpServerToolAttribute : Attribute
- Inheritance
-
McpServerToolAttribute
- Inherited Members
- Extension Methods
Constructors
McpServerToolAttribute(string, string, string)
Initializes a new instance of the McpServerToolAttribute class with the specified name, description, and output description.
public McpServerToolAttribute(string name, string description = "", string outputDescription = "")
Parameters
namestringThe unique name of the tool.
descriptionstringThe description of the tool.
outputDescriptionstringThe description of the tool's output.
Properties
Description
Gets the description of the tool.
public string Description { get; }
Property Value
Name
Gets the unique name of the tool.
public string Name { get; }
Property Value
OutputDescription
Gets the description of the tool's output.
public string OutputDescription { get; }