Table of Contents

Namespace nanoFramework.WebServer.Mcp

Classes

DescriptionAttribute

Specifies a description for a class member, such as a property or method, for use in documentation or metadata.

McpPromptParameterAttribute

Represents a parameter for a Model Context Protocol (MCP) prompt, providing metadata about the parameter such as its name and description.

McpPromptRegistry

Registry for Model Context Protocol (MCP) prompts, allowing discovery and invocation of prompts defined with the McpServerPromptAttribute.

McpResourceRegistry

Registry for Model Context Protocol (MCP) resources, allowing discovery and reading of resources defined with the McpServerResourceAttribute.

McpResourceRegistry.ResourceNotFoundException

Represents a request for a resource that is not registered.

McpServerBasicAuthenticationController

McpServerController class provides endpoints for handling requests related to MCP (Model Context Protocol) tools. This controller is specifically designed for basic (user, password) authentication.

McpServerController

McpServerController class provides endpoints for handling requests related to MCP (Model Context Protocol) tools.

McpServerKeyAuthenticationController

McpServerController class provides endpoints for handling requests related to MCP (Model Context Protocol) tools. This controller is specifically designed for key-based authentication.

McpServerPromptAttribute

Used to indicate that a method should be considered an McpServerPromptAttribute.

McpServerResourceAttribute

Attribute to mark a method as an MCP server resource and provide metadata for discovery and documentation.

McpServerToolAttribute

Attribute to mark a method as an MCP server tool and provide metadata for discovery and documentation.

McpToolJsonHelper

Provides utility methods for generating JSON schemas that describe the input and output parameters of actions.

McpToolRegistry

Registry for Model Context Protocol (MCP) tools, allowing discovery and invocation of tools defined with the McpServerToolAttribute.

PromptMessage

Represents a message within the Model Context Protocol (MCP) system, used for communication between clients and AI models.

PromptMetadata

Represents metadata information for a prompt, including its name, description and associated method.

RegistryBase

Base class for registries that support conversion and deserialization of objects.

ResourceMetadata

Represents metadata information for a registered resource, including its URI, name, description, MIME type, and associated method.

ToolMetadata

Represents metadata information for a registered tool, including its name, description, input/output types, and associated method.

Interfaces

IMcpResourceProvider

Provides dynamically registered MCP resources to the MCP server controller.

IMcpToolProvider

Provides dynamically registered MCP tools to the MCP server controller.

Enums

Role

Represents the type of role in the Model Context Protocol conversation.