Interface IMcpServerPrimitive
- Namespace
- ModelContextProtocol.Server
- Assembly
- ModelContextProtocol.Core.dll
Represents an MCP server primitive, like a tool or a prompt.
public interface IMcpServerPrimitive
Properties
Id
Gets the unique identifier of the primitive.
string Id { get; }
Property Value
Metadata
Gets the metadata for this primitive instance.
IReadOnlyList<object> Metadata { get; }
Property Value
Remarks
Contains attributes from the associated MethodInfo and declaring class (if any), with class-level attributes appearing before method-level attributes.