Namespace Nexus\Mcp\Server\Attribute

Classes
AsCompletion

Marks a method as a completion provider for one prompt argument or resource template variable, registered through ServerBuilder::register().

AsPrompt

Marks a method as an MCP prompt, registered through ServerBuilder::register().

AsResource

Marks a method as an MCP resource, registered through ServerBuilder::register().

AsResourceTemplate

Marks a method as an MCP resource template, registered through ServerBuilder::register().

AsServer

Supplies the MCP server's identity and instructions, applied through ServerBuilder::register() and carried by at most one registered source.

AsTool

Marks a method as an MCP tool, registered through ServerBuilder::register().

InputSchema

JSON Schema constraints for a discovered tool's input, applied at the parameter or method level.