| Copyright | (C) 2025 DPella AB |
|---|---|
| License | MPL-2.0 |
| Maintainer | matti@dpella.io, lobo@dpella.io |
| Stability | experimental |
| Portability | GHC |
| Safe Haskell | None |
| Language | Haskell2010 |
MCP.Types
Description
This module defines the core types used in the Model Context Protocol (MCP), including JSON-RPC message types, client/server capabilities, resources, tools, prompts, and various request/response types.
Synopsis
- newtype RequestId = RequestId Value
- data Role
- newtype Cursor = Cursor Text
- newtype ProgressToken = ProgressToken Value
- data LoggingLevel
- data Annotations = Annotations {}
- data TextContent = TextContent {
- textType :: Text
- text :: Text
- annotations :: Maybe Annotations
- _meta :: Maybe Metadata
- data ImageContent = ImageContent {}
- data AudioContent = AudioContent {}
- data EmbeddedResource = EmbeddedResource {}
- data ResourceLink = ResourceLink {}
- data Content
- data ContentBlock
- data ResourceContents
- data TextResourceContents = TextResourceContents {}
- data BlobResourceContents = BlobResourceContents {}
- data Resource = Resource {}
- data ResourceTemplate = ResourceTemplate {
- name :: Text
- title :: Maybe Text
- uriTemplate :: Text
- description :: Maybe Text
- mimeType :: Maybe Text
- annotations :: Maybe Annotations
- _meta :: Maybe Metadata
- data ResourceReference = ResourceReference {}
- type ResourceTemplateReference = ResourceReference
- data ToolAnnotations = ToolAnnotations {}
- data Tool = Tool {}
- data InputSchema = InputSchema {
- schemaType :: Text
- properties :: Maybe (Map Text Value)
- required :: Maybe [Text]
- data PromptArgument = PromptArgument {}
- data Prompt = Prompt {}
- data PromptMessage = PromptMessage {
- role :: Role
- content :: ContentBlock
- data PromptReference = PromptReference {}
- data ModelHint where
- data ModelPreferences = ModelPreferences {}
- data IncludeContext
- = AllServers
- | None
- | ThisServer
- data SamplingMessage = SamplingMessage {}
- data ClientCapabilities = ClientCapabilities {}
- data ServerCapabilities = ServerCapabilities {}
- data RootsCapability where
- RootsCapability :: {..} -> RootsCapability
- data PromptsCapability where
- PromptsCapability :: {..} -> PromptsCapability
- data ResourcesCapability = ResourcesCapability {}
- data ToolsCapability where
- ToolsCapability :: {..} -> ToolsCapability
- data CompletionsCapability = CompletionsCapability
- data LoggingCapability = LoggingCapability
- data SamplingCapability = SamplingCapability
- data ElicitationCapability = ElicitationCapability
- newtype ExperimentalCapability = ExperimentalCapability (Map Text Value)
- data BaseMetadata = BaseMetadata {}
- data Implementation = Implementation {}
- data Root = Root {}
- data Result where
- newtype Metadata = Metadata (Map Text Value)
Basic Types (re-exported from JSONRPC)
A uniquely identifying ID for a request in JSON-RPC.
The JSON-RPC 2.0 specification requires that each request has a unique identifier. The ID can be a string, number, or null value. Numbers SHOULD NOT contain fractional parts.
Basic Types
The sender or recipient of messages and data in a conversation.
This is used to identify whether content comes from the user or the assistant in prompt messages and sampling requests.
An opaque token used to represent a cursor for pagination.
Used in paginated requests to indicate the starting position for the next set of results. If provided, the server should return results starting after this cursor.
newtype ProgressToken Source #
A progress token, used to associate progress notifications with the original request.
If specified in a request, the caller is requesting out-of-band progress notifications (as represented by notifications/progress). The value is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
Constructors
| ProgressToken Value |
Instances
| FromJSON ProgressToken Source # | |
Defined in MCP.Types Methods parseJSON :: Value -> Parser ProgressToken # parseJSONList :: Value -> Parser [ProgressToken] # | |
| ToJSON ProgressToken Source # | |
Defined in MCP.Types Methods toJSON :: ProgressToken -> Value # toEncoding :: ProgressToken -> Encoding # toJSONList :: [ProgressToken] -> Value # toEncodingList :: [ProgressToken] -> Encoding # omitField :: ProgressToken -> Bool # | |
| Show ProgressToken Source # | |
Defined in MCP.Types Methods showsPrec :: Int -> ProgressToken -> ShowS # show :: ProgressToken -> String # showList :: [ProgressToken] -> ShowS # | |
| Eq ProgressToken Source # | |
Defined in MCP.Types Methods (==) :: ProgressToken -> ProgressToken -> Bool # (/=) :: ProgressToken -> ProgressToken -> Bool # | |
data LoggingLevel Source #
The severity of a log message.
These map to syslog message severities, as specified in RFC-5424: https:/datatracker.ietf.orgdochtmlrfc5424#section-6.2.1
Instances
Content Types
data Annotations Source #
Optional annotations for the client.
The client can use annotations to inform how objects are used or displayed.
Constructors
| Annotations | |
Fields
| |
Instances
| FromJSON Annotations Source # | |||||
Defined in MCP.Types | |||||
| ToJSON Annotations Source # | |||||
Defined in MCP.Types Methods toJSON :: Annotations -> Value # toEncoding :: Annotations -> Encoding # toJSONList :: [Annotations] -> Value # toEncodingList :: [Annotations] -> Encoding # omitField :: Annotations -> Bool # | |||||
| Generic Annotations Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show Annotations Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> Annotations -> ShowS # show :: Annotations -> String # showList :: [Annotations] -> ShowS # | |||||
| Eq Annotations Source # | |||||
Defined in MCP.Types | |||||
| type Rep Annotations Source # | |||||
Defined in MCP.Types type Rep Annotations = D1 ('MetaData "Annotations" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "Annotations" 'PrefixI 'True) (S1 ('MetaSel ('Just "audience") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Role])) :*: (S1 ('MetaSel ('Just "priority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "lastModified") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) | |||||
data TextContent Source #
Text provided to or from an LLM.
This represents textual content that can be sent to or received from a language model during conversations.
Constructors
| TextContent | |
Fields
| |
Instances
| FromJSON TextContent Source # | |||||
Defined in MCP.Types | |||||
| ToJSON TextContent Source # | |||||
Defined in MCP.Types Methods toJSON :: TextContent -> Value # toEncoding :: TextContent -> Encoding # toJSONList :: [TextContent] -> Value # toEncodingList :: [TextContent] -> Encoding # omitField :: TextContent -> Bool # | |||||
| Generic TextContent Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show TextContent Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> TextContent -> ShowS # show :: TextContent -> String # showList :: [TextContent] -> ShowS # | |||||
| Eq TextContent Source # | |||||
Defined in MCP.Types | |||||
| type Rep TextContent Source # | |||||
Defined in MCP.Types type Rep TextContent = D1 ('MetaData "TextContent" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "TextContent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "textType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "annotations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Annotations)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
data ImageContent Source #
An image provided to or from an LLM.
Represents image data that can be included in messages to language models that support multimodal input.
Constructors
| ImageContent | |
Instances
| FromJSON ImageContent Source # | |||||
Defined in MCP.Types | |||||
| ToJSON ImageContent Source # | |||||
Defined in MCP.Types Methods toJSON :: ImageContent -> Value # toEncoding :: ImageContent -> Encoding # toJSONList :: [ImageContent] -> Value # toEncodingList :: [ImageContent] -> Encoding # omitField :: ImageContent -> Bool # | |||||
| Generic ImageContent Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show ImageContent Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ImageContent -> ShowS # show :: ImageContent -> String # showList :: [ImageContent] -> ShowS # | |||||
| Eq ImageContent Source # | |||||
Defined in MCP.Types | |||||
| type Rep ImageContent Source # | |||||
Defined in MCP.Types type Rep ImageContent = D1 ('MetaData "ImageContent" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ImageContent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "imageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "mimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "annotations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Annotations)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))))) | |||||
data AudioContent Source #
Audio provided to or from an LLM.
Represents audio data that can be included in messages to language models that support audio input.
Constructors
| AudioContent | |
Instances
| FromJSON AudioContent Source # | |||||
Defined in MCP.Types | |||||
| ToJSON AudioContent Source # | |||||
Defined in MCP.Types Methods toJSON :: AudioContent -> Value # toEncoding :: AudioContent -> Encoding # toJSONList :: [AudioContent] -> Value # toEncodingList :: [AudioContent] -> Encoding # omitField :: AudioContent -> Bool # | |||||
| Generic AudioContent Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show AudioContent Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> AudioContent -> ShowS # show :: AudioContent -> String # showList :: [AudioContent] -> ShowS # | |||||
| Eq AudioContent Source # | |||||
Defined in MCP.Types | |||||
| type Rep AudioContent Source # | |||||
Defined in MCP.Types type Rep AudioContent = D1 ('MetaData "AudioContent" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "AudioContent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "audioType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "mimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "annotations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Annotations)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))))) | |||||
data EmbeddedResource Source #
The contents of a resource, embedded into a prompt or tool call result.
It is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.
Constructors
| EmbeddedResource | |
Fields
| |
Instances
| FromJSON EmbeddedResource Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser EmbeddedResource # parseJSONList :: Value -> Parser [EmbeddedResource] # | |||||
| ToJSON EmbeddedResource Source # | |||||
Defined in MCP.Types Methods toJSON :: EmbeddedResource -> Value # toEncoding :: EmbeddedResource -> Encoding # toJSONList :: [EmbeddedResource] -> Value # toEncodingList :: [EmbeddedResource] -> Encoding # omitField :: EmbeddedResource -> Bool # | |||||
| Generic EmbeddedResource Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: EmbeddedResource -> Rep EmbeddedResource x # to :: Rep EmbeddedResource x -> EmbeddedResource # | |||||
| Show EmbeddedResource Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> EmbeddedResource -> ShowS # show :: EmbeddedResource -> String # showList :: [EmbeddedResource] -> ShowS # | |||||
| Eq EmbeddedResource Source # | |||||
Defined in MCP.Types Methods (==) :: EmbeddedResource -> EmbeddedResource -> Bool # (/=) :: EmbeddedResource -> EmbeddedResource -> Bool # | |||||
| type Rep EmbeddedResource Source # | |||||
Defined in MCP.Types type Rep EmbeddedResource = D1 ('MetaData "EmbeddedResource" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "EmbeddedResource" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "resource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResourceContents)) :*: (S1 ('MetaSel ('Just "annotations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Annotations)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
data ResourceLink Source #
A resource that the server is capable of reading, included in a prompt or tool call result.
Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.
Constructors
| ResourceLink | |
Fields
| |
Instances
| FromJSON ResourceLink Source # | |||||
Defined in MCP.Types | |||||
| ToJSON ResourceLink Source # | |||||
Defined in MCP.Types Methods toJSON :: ResourceLink -> Value # toEncoding :: ResourceLink -> Encoding # toJSONList :: [ResourceLink] -> Value # toEncodingList :: [ResourceLink] -> Encoding # omitField :: ResourceLink -> Bool # | |||||
| Generic ResourceLink Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show ResourceLink Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ResourceLink -> ShowS # show :: ResourceLink -> String # showList :: [ResourceLink] -> ShowS # | |||||
| Eq ResourceLink Source # | |||||
Defined in MCP.Types | |||||
| type Rep ResourceLink Source # | |||||
Defined in MCP.Types type Rep ResourceLink = D1 ('MetaData "ResourceLink" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ResourceLink" 'PrefixI 'True) (((S1 ('MetaSel ('Just "linkType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "mimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "annotations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Annotations)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))))) | |||||
Content that can be text, image, audio, or embedded resource.
This union type represents the different kinds of content that can be included in messages, prompts, and tool results.
Constructors
| TextContentType TextContent | |
| ImageContentType ImageContent | |
| AudioContentType AudioContent | |
| EmbeddedResourceType EmbeddedResource |
Instances
| FromJSON Content Source # | |||||
| ToJSON Content Source # | |||||
| Generic Content Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show Content Source # | |||||
| Eq Content Source # | |||||
| type Rep Content Source # | |||||
Defined in MCP.Types type Rep Content = D1 ('MetaData "Content" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) ((C1 ('MetaCons "TextContentType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextContent)) :+: C1 ('MetaCons "ImageContentType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ImageContent))) :+: (C1 ('MetaCons "AudioContentType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AudioContent)) :+: C1 ('MetaCons "EmbeddedResourceType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EmbeddedResource)))) | |||||
data ContentBlock Source #
ContentBlock union type that includes ResourceLink.
This is the unified content type used in new schema version.
Constructors
| TextBlock TextContent | |
| ImageBlock ImageContent | |
| AudioBlock AudioContent | |
| ResourceLinkBlock ResourceLink | |
| EmbeddedResourceBlock EmbeddedResource |
Instances
| FromJSON ContentBlock Source # | |||||
Defined in MCP.Types | |||||
| ToJSON ContentBlock Source # | |||||
Defined in MCP.Types Methods toJSON :: ContentBlock -> Value # toEncoding :: ContentBlock -> Encoding # toJSONList :: [ContentBlock] -> Value # toEncodingList :: [ContentBlock] -> Encoding # omitField :: ContentBlock -> Bool # | |||||
| Generic ContentBlock Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show ContentBlock Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ContentBlock -> ShowS # show :: ContentBlock -> String # showList :: [ContentBlock] -> ShowS # | |||||
| Eq ContentBlock Source # | |||||
Defined in MCP.Types | |||||
| type Rep ContentBlock Source # | |||||
Defined in MCP.Types type Rep ContentBlock = D1 ('MetaData "ContentBlock" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) ((C1 ('MetaCons "TextBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextContent)) :+: C1 ('MetaCons "ImageBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ImageContent))) :+: (C1 ('MetaCons "AudioBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AudioContent)) :+: (C1 ('MetaCons "ResourceLinkBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResourceLink)) :+: C1 ('MetaCons "EmbeddedResourceBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EmbeddedResource))))) | |||||
Resource Types
data ResourceContents Source #
The contents of a specific resource or sub-resource.
A resource can contain either text or binary data.
Instances
| FromJSON ResourceContents Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ResourceContents # parseJSONList :: Value -> Parser [ResourceContents] # | |||||
| ToJSON ResourceContents Source # | |||||
Defined in MCP.Types Methods toJSON :: ResourceContents -> Value # toEncoding :: ResourceContents -> Encoding # toJSONList :: [ResourceContents] -> Value # toEncodingList :: [ResourceContents] -> Encoding # omitField :: ResourceContents -> Bool # | |||||
| Generic ResourceContents Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ResourceContents -> Rep ResourceContents x # to :: Rep ResourceContents x -> ResourceContents # | |||||
| Show ResourceContents Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ResourceContents -> ShowS # show :: ResourceContents -> String # showList :: [ResourceContents] -> ShowS # | |||||
| Eq ResourceContents Source # | |||||
Defined in MCP.Types Methods (==) :: ResourceContents -> ResourceContents -> Bool # (/=) :: ResourceContents -> ResourceContents -> Bool # | |||||
| type Rep ResourceContents Source # | |||||
Defined in MCP.Types type Rep ResourceContents = D1 ('MetaData "ResourceContents" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "TextResource" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextResourceContents)) :+: C1 ('MetaCons "BlobResource" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BlobResourceContents))) | |||||
data TextResourceContents Source #
Text resource contents.
Represents the contents of a resource that can be represented as text (not binary data).
Constructors
| TextResourceContents | |
Instances
| FromJSON TextResourceContents Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser TextResourceContents # parseJSONList :: Value -> Parser [TextResourceContents] # | |||||
| ToJSON TextResourceContents Source # | |||||
Defined in MCP.Types Methods toJSON :: TextResourceContents -> Value # toEncoding :: TextResourceContents -> Encoding # toJSONList :: [TextResourceContents] -> Value # toEncodingList :: [TextResourceContents] -> Encoding # omitField :: TextResourceContents -> Bool # | |||||
| Generic TextResourceContents Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: TextResourceContents -> Rep TextResourceContents x # to :: Rep TextResourceContents x -> TextResourceContents # | |||||
| Show TextResourceContents Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> TextResourceContents -> ShowS # show :: TextResourceContents -> String # showList :: [TextResourceContents] -> ShowS # | |||||
| Eq TextResourceContents Source # | |||||
Defined in MCP.Types Methods (==) :: TextResourceContents -> TextResourceContents -> Bool # (/=) :: TextResourceContents -> TextResourceContents -> Bool # | |||||
| type Rep TextResourceContents Source # | |||||
Defined in MCP.Types type Rep TextResourceContents = D1 ('MetaData "TextResourceContents" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "TextResourceContents" 'PrefixI 'True) ((S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "mimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
data BlobResourceContents Source #
Blob resource contents.
Represents the contents of a resource as binary data, encoded in base64.
Constructors
| BlobResourceContents | |
Instances
| FromJSON BlobResourceContents Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser BlobResourceContents # parseJSONList :: Value -> Parser [BlobResourceContents] # | |||||
| ToJSON BlobResourceContents Source # | |||||
Defined in MCP.Types Methods toJSON :: BlobResourceContents -> Value # toEncoding :: BlobResourceContents -> Encoding # toJSONList :: [BlobResourceContents] -> Value # toEncodingList :: [BlobResourceContents] -> Encoding # omitField :: BlobResourceContents -> Bool # | |||||
| Generic BlobResourceContents Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: BlobResourceContents -> Rep BlobResourceContents x # to :: Rep BlobResourceContents x -> BlobResourceContents # | |||||
| Show BlobResourceContents Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> BlobResourceContents -> ShowS # show :: BlobResourceContents -> String # showList :: [BlobResourceContents] -> ShowS # | |||||
| Eq BlobResourceContents Source # | |||||
Defined in MCP.Types Methods (==) :: BlobResourceContents -> BlobResourceContents -> Bool # (/=) :: BlobResourceContents -> BlobResourceContents -> Bool # | |||||
| type Rep BlobResourceContents Source # | |||||
Defined in MCP.Types type Rep BlobResourceContents = D1 ('MetaData "BlobResourceContents" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "BlobResourceContents" 'PrefixI 'True) ((S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "blob") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "mimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
A known resource that the server is capable of reading.
Resources represent files, documents, or other data sources that the server can provide to clients.
Constructors
| Resource | |
Fields
| |
Instances
| FromJSON Resource Source # | |||||
| ToJSON Resource Source # | |||||
| Generic Resource Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show Resource Source # | |||||
| Eq Resource Source # | |||||
| type Rep Resource Source # | |||||
Defined in MCP.Types type Rep Resource = D1 ('MetaData "Resource" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "Resource" 'PrefixI 'True) (((S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "mimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "annotations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Annotations)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))))) | |||||
data ResourceTemplate Source #
A template description for resources available on the server.
Resource templates allow servers to describe parameterized resources that can be instantiated with specific values.
Constructors
| ResourceTemplate | |
Fields
| |
Instances
| FromJSON ResourceTemplate Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ResourceTemplate # parseJSONList :: Value -> Parser [ResourceTemplate] # | |||||
| ToJSON ResourceTemplate Source # | |||||
Defined in MCP.Types Methods toJSON :: ResourceTemplate -> Value # toEncoding :: ResourceTemplate -> Encoding # toJSONList :: [ResourceTemplate] -> Value # toEncodingList :: [ResourceTemplate] -> Encoding # omitField :: ResourceTemplate -> Bool # | |||||
| Generic ResourceTemplate Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ResourceTemplate -> Rep ResourceTemplate x # to :: Rep ResourceTemplate x -> ResourceTemplate # | |||||
| Show ResourceTemplate Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ResourceTemplate -> ShowS # show :: ResourceTemplate -> String # showList :: [ResourceTemplate] -> ShowS # | |||||
| Eq ResourceTemplate Source # | |||||
Defined in MCP.Types Methods (==) :: ResourceTemplate -> ResourceTemplate -> Bool # (/=) :: ResourceTemplate -> ResourceTemplate -> Bool # | |||||
| type Rep ResourceTemplate Source # | |||||
Defined in MCP.Types type Rep ResourceTemplate = D1 ('MetaData "ResourceTemplate" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ResourceTemplate" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "uriTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "mimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "annotations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Annotations)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))))) | |||||
data ResourceReference Source #
A reference to a resource or resource template definition.
Used in completion requests and other contexts where a resource needs to be referenced.
Constructors
| ResourceReference | |
Instances
| FromJSON ResourceReference Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ResourceReference # parseJSONList :: Value -> Parser [ResourceReference] # | |||||
| ToJSON ResourceReference Source # | |||||
Defined in MCP.Types Methods toJSON :: ResourceReference -> Value # toEncoding :: ResourceReference -> Encoding # toJSONList :: [ResourceReference] -> Value # toEncodingList :: [ResourceReference] -> Encoding # omitField :: ResourceReference -> Bool # | |||||
| Generic ResourceReference Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ResourceReference -> Rep ResourceReference x # to :: Rep ResourceReference x -> ResourceReference # | |||||
| Show ResourceReference Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ResourceReference -> ShowS # show :: ResourceReference -> String # showList :: [ResourceReference] -> ShowS # | |||||
| Eq ResourceReference Source # | |||||
Defined in MCP.Types Methods (==) :: ResourceReference -> ResourceReference -> Bool # (/=) :: ResourceReference -> ResourceReference -> Bool # | |||||
| type Rep ResourceReference Source # | |||||
Defined in MCP.Types type Rep ResourceReference = D1 ('MetaData "ResourceReference" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ResourceReference" 'PrefixI 'True) (S1 ('MetaSel ('Just "refType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
type ResourceTemplateReference = ResourceReference Source #
A reference to a resource template definition.
This is an alias for ResourceReference in the new schema.
Tool Types
data ToolAnnotations Source #
Additional properties describing a Tool to clients.
NOTE: all properties in ToolAnnotations are **hints**.
They are not guaranteed to provide a faithful description of
tool behavior (including descriptive properties like title).
Clients should never make tool use decisions based on ToolAnnotations received from untrusted servers.
Constructors
| ToolAnnotations | |
Fields
| |
Instances
| FromJSON ToolAnnotations Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ToolAnnotations # parseJSONList :: Value -> Parser [ToolAnnotations] # | |||||
| ToJSON ToolAnnotations Source # | |||||
Defined in MCP.Types Methods toJSON :: ToolAnnotations -> Value # toEncoding :: ToolAnnotations -> Encoding # toJSONList :: [ToolAnnotations] -> Value # toEncodingList :: [ToolAnnotations] -> Encoding # omitField :: ToolAnnotations -> Bool # | |||||
| Generic ToolAnnotations Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ToolAnnotations -> Rep ToolAnnotations x # to :: Rep ToolAnnotations x -> ToolAnnotations # | |||||
| Show ToolAnnotations Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ToolAnnotations -> ShowS # show :: ToolAnnotations -> String # showList :: [ToolAnnotations] -> ShowS # | |||||
| Eq ToolAnnotations Source # | |||||
Defined in MCP.Types Methods (==) :: ToolAnnotations -> ToolAnnotations -> Bool # (/=) :: ToolAnnotations -> ToolAnnotations -> Bool # | |||||
| type Rep ToolAnnotations Source # | |||||
Defined in MCP.Types type Rep ToolAnnotations = D1 ('MetaData "ToolAnnotations" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ToolAnnotations" 'PrefixI 'True) ((S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "readOnlyHint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "destructiveHint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "idempotentHint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "openWorldHint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))) | |||||
Definition for a tool the client can call.
Tools are functions that the MCP server exposes to clients, allowing the client to perform specific actions or retrieve information.
Constructors
| Tool | |
Fields
| |
Instances
| FromJSON Tool Source # | |||||
| ToJSON Tool Source # | |||||
| Generic Tool Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show Tool Source # | |||||
| Eq Tool Source # | |||||
| type Rep Tool Source # | |||||
Defined in MCP.Types type Rep Tool = D1 ('MetaData "Tool" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "Tool" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "inputSchema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputSchema) :*: S1 ('MetaSel ('Just "outputSchema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InputSchema))) :*: (S1 ('MetaSel ('Just "annotations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ToolAnnotations)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))))) | |||||
data InputSchema Source #
Input schema for a tool.
A JSON Schema object defining the expected parameters for the tool.
Constructors
| InputSchema | |
Fields
| |
Instances
| FromJSON InputSchema Source # | |||||
Defined in MCP.Types | |||||
| ToJSON InputSchema Source # | |||||
Defined in MCP.Types Methods toJSON :: InputSchema -> Value # toEncoding :: InputSchema -> Encoding # toJSONList :: [InputSchema] -> Value # toEncodingList :: [InputSchema] -> Encoding # omitField :: InputSchema -> Bool # | |||||
| Generic InputSchema Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show InputSchema Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> InputSchema -> ShowS # show :: InputSchema -> String # showList :: [InputSchema] -> ShowS # | |||||
| Eq InputSchema Source # | |||||
Defined in MCP.Types | |||||
| type Rep InputSchema Source # | |||||
Defined in MCP.Types type Rep InputSchema = D1 ('MetaData "InputSchema" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "InputSchema" 'PrefixI 'True) (S1 ('MetaSel ('Just "schemaType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "properties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text Value))) :*: S1 ('MetaSel ('Just "required") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Text]))))) | |||||
Prompt Types
data PromptArgument Source #
Describes an argument that a prompt can accept.
Prompt arguments allow prompts to be parameterized with user-provided values.
Constructors
| PromptArgument | |
Instances
| FromJSON PromptArgument Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser PromptArgument # parseJSONList :: Value -> Parser [PromptArgument] # | |||||
| ToJSON PromptArgument Source # | |||||
Defined in MCP.Types Methods toJSON :: PromptArgument -> Value # toEncoding :: PromptArgument -> Encoding # toJSONList :: [PromptArgument] -> Value # toEncodingList :: [PromptArgument] -> Encoding # omitField :: PromptArgument -> Bool # | |||||
| Generic PromptArgument Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: PromptArgument -> Rep PromptArgument x # to :: Rep PromptArgument x -> PromptArgument # | |||||
| Show PromptArgument Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> PromptArgument -> ShowS # show :: PromptArgument -> String # showList :: [PromptArgument] -> ShowS # | |||||
| Eq PromptArgument Source # | |||||
Defined in MCP.Types Methods (==) :: PromptArgument -> PromptArgument -> Bool # (/=) :: PromptArgument -> PromptArgument -> Bool # | |||||
| type Rep PromptArgument Source # | |||||
Defined in MCP.Types type Rep PromptArgument = D1 ('MetaData "PromptArgument" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "PromptArgument" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "required") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) | |||||
A prompt or prompt template that the server offers.
Prompts are reusable message templates that can be parameterized with arguments to generate specific conversations.
Constructors
| Prompt | |
Fields
| |
Instances
| FromJSON Prompt Source # | |||||
| ToJSON Prompt Source # | |||||
| Generic Prompt Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show Prompt Source # | |||||
| Eq Prompt Source # | |||||
| type Rep Prompt Source # | |||||
Defined in MCP.Types type Rep Prompt = D1 ('MetaData "Prompt" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "Prompt" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [PromptArgument])) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))))) | |||||
data PromptMessage Source #
Describes a message returned as part of a prompt.
This is similar to SamplingMessage, but also supports the embedding of
resources from the MCP server.
Constructors
| PromptMessage | |
Fields
| |
Instances
| FromJSON PromptMessage Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser PromptMessage # parseJSONList :: Value -> Parser [PromptMessage] # | |||||
| ToJSON PromptMessage Source # | |||||
Defined in MCP.Types Methods toJSON :: PromptMessage -> Value # toEncoding :: PromptMessage -> Encoding # toJSONList :: [PromptMessage] -> Value # toEncodingList :: [PromptMessage] -> Encoding # omitField :: PromptMessage -> Bool # | |||||
| Generic PromptMessage Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show PromptMessage Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> PromptMessage -> ShowS # show :: PromptMessage -> String # showList :: [PromptMessage] -> ShowS # | |||||
| Eq PromptMessage Source # | |||||
Defined in MCP.Types Methods (==) :: PromptMessage -> PromptMessage -> Bool # (/=) :: PromptMessage -> PromptMessage -> Bool # | |||||
| type Rep PromptMessage Source # | |||||
Defined in MCP.Types type Rep PromptMessage = D1 ('MetaData "PromptMessage" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "PromptMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "role") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Role) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContentBlock))) | |||||
data PromptReference Source #
Identifies a prompt.
Used in completion requests and other contexts where a prompt needs to be referenced.
Constructors
| PromptReference | |
Instances
| FromJSON PromptReference Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser PromptReference # parseJSONList :: Value -> Parser [PromptReference] # | |||||
| ToJSON PromptReference Source # | |||||
Defined in MCP.Types Methods toJSON :: PromptReference -> Value # toEncoding :: PromptReference -> Encoding # toJSONList :: [PromptReference] -> Value # toEncodingList :: [PromptReference] -> Encoding # omitField :: PromptReference -> Bool # | |||||
| Generic PromptReference Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: PromptReference -> Rep PromptReference x # to :: Rep PromptReference x -> PromptReference # | |||||
| Show PromptReference Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> PromptReference -> ShowS # show :: PromptReference -> String # showList :: [PromptReference] -> ShowS # | |||||
| Eq PromptReference Source # | |||||
Defined in MCP.Types Methods (==) :: PromptReference -> PromptReference -> Bool # (/=) :: PromptReference -> PromptReference -> Bool # | |||||
| type Rep PromptReference Source # | |||||
Defined in MCP.Types type Rep PromptReference = D1 ('MetaData "PromptReference" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "PromptReference" 'PrefixI 'True) (S1 ('MetaSel ('Just "refType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) | |||||
Model Types
Hints to use for model selection.
Keys not declared here are currently left unspecified by the spec and are up to the client to interpret.
Constructors
| ModelHint | |
Fields
| |
data ModelPreferences Source #
The server's preferences for model selection, requested of the client during sampling.
Because LLMs can vary along multiple dimensions, choosing the "best" model is rarely straightforward. Different models excel in different areas—some are faster but less capable, others are more capable but more expensive, and so on. This interface allows servers to express their priorities across multiple dimensions to help clients make an appropriate selection for their use case.
These preferences are always advisory. The client MAY ignore them. It is also up to the client to decide how to interpret these preferences and how to balance them against other considerations.
Constructors
| ModelPreferences | |
Fields
| |
Instances
| FromJSON ModelPreferences Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ModelPreferences # parseJSONList :: Value -> Parser [ModelPreferences] # | |||||
| ToJSON ModelPreferences Source # | |||||
Defined in MCP.Types Methods toJSON :: ModelPreferences -> Value # toEncoding :: ModelPreferences -> Encoding # toJSONList :: [ModelPreferences] -> Value # toEncodingList :: [ModelPreferences] -> Encoding # omitField :: ModelPreferences -> Bool # | |||||
| Generic ModelPreferences Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ModelPreferences -> Rep ModelPreferences x # to :: Rep ModelPreferences x -> ModelPreferences # | |||||
| Show ModelPreferences Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ModelPreferences -> ShowS # show :: ModelPreferences -> String # showList :: [ModelPreferences] -> ShowS # | |||||
| Eq ModelPreferences Source # | |||||
Defined in MCP.Types Methods (==) :: ModelPreferences -> ModelPreferences -> Bool # (/=) :: ModelPreferences -> ModelPreferences -> Bool # | |||||
| type Rep ModelPreferences Source # | |||||
Defined in MCP.Types type Rep ModelPreferences = D1 ('MetaData "ModelPreferences" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ModelPreferences" 'PrefixI 'True) ((S1 ('MetaSel ('Just "hints") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [ModelHint])) :*: S1 ('MetaSel ('Just "costPriority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "speedPriority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "intelligencePriority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double))))) | |||||
data IncludeContext Source #
Include context options for sampling.
A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request.
Constructors
| AllServers | |
| None | |
| ThisServer |
Instances
| FromJSON IncludeContext Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser IncludeContext # parseJSONList :: Value -> Parser [IncludeContext] # | |||||
| ToJSON IncludeContext Source # | |||||
Defined in MCP.Types Methods toJSON :: IncludeContext -> Value # toEncoding :: IncludeContext -> Encoding # toJSONList :: [IncludeContext] -> Value # toEncodingList :: [IncludeContext] -> Encoding # omitField :: IncludeContext -> Bool # | |||||
| Generic IncludeContext Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: IncludeContext -> Rep IncludeContext x # to :: Rep IncludeContext x -> IncludeContext # | |||||
| Show IncludeContext Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> IncludeContext -> ShowS # show :: IncludeContext -> String # showList :: [IncludeContext] -> ShowS # | |||||
| Eq IncludeContext Source # | |||||
Defined in MCP.Types Methods (==) :: IncludeContext -> IncludeContext -> Bool # (/=) :: IncludeContext -> IncludeContext -> Bool # | |||||
| type Rep IncludeContext Source # | |||||
Defined in MCP.Types type Rep IncludeContext = D1 ('MetaData "IncludeContext" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "AllServers" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "None" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ThisServer" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data SamplingMessage Source #
Describes a message issued to or received from an LLM API.
Used in sampling requests to represent the conversation history that should be sent to the language model.
Constructors
| SamplingMessage | |
Instances
| FromJSON SamplingMessage Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser SamplingMessage # parseJSONList :: Value -> Parser [SamplingMessage] # | |||||
| ToJSON SamplingMessage Source # | |||||
Defined in MCP.Types Methods toJSON :: SamplingMessage -> Value # toEncoding :: SamplingMessage -> Encoding # toJSONList :: [SamplingMessage] -> Value # toEncodingList :: [SamplingMessage] -> Encoding # omitField :: SamplingMessage -> Bool # | |||||
| Generic SamplingMessage Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: SamplingMessage -> Rep SamplingMessage x # to :: Rep SamplingMessage x -> SamplingMessage # | |||||
| Show SamplingMessage Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> SamplingMessage -> ShowS # show :: SamplingMessage -> String # showList :: [SamplingMessage] -> ShowS # | |||||
| Eq SamplingMessage Source # | |||||
Defined in MCP.Types Methods (==) :: SamplingMessage -> SamplingMessage -> Bool # (/=) :: SamplingMessage -> SamplingMessage -> Bool # | |||||
| type Rep SamplingMessage Source # | |||||
Defined in MCP.Types type Rep SamplingMessage = D1 ('MetaData "SamplingMessage" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "SamplingMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "role") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Role) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Content))) | |||||
Capability Types
data ClientCapabilities Source #
Capabilities a client may support.
Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
Constructors
| ClientCapabilities | |
Fields
| |
Instances
| FromJSON ClientCapabilities Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ClientCapabilities # parseJSONList :: Value -> Parser [ClientCapabilities] # | |||||
| ToJSON ClientCapabilities Source # | |||||
Defined in MCP.Types Methods toJSON :: ClientCapabilities -> Value # toEncoding :: ClientCapabilities -> Encoding # toJSONList :: [ClientCapabilities] -> Value # toEncodingList :: [ClientCapabilities] -> Encoding # omitField :: ClientCapabilities -> Bool # | |||||
| Generic ClientCapabilities Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ClientCapabilities -> Rep ClientCapabilities x # to :: Rep ClientCapabilities x -> ClientCapabilities # | |||||
| Show ClientCapabilities Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ClientCapabilities -> ShowS # show :: ClientCapabilities -> String # showList :: [ClientCapabilities] -> ShowS # | |||||
| Eq ClientCapabilities Source # | |||||
Defined in MCP.Types Methods (==) :: ClientCapabilities -> ClientCapabilities -> Bool # (/=) :: ClientCapabilities -> ClientCapabilities -> Bool # | |||||
| type Rep ClientCapabilities Source # | |||||
Defined in MCP.Types type Rep ClientCapabilities = D1 ('MetaData "ClientCapabilities" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ClientCapabilities" 'PrefixI 'True) ((S1 ('MetaSel ('Just "roots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe RootsCapability)) :*: S1 ('MetaSel ('Just "sampling") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SamplingCapability))) :*: (S1 ('MetaSel ('Just "elicitation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ElicitationCapability)) :*: S1 ('MetaSel ('Just "experimental") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ExperimentalCapability))))) | |||||
data ServerCapabilities Source #
Capabilities that a server may support.
Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
Constructors
| ServerCapabilities | |
Fields
| |
Instances
| FromJSON ServerCapabilities Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ServerCapabilities # parseJSONList :: Value -> Parser [ServerCapabilities] # | |||||
| ToJSON ServerCapabilities Source # | |||||
Defined in MCP.Types Methods toJSON :: ServerCapabilities -> Value # toEncoding :: ServerCapabilities -> Encoding # toJSONList :: [ServerCapabilities] -> Value # toEncodingList :: [ServerCapabilities] -> Encoding # omitField :: ServerCapabilities -> Bool # | |||||
| Generic ServerCapabilities Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ServerCapabilities -> Rep ServerCapabilities x # to :: Rep ServerCapabilities x -> ServerCapabilities # | |||||
| Show ServerCapabilities Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ServerCapabilities -> ShowS # show :: ServerCapabilities -> String # showList :: [ServerCapabilities] -> ShowS # | |||||
| Eq ServerCapabilities Source # | |||||
Defined in MCP.Types Methods (==) :: ServerCapabilities -> ServerCapabilities -> Bool # (/=) :: ServerCapabilities -> ServerCapabilities -> Bool # | |||||
| type Rep ServerCapabilities Source # | |||||
Defined in MCP.Types type Rep ServerCapabilities = D1 ('MetaData "ServerCapabilities" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ServerCapabilities" 'PrefixI 'True) ((S1 ('MetaSel ('Just "logging") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe LoggingCapability)) :*: (S1 ('MetaSel ('Just "prompts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PromptsCapability)) :*: S1 ('MetaSel ('Just "resources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ResourcesCapability)))) :*: (S1 ('MetaSel ('Just "tools") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ToolsCapability)) :*: (S1 ('MetaSel ('Just "completions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CompletionsCapability)) :*: S1 ('MetaSel ('Just "experimental") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ExperimentalCapability)))))) | |||||
data RootsCapability where Source #
Client capability for root directory management.
Present if the client supports listing roots (directories or files that the server can operate on).
Constructors
| RootsCapability | |
Fields
| |
Instances
| FromJSON RootsCapability Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser RootsCapability # parseJSONList :: Value -> Parser [RootsCapability] # | |||||
| ToJSON RootsCapability Source # | |||||
Defined in MCP.Types Methods toJSON :: RootsCapability -> Value # toEncoding :: RootsCapability -> Encoding # toJSONList :: [RootsCapability] -> Value # toEncodingList :: [RootsCapability] -> Encoding # omitField :: RootsCapability -> Bool # | |||||
| Generic RootsCapability Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: RootsCapability -> Rep RootsCapability x # to :: Rep RootsCapability x -> RootsCapability # | |||||
| Show RootsCapability Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> RootsCapability -> ShowS # show :: RootsCapability -> String # showList :: [RootsCapability] -> ShowS # | |||||
| Eq RootsCapability Source # | |||||
Defined in MCP.Types Methods (==) :: RootsCapability -> RootsCapability -> Bool # (/=) :: RootsCapability -> RootsCapability -> Bool # | |||||
| type Rep RootsCapability Source # | |||||
Defined in MCP.Types type Rep RootsCapability = D1 ('MetaData "RootsCapability" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "RootsCapability" 'PrefixI 'True) (S1 ('MetaSel ('Just "listChanged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) | |||||
data PromptsCapability where Source #
Server capability for prompt management.
Present if the server offers any prompt templates.
Constructors
| PromptsCapability | |
Fields
| |
Instances
| FromJSON PromptsCapability Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser PromptsCapability # parseJSONList :: Value -> Parser [PromptsCapability] # | |||||
| ToJSON PromptsCapability Source # | |||||
Defined in MCP.Types Methods toJSON :: PromptsCapability -> Value # toEncoding :: PromptsCapability -> Encoding # toJSONList :: [PromptsCapability] -> Value # toEncodingList :: [PromptsCapability] -> Encoding # omitField :: PromptsCapability -> Bool # | |||||
| Generic PromptsCapability Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: PromptsCapability -> Rep PromptsCapability x # to :: Rep PromptsCapability x -> PromptsCapability # | |||||
| Show PromptsCapability Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> PromptsCapability -> ShowS # show :: PromptsCapability -> String # showList :: [PromptsCapability] -> ShowS # | |||||
| Eq PromptsCapability Source # | |||||
Defined in MCP.Types Methods (==) :: PromptsCapability -> PromptsCapability -> Bool # (/=) :: PromptsCapability -> PromptsCapability -> Bool # | |||||
| type Rep PromptsCapability Source # | |||||
Defined in MCP.Types type Rep PromptsCapability = D1 ('MetaData "PromptsCapability" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "PromptsCapability" 'PrefixI 'True) (S1 ('MetaSel ('Just "listChanged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) | |||||
data ResourcesCapability Source #
Server capability for resource management.
Present if the server offers any resources to read.
Constructors
| ResourcesCapability | |
Instances
| FromJSON ResourcesCapability Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ResourcesCapability # parseJSONList :: Value -> Parser [ResourcesCapability] # | |||||
| ToJSON ResourcesCapability Source # | |||||
Defined in MCP.Types Methods toJSON :: ResourcesCapability -> Value # toEncoding :: ResourcesCapability -> Encoding # toJSONList :: [ResourcesCapability] -> Value # toEncodingList :: [ResourcesCapability] -> Encoding # omitField :: ResourcesCapability -> Bool # | |||||
| Generic ResourcesCapability Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ResourcesCapability -> Rep ResourcesCapability x # to :: Rep ResourcesCapability x -> ResourcesCapability # | |||||
| Show ResourcesCapability Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ResourcesCapability -> ShowS # show :: ResourcesCapability -> String # showList :: [ResourcesCapability] -> ShowS # | |||||
| Eq ResourcesCapability Source # | |||||
Defined in MCP.Types Methods (==) :: ResourcesCapability -> ResourcesCapability -> Bool # (/=) :: ResourcesCapability -> ResourcesCapability -> Bool # | |||||
| type Rep ResourcesCapability Source # | |||||
Defined in MCP.Types type Rep ResourcesCapability = D1 ('MetaData "ResourcesCapability" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ResourcesCapability" 'PrefixI 'True) (S1 ('MetaSel ('Just "listChanged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "subscribe") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) | |||||
data ToolsCapability where Source #
Server capability for tool management.
Present if the server offers any tools to call.
Constructors
| ToolsCapability | |
Fields
| |
Instances
| FromJSON ToolsCapability Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ToolsCapability # parseJSONList :: Value -> Parser [ToolsCapability] # | |||||
| ToJSON ToolsCapability Source # | |||||
Defined in MCP.Types Methods toJSON :: ToolsCapability -> Value # toEncoding :: ToolsCapability -> Encoding # toJSONList :: [ToolsCapability] -> Value # toEncodingList :: [ToolsCapability] -> Encoding # omitField :: ToolsCapability -> Bool # | |||||
| Generic ToolsCapability Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ToolsCapability -> Rep ToolsCapability x # to :: Rep ToolsCapability x -> ToolsCapability # | |||||
| Show ToolsCapability Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ToolsCapability -> ShowS # show :: ToolsCapability -> String # showList :: [ToolsCapability] -> ShowS # | |||||
| Eq ToolsCapability Source # | |||||
Defined in MCP.Types Methods (==) :: ToolsCapability -> ToolsCapability -> Bool # (/=) :: ToolsCapability -> ToolsCapability -> Bool # | |||||
| type Rep ToolsCapability Source # | |||||
Defined in MCP.Types type Rep ToolsCapability = D1 ('MetaData "ToolsCapability" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ToolsCapability" 'PrefixI 'True) (S1 ('MetaSel ('Just "listChanged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) | |||||
data CompletionsCapability Source #
Server capability for argument autocompletion.
Present if the server supports argument autocompletion suggestions.
Constructors
| CompletionsCapability |
Instances
| FromJSON CompletionsCapability Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser CompletionsCapability # parseJSONList :: Value -> Parser [CompletionsCapability] # | |||||
| ToJSON CompletionsCapability Source # | |||||
Defined in MCP.Types Methods toJSON :: CompletionsCapability -> Value # toEncoding :: CompletionsCapability -> Encoding # toJSONList :: [CompletionsCapability] -> Value # toEncodingList :: [CompletionsCapability] -> Encoding # omitField :: CompletionsCapability -> Bool # | |||||
| Generic CompletionsCapability Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: CompletionsCapability -> Rep CompletionsCapability x # to :: Rep CompletionsCapability x -> CompletionsCapability # | |||||
| Show CompletionsCapability Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> CompletionsCapability -> ShowS # show :: CompletionsCapability -> String # showList :: [CompletionsCapability] -> ShowS # | |||||
| Eq CompletionsCapability Source # | |||||
Defined in MCP.Types Methods (==) :: CompletionsCapability -> CompletionsCapability -> Bool # (/=) :: CompletionsCapability -> CompletionsCapability -> Bool # | |||||
| type Rep CompletionsCapability Source # | |||||
data LoggingCapability Source #
Server capability for logging.
Present if the server supports sending log messages to the client.
Constructors
| LoggingCapability |
Instances
| FromJSON LoggingCapability Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser LoggingCapability # parseJSONList :: Value -> Parser [LoggingCapability] # | |||||
| ToJSON LoggingCapability Source # | |||||
Defined in MCP.Types Methods toJSON :: LoggingCapability -> Value # toEncoding :: LoggingCapability -> Encoding # toJSONList :: [LoggingCapability] -> Value # toEncodingList :: [LoggingCapability] -> Encoding # omitField :: LoggingCapability -> Bool # | |||||
| Generic LoggingCapability Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: LoggingCapability -> Rep LoggingCapability x # to :: Rep LoggingCapability x -> LoggingCapability # | |||||
| Show LoggingCapability Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> LoggingCapability -> ShowS # show :: LoggingCapability -> String # showList :: [LoggingCapability] -> ShowS # | |||||
| Eq LoggingCapability Source # | |||||
Defined in MCP.Types Methods (==) :: LoggingCapability -> LoggingCapability -> Bool # (/=) :: LoggingCapability -> LoggingCapability -> Bool # | |||||
| type Rep LoggingCapability Source # | |||||
data SamplingCapability Source #
Client capability for LLM sampling.
Present if the client supports sampling from an LLM.
Constructors
| SamplingCapability |
Instances
| FromJSON SamplingCapability Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser SamplingCapability # parseJSONList :: Value -> Parser [SamplingCapability] # | |||||
| ToJSON SamplingCapability Source # | |||||
Defined in MCP.Types Methods toJSON :: SamplingCapability -> Value # toEncoding :: SamplingCapability -> Encoding # toJSONList :: [SamplingCapability] -> Value # toEncodingList :: [SamplingCapability] -> Encoding # omitField :: SamplingCapability -> Bool # | |||||
| Generic SamplingCapability Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: SamplingCapability -> Rep SamplingCapability x # to :: Rep SamplingCapability x -> SamplingCapability # | |||||
| Show SamplingCapability Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> SamplingCapability -> ShowS # show :: SamplingCapability -> String # showList :: [SamplingCapability] -> ShowS # | |||||
| Eq SamplingCapability Source # | |||||
Defined in MCP.Types Methods (==) :: SamplingCapability -> SamplingCapability -> Bool # (/=) :: SamplingCapability -> SamplingCapability -> Bool # | |||||
| type Rep SamplingCapability Source # | |||||
data ElicitationCapability Source #
Client capability for elicitation.
Present if the client supports elicitation from the server.
Constructors
| ElicitationCapability |
Instances
| FromJSON ElicitationCapability Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ElicitationCapability # parseJSONList :: Value -> Parser [ElicitationCapability] # | |||||
| ToJSON ElicitationCapability Source # | |||||
Defined in MCP.Types Methods toJSON :: ElicitationCapability -> Value # toEncoding :: ElicitationCapability -> Encoding # toJSONList :: [ElicitationCapability] -> Value # toEncodingList :: [ElicitationCapability] -> Encoding # omitField :: ElicitationCapability -> Bool # | |||||
| Generic ElicitationCapability Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ElicitationCapability -> Rep ElicitationCapability x # to :: Rep ElicitationCapability x -> ElicitationCapability # | |||||
| Show ElicitationCapability Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ElicitationCapability -> ShowS # show :: ElicitationCapability -> String # showList :: [ElicitationCapability] -> ShowS # | |||||
| Eq ElicitationCapability Source # | |||||
Defined in MCP.Types Methods (==) :: ElicitationCapability -> ElicitationCapability -> Bool # (/=) :: ElicitationCapability -> ElicitationCapability -> Bool # | |||||
| type Rep ElicitationCapability Source # | |||||
newtype ExperimentalCapability Source #
Experimental, non-standard capabilities.
Experimental capabilities that the client or server supports. This is not a closed set: any client or server can define its own, additional capabilities.
Constructors
| ExperimentalCapability (Map Text Value) |
Instances
| FromJSON ExperimentalCapability Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser ExperimentalCapability # parseJSONList :: Value -> Parser [ExperimentalCapability] # | |||||
| ToJSON ExperimentalCapability Source # | |||||
Defined in MCP.Types Methods toJSON :: ExperimentalCapability -> Value # toEncoding :: ExperimentalCapability -> Encoding # toJSONList :: [ExperimentalCapability] -> Value # toEncodingList :: [ExperimentalCapability] -> Encoding # omitField :: ExperimentalCapability -> Bool # | |||||
| Generic ExperimentalCapability Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: ExperimentalCapability -> Rep ExperimentalCapability x # to :: Rep ExperimentalCapability x -> ExperimentalCapability # | |||||
| Show ExperimentalCapability Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> ExperimentalCapability -> ShowS # show :: ExperimentalCapability -> String # showList :: [ExperimentalCapability] -> ShowS # | |||||
| Eq ExperimentalCapability Source # | |||||
Defined in MCP.Types Methods (==) :: ExperimentalCapability -> ExperimentalCapability -> Bool # (/=) :: ExperimentalCapability -> ExperimentalCapability -> Bool # | |||||
| type Rep ExperimentalCapability Source # | |||||
Defined in MCP.Types type Rep ExperimentalCapability = D1 ('MetaData "ExperimentalCapability" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'True) (C1 ('MetaCons "ExperimentalCapability" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text Value)))) | |||||
Implementation Info
data BaseMetadata Source #
Base interface for metadata with name (identifier) and title (display name) properties.
This is the base type for various entities that need both programmatic identifiers and human-readable names.
Constructors
| BaseMetadata | |
Fields
| |
Instances
| FromJSON BaseMetadata Source # | |||||
Defined in MCP.Types | |||||
| ToJSON BaseMetadata Source # | |||||
Defined in MCP.Types Methods toJSON :: BaseMetadata -> Value # toEncoding :: BaseMetadata -> Encoding # toJSONList :: [BaseMetadata] -> Value # toEncodingList :: [BaseMetadata] -> Encoding # omitField :: BaseMetadata -> Bool # | |||||
| Generic BaseMetadata Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show BaseMetadata Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> BaseMetadata -> ShowS # show :: BaseMetadata -> String # showList :: [BaseMetadata] -> ShowS # | |||||
| Eq BaseMetadata Source # | |||||
Defined in MCP.Types | |||||
| type Rep BaseMetadata Source # | |||||
Defined in MCP.Types type Rep BaseMetadata = D1 ('MetaData "BaseMetadata" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "BaseMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) | |||||
data Implementation Source #
Describes the name and version of an MCP implementation.
Used to identify the client or server software in initialization.
Constructors
| Implementation | |
Instances
| FromJSON Implementation Source # | |||||
Defined in MCP.Types Methods parseJSON :: Value -> Parser Implementation # parseJSONList :: Value -> Parser [Implementation] # | |||||
| ToJSON Implementation Source # | |||||
Defined in MCP.Types Methods toJSON :: Implementation -> Value # toEncoding :: Implementation -> Encoding # toJSONList :: [Implementation] -> Value # toEncodingList :: [Implementation] -> Encoding # omitField :: Implementation -> Bool # | |||||
| Generic Implementation Source # | |||||
Defined in MCP.Types Associated Types
Methods from :: Implementation -> Rep Implementation x # to :: Rep Implementation x -> Implementation # | |||||
| Show Implementation Source # | |||||
Defined in MCP.Types Methods showsPrec :: Int -> Implementation -> ShowS # show :: Implementation -> String # showList :: [Implementation] -> ShowS # | |||||
| Eq Implementation Source # | |||||
Defined in MCP.Types Methods (==) :: Implementation -> Implementation -> Bool # (/=) :: Implementation -> Implementation -> Bool # | |||||
| type Rep Implementation Source # | |||||
Defined in MCP.Types type Rep Implementation = D1 ('MetaData "Implementation" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "Implementation" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) | |||||
Roots
Represents a root directory or file that the server can operate on.
Roots allow servers to ask for specific directories or files to operate on. A common example for roots is providing a set of repositories or directories a server should operate on.
Constructors
| Root | |
Fields
| |
Instances
| FromJSON Root Source # | |||||
| ToJSON Root Source # | |||||
| Generic Root Source # | |||||
Defined in MCP.Types Associated Types
| |||||
| Show Root Source # | |||||
| Eq Root Source # | |||||
| type Rep Root Source # | |||||
Defined in MCP.Types type Rep Root = D1 ('MetaData "Root" "MCP.Types" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "Root" 'PrefixI 'True) (S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
Result Types
Base result type.
All MCP result types include optional metadata that can be used to attach additional information to responses.
Constructors
| Result | |
Metadata for results.
This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.