Namespace Nexus\Mcp\Server\Attribute

Classes
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(). At most one registered source may carry this attribute.

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.