| 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.Protocol
Description
This module defines the Model Context Protocol (MCP) request, response,
and notification types. The underlying JSON-RPC 2.0 transport types are
re-exported from the jsonrpc package.
Synopsis
- module JSONRPC
- data InitializeRequest = InitializeRequest {}
- data InitializeParams = InitializeParams {}
- data PingRequest = PingRequest {
- id :: RequestId
- params :: Maybe PingParams
- data PingParams where
- PingParams :: {..} -> PingParams
- data ListResourcesRequest = ListResourcesRequest {}
- data ListResourcesParams where
- ListResourcesParams :: {..} -> ListResourcesParams
- data ListResourceTemplatesRequest = ListResourceTemplatesRequest {}
- data ListResourceTemplatesParams where
- data ReadResourceRequest = ReadResourceRequest {}
- data ReadResourceParams where
- ReadResourceParams :: {..} -> ReadResourceParams
- data SubscribeRequest = SubscribeRequest {
- id :: RequestId
- params :: SubscribeParams
- data SubscribeParams where
- SubscribeParams :: {..} -> SubscribeParams
- data UnsubscribeRequest = UnsubscribeRequest {}
- data UnsubscribeParams where
- UnsubscribeParams :: {..} -> UnsubscribeParams
- data ListPromptsRequest = ListPromptsRequest {}
- data ListPromptsParams where
- ListPromptsParams :: {..} -> ListPromptsParams
- data GetPromptRequest = GetPromptRequest {
- id :: RequestId
- params :: GetPromptParams
- data GetPromptParams = GetPromptParams {}
- data ListToolsRequest = ListToolsRequest {}
- data ListToolsParams where
- ListToolsParams :: {..} -> ListToolsParams
- data CallToolRequest = CallToolRequest {
- id :: RequestId
- params :: CallToolParams
- data CallToolParams = CallToolParams {}
- data SetLevelRequest = SetLevelRequest {
- id :: RequestId
- params :: SetLevelParams
- data SetLevelParams where
- SetLevelParams :: {..} -> SetLevelParams
- data CompleteRequest = CompleteRequest {
- id :: RequestId
- params :: CompleteParams
- data CompleteParams = CompleteParams {}
- data CompletionContext = CompletionContext {}
- data CompletionArgument = CompletionArgument {}
- data Reference
- data CreateMessageRequest = CreateMessageRequest {}
- data CreateMessageParams = CreateMessageParams {}
- data ListRootsRequest = ListRootsRequest {}
- data ListRootsParams where
- ListRootsParams :: {..} -> ListRootsParams
- data ElicitRequest = ElicitRequest {
- id :: RequestId
- params :: ElicitParams
- data ElicitParams = ElicitParams {}
- data PrimitiveSchemaDefinition
- = StringSchema { }
- | NumberSchema { }
- | BooleanSchema {
- schemaType :: Text
- title :: Maybe Text
- description :: Maybe Text
- defaultValue :: Maybe Bool
- | EnumSchema { }
- data InitializeResult = InitializeResult {}
- data ListResourcesResult = ListResourcesResult {}
- data ListResourceTemplatesResult = ListResourceTemplatesResult {}
- data ReadResourceResult = ReadResourceResult {
- contents :: [ResourceContents]
- _meta :: Maybe Metadata
- data ListPromptsResult = ListPromptsResult {}
- data GetPromptResult = GetPromptResult {
- description :: Maybe Text
- messages :: [PromptMessage]
- _meta :: Maybe Metadata
- data ListToolsResult = ListToolsResult {}
- data CallToolResult = CallToolResult {}
- data CompleteResult = CompleteResult {}
- data CompletionResult = CompletionResult {}
- data CreateMessageResult = CreateMessageResult {}
- data ListRootsResult = ListRootsResult {}
- data ElicitResult = ElicitResult {}
- data CancelledNotification = CancelledNotification {}
- data CancelledParams = CancelledParams {}
- data InitializedNotification = InitializedNotification {}
- data InitializedParams where
- InitializedParams :: {..} -> InitializedParams
- data ProgressNotification = ProgressNotification {}
- data ProgressParams = ProgressParams {
- progressToken :: ProgressToken
- progress :: Double
- total :: Maybe Double
- message :: Maybe Text
- data ResourceListChangedNotification = ResourceListChangedNotification {}
- data ResourceUpdatedNotification = ResourceUpdatedNotification {}
- data ResourceUpdatedParams = ResourceUpdatedParams {}
- data PromptListChangedNotification = PromptListChangedNotification {}
- data ToolListChangedNotification = ToolListChangedNotification {}
- data LoggingMessageNotification = LoggingMessageNotification {}
- data LoggingMessageParams = LoggingMessageParams {}
- data RootsListChangedNotification = RootsListChangedNotification {}
- data ClientRequest
- = InitializeReq InitializeRequest
- | PingReq PingRequest
- | ListResourcesReq ListResourcesRequest
- | ListResourceTemplatesReq ListResourceTemplatesRequest
- | ReadResourceReq ReadResourceRequest
- | SubscribeReq SubscribeRequest
- | UnsubscribeReq UnsubscribeRequest
- | ListPromptsReq ListPromptsRequest
- | GetPromptReq GetPromptRequest
- | ListToolsReq ListToolsRequest
- | CallToolReq CallToolRequest
- | SetLevelReq SetLevelRequest
- | CompleteReq CompleteRequest
- data ServerRequest
- data ClientNotification
- data ServerNotification
- = CancelledServerNotif CancelledNotification
- | ProgressServerNotif ProgressNotification
- | ResourceListChangedNotif ResourceListChangedNotification
- | ResourceUpdatedNotif ResourceUpdatedNotification
- | PromptListChangedNotif PromptListChangedNotification
- | ToolListChangedNotif ToolListChangedNotification
- | LoggingMessageNotif LoggingMessageNotification
- pROTOCOL_VERSION :: Text
JSON-RPC types (re-exported from JSONRPC)
module JSONRPC
Client Request Types
data InitializeRequest Source #
This request is sent from the client to the server when it first connects, asking it to begin initialization.
Constructors
| InitializeRequest | |
Fields
| |
Instances
data InitializeParams Source #
Initialize request parameters.
Parameters sent by the client during initialization.
Constructors
| InitializeParams | |
Fields
| |
Instances
| FromJSON InitializeParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser InitializeParams # parseJSONList :: Value -> Parser [InitializeParams] # | |||||
| ToJSON InitializeParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: InitializeParams -> Value # toEncoding :: InitializeParams -> Encoding # toJSONList :: [InitializeParams] -> Value # toEncodingList :: [InitializeParams] -> Encoding # omitField :: InitializeParams -> Bool # | |||||
| Generic InitializeParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: InitializeParams -> Rep InitializeParams x # to :: Rep InitializeParams x -> InitializeParams # | |||||
| Show InitializeParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> InitializeParams -> ShowS # show :: InitializeParams -> String # showList :: [InitializeParams] -> ShowS # | |||||
| Eq InitializeParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: InitializeParams -> InitializeParams -> Bool # (/=) :: InitializeParams -> InitializeParams -> Bool # | |||||
| type Rep InitializeParams Source # | |||||
Defined in MCP.Protocol type Rep InitializeParams = D1 ('MetaData "InitializeParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "InitializeParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "protocolVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "capabilities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ClientCapabilities) :*: S1 ('MetaSel ('Just "clientInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Implementation)))) | |||||
data PingRequest Source #
A ping, issued by either the server or the client, to check that the other party is still alive.
The receiver must promptly respond, or else may be disconnected.
Constructors
| PingRequest | |
Fields
| |
Instances
| FromJSON PingRequest Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON PingRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: PingRequest -> Value # toEncoding :: PingRequest -> Encoding # toJSONList :: [PingRequest] -> Value # toEncodingList :: [PingRequest] -> Encoding # omitField :: PingRequest -> Bool # | |||||
| Generic PingRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show PingRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> PingRequest -> ShowS # show :: PingRequest -> String # showList :: [PingRequest] -> ShowS # | |||||
| Eq PingRequest Source # | |||||
Defined in MCP.Protocol | |||||
| IsJSONRPCRequest PingRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods requestMethod :: Proxy PingRequest -> Text # toJSONRPCRequest :: PingRequest -> JSONRPCRequest # fromJSONRPCRequest :: JSONRPCRequest -> Either String PingRequest # | |||||
| type Rep PingRequest Source # | |||||
Defined in MCP.Protocol type Rep PingRequest = D1 ('MetaData "PingRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "PingRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PingParams)))) | |||||
| type RequestParams PingRequest Source # | |||||
Defined in MCP.Protocol | |||||
data PingParams where Source #
Ping request parameters.
Parameters for a ping request (typically just metadata).
Constructors
| PingParams | |
Fields
| |
Instances
| FromJSON PingParams Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON PingParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: PingParams -> Value # toEncoding :: PingParams -> Encoding # toJSONList :: [PingParams] -> Value # toEncodingList :: [PingParams] -> Encoding # omitField :: PingParams -> Bool # | |||||
| Generic PingParams Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show PingParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> PingParams -> ShowS # show :: PingParams -> String # showList :: [PingParams] -> ShowS # | |||||
| Eq PingParams Source # | |||||
Defined in MCP.Protocol | |||||
| type Rep PingParams Source # | |||||
Defined in MCP.Protocol type Rep PingParams = D1 ('MetaData "PingParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "PingParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))) | |||||
data ListResourcesRequest Source #
Sent from the client to request a list of resources the server has.
Constructors
| ListResourcesRequest | |
Fields | |
Instances
| FromJSON ListResourcesRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListResourcesRequest # parseJSONList :: Value -> Parser [ListResourcesRequest] # | |||||
| ToJSON ListResourcesRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListResourcesRequest -> Value # toEncoding :: ListResourcesRequest -> Encoding # toJSONList :: [ListResourcesRequest] -> Value # toEncodingList :: [ListResourcesRequest] -> Encoding # omitField :: ListResourcesRequest -> Bool # | |||||
| Generic ListResourcesRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListResourcesRequest -> Rep ListResourcesRequest x # to :: Rep ListResourcesRequest x -> ListResourcesRequest # | |||||
| Show ListResourcesRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListResourcesRequest -> ShowS # show :: ListResourcesRequest -> String # showList :: [ListResourcesRequest] -> ShowS # | |||||
| Eq ListResourcesRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListResourcesRequest -> ListResourcesRequest -> Bool # (/=) :: ListResourcesRequest -> ListResourcesRequest -> Bool # | |||||
| IsJSONRPCRequest ListResourcesRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep ListResourcesRequest Source # | |||||
Defined in MCP.Protocol type Rep ListResourcesRequest = D1 ('MetaData "ListResourcesRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListResourcesRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ListResourcesParams)))) | |||||
| type RequestParams ListResourcesRequest Source # | |||||
Defined in MCP.Protocol | |||||
data ListResourcesParams where Source #
List resources request parameters.
Parameters for requesting a paginated list of resources.
Constructors
| ListResourcesParams | |
Fields
| |
Instances
| FromJSON ListResourcesParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListResourcesParams # parseJSONList :: Value -> Parser [ListResourcesParams] # | |||||
| ToJSON ListResourcesParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListResourcesParams -> Value # toEncoding :: ListResourcesParams -> Encoding # toJSONList :: [ListResourcesParams] -> Value # toEncodingList :: [ListResourcesParams] -> Encoding # omitField :: ListResourcesParams -> Bool # | |||||
| Generic ListResourcesParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListResourcesParams -> Rep ListResourcesParams x # to :: Rep ListResourcesParams x -> ListResourcesParams # | |||||
| Show ListResourcesParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListResourcesParams -> ShowS # show :: ListResourcesParams -> String # showList :: [ListResourcesParams] -> ShowS # | |||||
| Eq ListResourcesParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListResourcesParams -> ListResourcesParams -> Bool # (/=) :: ListResourcesParams -> ListResourcesParams -> Bool # | |||||
| type Rep ListResourcesParams Source # | |||||
Defined in MCP.Protocol type Rep ListResourcesParams = D1 ('MetaData "ListResourcesParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListResourcesParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "cursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Cursor)))) | |||||
data ListResourceTemplatesRequest Source #
Sent from the client to request a list of resource templates the server has.
Constructors
| ListResourceTemplatesRequest | |
Fields | |
Instances
| FromJSON ListResourceTemplatesRequest Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON ListResourceTemplatesRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListResourceTemplatesRequest -> Value # toEncoding :: ListResourceTemplatesRequest -> Encoding # toJSONList :: [ListResourceTemplatesRequest] -> Value # toEncodingList :: [ListResourceTemplatesRequest] -> Encoding # | |||||
| Generic ListResourceTemplatesRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show ListResourceTemplatesRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListResourceTemplatesRequest -> ShowS # show :: ListResourceTemplatesRequest -> String # showList :: [ListResourceTemplatesRequest] -> ShowS # | |||||
| Eq ListResourceTemplatesRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListResourceTemplatesRequest -> ListResourceTemplatesRequest -> Bool # (/=) :: ListResourceTemplatesRequest -> ListResourceTemplatesRequest -> Bool # | |||||
| IsJSONRPCRequest ListResourceTemplatesRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep ListResourceTemplatesRequest Source # | |||||
Defined in MCP.Protocol type Rep ListResourceTemplatesRequest = D1 ('MetaData "ListResourceTemplatesRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListResourceTemplatesRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ListResourceTemplatesParams)))) | |||||
| type RequestParams ListResourceTemplatesRequest Source # | |||||
Defined in MCP.Protocol type RequestParams ListResourceTemplatesRequest = RequestParamType (Rep ListResourceTemplatesRequest) | |||||
data ListResourceTemplatesParams where Source #
List resource templates request parameters.
Parameters for requesting a paginated list of resource templates.
Constructors
| ListResourceTemplatesParams | |
Fields
| |
Instances
| FromJSON ListResourceTemplatesParams Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON ListResourceTemplatesParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListResourceTemplatesParams -> Value # toEncoding :: ListResourceTemplatesParams -> Encoding # toJSONList :: [ListResourceTemplatesParams] -> Value # toEncodingList :: [ListResourceTemplatesParams] -> Encoding # | |||||
| Generic ListResourceTemplatesParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListResourceTemplatesParams -> Rep ListResourceTemplatesParams x # to :: Rep ListResourceTemplatesParams x -> ListResourceTemplatesParams # | |||||
| Show ListResourceTemplatesParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListResourceTemplatesParams -> ShowS # show :: ListResourceTemplatesParams -> String # showList :: [ListResourceTemplatesParams] -> ShowS # | |||||
| Eq ListResourceTemplatesParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListResourceTemplatesParams -> ListResourceTemplatesParams -> Bool # (/=) :: ListResourceTemplatesParams -> ListResourceTemplatesParams -> Bool # | |||||
| type Rep ListResourceTemplatesParams Source # | |||||
Defined in MCP.Protocol type Rep ListResourceTemplatesParams = D1 ('MetaData "ListResourceTemplatesParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListResourceTemplatesParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "cursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Cursor)))) | |||||
data ReadResourceRequest Source #
Sent from the client to the server, to read a specific resource URI.
Constructors
| ReadResourceRequest | |
Fields
| |
Instances
| FromJSON ReadResourceRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ReadResourceRequest # parseJSONList :: Value -> Parser [ReadResourceRequest] # | |||||
| ToJSON ReadResourceRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ReadResourceRequest -> Value # toEncoding :: ReadResourceRequest -> Encoding # toJSONList :: [ReadResourceRequest] -> Value # toEncodingList :: [ReadResourceRequest] -> Encoding # omitField :: ReadResourceRequest -> Bool # | |||||
| Generic ReadResourceRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ReadResourceRequest -> Rep ReadResourceRequest x # to :: Rep ReadResourceRequest x -> ReadResourceRequest # | |||||
| Show ReadResourceRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ReadResourceRequest -> ShowS # show :: ReadResourceRequest -> String # showList :: [ReadResourceRequest] -> ShowS # | |||||
| Eq ReadResourceRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: ReadResourceRequest -> ReadResourceRequest -> Bool # (/=) :: ReadResourceRequest -> ReadResourceRequest -> Bool # | |||||
| IsJSONRPCRequest ReadResourceRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep ReadResourceRequest Source # | |||||
Defined in MCP.Protocol type Rep ReadResourceRequest = D1 ('MetaData "ReadResourceRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ReadResourceRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReadResourceParams))) | |||||
| type RequestParams ReadResourceRequest Source # | |||||
Defined in MCP.Protocol | |||||
data ReadResourceParams where Source #
Read resource request parameters.
Parameters for reading a specific resource.
Constructors
| ReadResourceParams | |
Fields
| |
Instances
| FromJSON ReadResourceParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ReadResourceParams # parseJSONList :: Value -> Parser [ReadResourceParams] # | |||||
| ToJSON ReadResourceParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ReadResourceParams -> Value # toEncoding :: ReadResourceParams -> Encoding # toJSONList :: [ReadResourceParams] -> Value # toEncodingList :: [ReadResourceParams] -> Encoding # omitField :: ReadResourceParams -> Bool # | |||||
| Generic ReadResourceParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ReadResourceParams -> Rep ReadResourceParams x # to :: Rep ReadResourceParams x -> ReadResourceParams # | |||||
| Show ReadResourceParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ReadResourceParams -> ShowS # show :: ReadResourceParams -> String # showList :: [ReadResourceParams] -> ShowS # | |||||
| Eq ReadResourceParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: ReadResourceParams -> ReadResourceParams -> Bool # (/=) :: ReadResourceParams -> ReadResourceParams -> Bool # | |||||
| type Rep ReadResourceParams Source # | |||||
Defined in MCP.Protocol type Rep ReadResourceParams = D1 ('MetaData "ReadResourceParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ReadResourceParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data SubscribeRequest Source #
Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.
Constructors
| SubscribeRequest | |
Fields
| |
Instances
| FromJSON SubscribeRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser SubscribeRequest # parseJSONList :: Value -> Parser [SubscribeRequest] # | |||||
| ToJSON SubscribeRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: SubscribeRequest -> Value # toEncoding :: SubscribeRequest -> Encoding # toJSONList :: [SubscribeRequest] -> Value # toEncodingList :: [SubscribeRequest] -> Encoding # omitField :: SubscribeRequest -> Bool # | |||||
| Generic SubscribeRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: SubscribeRequest -> Rep SubscribeRequest x # to :: Rep SubscribeRequest x -> SubscribeRequest # | |||||
| Show SubscribeRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> SubscribeRequest -> ShowS # show :: SubscribeRequest -> String # showList :: [SubscribeRequest] -> ShowS # | |||||
| Eq SubscribeRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: SubscribeRequest -> SubscribeRequest -> Bool # (/=) :: SubscribeRequest -> SubscribeRequest -> Bool # | |||||
| IsJSONRPCRequest SubscribeRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods requestMethod :: Proxy SubscribeRequest -> Text # toJSONRPCRequest :: SubscribeRequest -> JSONRPCRequest # fromJSONRPCRequest :: JSONRPCRequest -> Either String SubscribeRequest # | |||||
| type Rep SubscribeRequest Source # | |||||
Defined in MCP.Protocol type Rep SubscribeRequest = D1 ('MetaData "SubscribeRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "SubscribeRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SubscribeParams))) | |||||
| type RequestParams SubscribeRequest Source # | |||||
Defined in MCP.Protocol | |||||
data SubscribeParams where Source #
Subscribe request parameters.
Parameters for subscribing to resource updates.
Constructors
| SubscribeParams | |
Fields
| |
Instances
| FromJSON SubscribeParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser SubscribeParams # parseJSONList :: Value -> Parser [SubscribeParams] # | |||||
| ToJSON SubscribeParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: SubscribeParams -> Value # toEncoding :: SubscribeParams -> Encoding # toJSONList :: [SubscribeParams] -> Value # toEncodingList :: [SubscribeParams] -> Encoding # omitField :: SubscribeParams -> Bool # | |||||
| Generic SubscribeParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: SubscribeParams -> Rep SubscribeParams x # to :: Rep SubscribeParams x -> SubscribeParams # | |||||
| Show SubscribeParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> SubscribeParams -> ShowS # show :: SubscribeParams -> String # showList :: [SubscribeParams] -> ShowS # | |||||
| Eq SubscribeParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: SubscribeParams -> SubscribeParams -> Bool # (/=) :: SubscribeParams -> SubscribeParams -> Bool # | |||||
| type Rep SubscribeParams Source # | |||||
Defined in MCP.Protocol type Rep SubscribeParams = D1 ('MetaData "SubscribeParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "SubscribeParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data UnsubscribeRequest Source #
Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.
Constructors
| UnsubscribeRequest | |
Fields
| |
Instances
| FromJSON UnsubscribeRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser UnsubscribeRequest # parseJSONList :: Value -> Parser [UnsubscribeRequest] # | |||||
| ToJSON UnsubscribeRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: UnsubscribeRequest -> Value # toEncoding :: UnsubscribeRequest -> Encoding # toJSONList :: [UnsubscribeRequest] -> Value # toEncodingList :: [UnsubscribeRequest] -> Encoding # omitField :: UnsubscribeRequest -> Bool # | |||||
| Generic UnsubscribeRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: UnsubscribeRequest -> Rep UnsubscribeRequest x # to :: Rep UnsubscribeRequest x -> UnsubscribeRequest # | |||||
| Show UnsubscribeRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> UnsubscribeRequest -> ShowS # show :: UnsubscribeRequest -> String # showList :: [UnsubscribeRequest] -> ShowS # | |||||
| Eq UnsubscribeRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: UnsubscribeRequest -> UnsubscribeRequest -> Bool # (/=) :: UnsubscribeRequest -> UnsubscribeRequest -> Bool # | |||||
| IsJSONRPCRequest UnsubscribeRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep UnsubscribeRequest Source # | |||||
Defined in MCP.Protocol type Rep UnsubscribeRequest = D1 ('MetaData "UnsubscribeRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "UnsubscribeRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnsubscribeParams))) | |||||
| type RequestParams UnsubscribeRequest Source # | |||||
Defined in MCP.Protocol | |||||
data UnsubscribeParams where Source #
Unsubscribe request parameters.
Parameters for unsubscribing from resource updates.
Constructors
| UnsubscribeParams | |
Fields
| |
Instances
| FromJSON UnsubscribeParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser UnsubscribeParams # parseJSONList :: Value -> Parser [UnsubscribeParams] # | |||||
| ToJSON UnsubscribeParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: UnsubscribeParams -> Value # toEncoding :: UnsubscribeParams -> Encoding # toJSONList :: [UnsubscribeParams] -> Value # toEncodingList :: [UnsubscribeParams] -> Encoding # omitField :: UnsubscribeParams -> Bool # | |||||
| Generic UnsubscribeParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: UnsubscribeParams -> Rep UnsubscribeParams x # to :: Rep UnsubscribeParams x -> UnsubscribeParams # | |||||
| Show UnsubscribeParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> UnsubscribeParams -> ShowS # show :: UnsubscribeParams -> String # showList :: [UnsubscribeParams] -> ShowS # | |||||
| Eq UnsubscribeParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: UnsubscribeParams -> UnsubscribeParams -> Bool # (/=) :: UnsubscribeParams -> UnsubscribeParams -> Bool # | |||||
| type Rep UnsubscribeParams Source # | |||||
Defined in MCP.Protocol type Rep UnsubscribeParams = D1 ('MetaData "UnsubscribeParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "UnsubscribeParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data ListPromptsRequest Source #
Sent from the client to request a list of prompts and prompt templates the server has.
Constructors
| ListPromptsRequest | |
Fields
| |
Instances
| FromJSON ListPromptsRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListPromptsRequest # parseJSONList :: Value -> Parser [ListPromptsRequest] # | |||||
| ToJSON ListPromptsRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListPromptsRequest -> Value # toEncoding :: ListPromptsRequest -> Encoding # toJSONList :: [ListPromptsRequest] -> Value # toEncodingList :: [ListPromptsRequest] -> Encoding # omitField :: ListPromptsRequest -> Bool # | |||||
| Generic ListPromptsRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListPromptsRequest -> Rep ListPromptsRequest x # to :: Rep ListPromptsRequest x -> ListPromptsRequest # | |||||
| Show ListPromptsRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListPromptsRequest -> ShowS # show :: ListPromptsRequest -> String # showList :: [ListPromptsRequest] -> ShowS # | |||||
| Eq ListPromptsRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListPromptsRequest -> ListPromptsRequest -> Bool # (/=) :: ListPromptsRequest -> ListPromptsRequest -> Bool # | |||||
| IsJSONRPCRequest ListPromptsRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep ListPromptsRequest Source # | |||||
Defined in MCP.Protocol type Rep ListPromptsRequest = D1 ('MetaData "ListPromptsRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListPromptsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ListPromptsParams)))) | |||||
| type RequestParams ListPromptsRequest Source # | |||||
Defined in MCP.Protocol | |||||
data ListPromptsParams where Source #
List prompts request parameters.
Parameters for requesting a paginated list of prompts.
Constructors
| ListPromptsParams | |
Fields
| |
Instances
| FromJSON ListPromptsParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListPromptsParams # parseJSONList :: Value -> Parser [ListPromptsParams] # | |||||
| ToJSON ListPromptsParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListPromptsParams -> Value # toEncoding :: ListPromptsParams -> Encoding # toJSONList :: [ListPromptsParams] -> Value # toEncodingList :: [ListPromptsParams] -> Encoding # omitField :: ListPromptsParams -> Bool # | |||||
| Generic ListPromptsParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListPromptsParams -> Rep ListPromptsParams x # to :: Rep ListPromptsParams x -> ListPromptsParams # | |||||
| Show ListPromptsParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListPromptsParams -> ShowS # show :: ListPromptsParams -> String # showList :: [ListPromptsParams] -> ShowS # | |||||
| Eq ListPromptsParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListPromptsParams -> ListPromptsParams -> Bool # (/=) :: ListPromptsParams -> ListPromptsParams -> Bool # | |||||
| type Rep ListPromptsParams Source # | |||||
Defined in MCP.Protocol type Rep ListPromptsParams = D1 ('MetaData "ListPromptsParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListPromptsParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "cursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Cursor)))) | |||||
data GetPromptRequest Source #
Used by the client to get a prompt provided by the server.
Constructors
| GetPromptRequest | |
Fields
| |
Instances
| FromJSON GetPromptRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser GetPromptRequest # parseJSONList :: Value -> Parser [GetPromptRequest] # | |||||
| ToJSON GetPromptRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: GetPromptRequest -> Value # toEncoding :: GetPromptRequest -> Encoding # toJSONList :: [GetPromptRequest] -> Value # toEncodingList :: [GetPromptRequest] -> Encoding # omitField :: GetPromptRequest -> Bool # | |||||
| Generic GetPromptRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: GetPromptRequest -> Rep GetPromptRequest x # to :: Rep GetPromptRequest x -> GetPromptRequest # | |||||
| Show GetPromptRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> GetPromptRequest -> ShowS # show :: GetPromptRequest -> String # showList :: [GetPromptRequest] -> ShowS # | |||||
| Eq GetPromptRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: GetPromptRequest -> GetPromptRequest -> Bool # (/=) :: GetPromptRequest -> GetPromptRequest -> Bool # | |||||
| IsJSONRPCRequest GetPromptRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods requestMethod :: Proxy GetPromptRequest -> Text # toJSONRPCRequest :: GetPromptRequest -> JSONRPCRequest # fromJSONRPCRequest :: JSONRPCRequest -> Either String GetPromptRequest # | |||||
| type Rep GetPromptRequest Source # | |||||
Defined in MCP.Protocol type Rep GetPromptRequest = D1 ('MetaData "GetPromptRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "GetPromptRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GetPromptParams))) | |||||
| type RequestParams GetPromptRequest Source # | |||||
Defined in MCP.Protocol | |||||
data GetPromptParams Source #
Get prompt request parameters.
Parameters for retrieving a specific prompt with optional arguments.
Constructors
| GetPromptParams | |
Instances
| FromJSON GetPromptParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser GetPromptParams # parseJSONList :: Value -> Parser [GetPromptParams] # | |||||
| ToJSON GetPromptParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: GetPromptParams -> Value # toEncoding :: GetPromptParams -> Encoding # toJSONList :: [GetPromptParams] -> Value # toEncodingList :: [GetPromptParams] -> Encoding # omitField :: GetPromptParams -> Bool # | |||||
| Generic GetPromptParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: GetPromptParams -> Rep GetPromptParams x # to :: Rep GetPromptParams x -> GetPromptParams # | |||||
| Show GetPromptParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> GetPromptParams -> ShowS # show :: GetPromptParams -> String # showList :: [GetPromptParams] -> ShowS # | |||||
| Eq GetPromptParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: GetPromptParams -> GetPromptParams -> Bool # (/=) :: GetPromptParams -> GetPromptParams -> Bool # | |||||
| type Rep GetPromptParams Source # | |||||
Defined in MCP.Protocol type Rep GetPromptParams = D1 ('MetaData "GetPromptParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "GetPromptParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text Text))))) | |||||
data ListToolsRequest Source #
Sent from the client to request a list of tools the server has.
Constructors
| ListToolsRequest | |
Fields
| |
Instances
| FromJSON ListToolsRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListToolsRequest # parseJSONList :: Value -> Parser [ListToolsRequest] # | |||||
| ToJSON ListToolsRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListToolsRequest -> Value # toEncoding :: ListToolsRequest -> Encoding # toJSONList :: [ListToolsRequest] -> Value # toEncodingList :: [ListToolsRequest] -> Encoding # omitField :: ListToolsRequest -> Bool # | |||||
| Generic ListToolsRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListToolsRequest -> Rep ListToolsRequest x # to :: Rep ListToolsRequest x -> ListToolsRequest # | |||||
| Show ListToolsRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListToolsRequest -> ShowS # show :: ListToolsRequest -> String # showList :: [ListToolsRequest] -> ShowS # | |||||
| Eq ListToolsRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListToolsRequest -> ListToolsRequest -> Bool # (/=) :: ListToolsRequest -> ListToolsRequest -> Bool # | |||||
| IsJSONRPCRequest ListToolsRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods requestMethod :: Proxy ListToolsRequest -> Text # toJSONRPCRequest :: ListToolsRequest -> JSONRPCRequest # fromJSONRPCRequest :: JSONRPCRequest -> Either String ListToolsRequest # | |||||
| type Rep ListToolsRequest Source # | |||||
Defined in MCP.Protocol type Rep ListToolsRequest = D1 ('MetaData "ListToolsRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListToolsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ListToolsParams)))) | |||||
| type RequestParams ListToolsRequest Source # | |||||
Defined in MCP.Protocol | |||||
data ListToolsParams where Source #
List tools request parameters.
Parameters for requesting a paginated list of tools.
Constructors
| ListToolsParams | |
Fields
| |
Instances
| FromJSON ListToolsParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListToolsParams # parseJSONList :: Value -> Parser [ListToolsParams] # | |||||
| ToJSON ListToolsParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListToolsParams -> Value # toEncoding :: ListToolsParams -> Encoding # toJSONList :: [ListToolsParams] -> Value # toEncodingList :: [ListToolsParams] -> Encoding # omitField :: ListToolsParams -> Bool # | |||||
| Generic ListToolsParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListToolsParams -> Rep ListToolsParams x # to :: Rep ListToolsParams x -> ListToolsParams # | |||||
| Show ListToolsParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListToolsParams -> ShowS # show :: ListToolsParams -> String # showList :: [ListToolsParams] -> ShowS # | |||||
| Eq ListToolsParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListToolsParams -> ListToolsParams -> Bool # (/=) :: ListToolsParams -> ListToolsParams -> Bool # | |||||
| type Rep ListToolsParams Source # | |||||
Defined in MCP.Protocol type Rep ListToolsParams = D1 ('MetaData "ListToolsParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListToolsParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "cursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Cursor)))) | |||||
data CallToolRequest Source #
Used by the client to invoke a tool provided by the server.
Constructors
| CallToolRequest | |
Fields
| |
Instances
| FromJSON CallToolRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CallToolRequest # parseJSONList :: Value -> Parser [CallToolRequest] # | |||||
| ToJSON CallToolRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CallToolRequest -> Value # toEncoding :: CallToolRequest -> Encoding # toJSONList :: [CallToolRequest] -> Value # toEncodingList :: [CallToolRequest] -> Encoding # omitField :: CallToolRequest -> Bool # | |||||
| Generic CallToolRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CallToolRequest -> Rep CallToolRequest x # to :: Rep CallToolRequest x -> CallToolRequest # | |||||
| Show CallToolRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CallToolRequest -> ShowS # show :: CallToolRequest -> String # showList :: [CallToolRequest] -> ShowS # | |||||
| Eq CallToolRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: CallToolRequest -> CallToolRequest -> Bool # (/=) :: CallToolRequest -> CallToolRequest -> Bool # | |||||
| IsJSONRPCRequest CallToolRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods requestMethod :: Proxy CallToolRequest -> Text # toJSONRPCRequest :: CallToolRequest -> JSONRPCRequest # fromJSONRPCRequest :: JSONRPCRequest -> Either String CallToolRequest # | |||||
| type Rep CallToolRequest Source # | |||||
Defined in MCP.Protocol type Rep CallToolRequest = D1 ('MetaData "CallToolRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CallToolRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CallToolParams))) | |||||
| type RequestParams CallToolRequest Source # | |||||
Defined in MCP.Protocol | |||||
data CallToolParams Source #
Call tool request parameters.
Parameters for invoking a specific tool with arguments.
Instances
| FromJSON CallToolParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CallToolParams # parseJSONList :: Value -> Parser [CallToolParams] # | |||||
| ToJSON CallToolParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CallToolParams -> Value # toEncoding :: CallToolParams -> Encoding # toJSONList :: [CallToolParams] -> Value # toEncodingList :: [CallToolParams] -> Encoding # omitField :: CallToolParams -> Bool # | |||||
| Generic CallToolParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CallToolParams -> Rep CallToolParams x # to :: Rep CallToolParams x -> CallToolParams # | |||||
| Show CallToolParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CallToolParams -> ShowS # show :: CallToolParams -> String # showList :: [CallToolParams] -> ShowS # | |||||
| Eq CallToolParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: CallToolParams -> CallToolParams -> Bool # (/=) :: CallToolParams -> CallToolParams -> Bool # | |||||
| Ord CallToolParams Source # | |||||
Defined in MCP.Protocol Methods compare :: CallToolParams -> CallToolParams -> Ordering # (<) :: CallToolParams -> CallToolParams -> Bool # (<=) :: CallToolParams -> CallToolParams -> Bool # (>) :: CallToolParams -> CallToolParams -> Bool # (>=) :: CallToolParams -> CallToolParams -> Bool # max :: CallToolParams -> CallToolParams -> CallToolParams # min :: CallToolParams -> CallToolParams -> CallToolParams # | |||||
| type Rep CallToolParams Source # | |||||
Defined in MCP.Protocol type Rep CallToolParams = D1 ('MetaData "CallToolParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CallToolParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text Value))))) | |||||
data SetLevelRequest Source #
A request from the client to the server, to enable or adjust logging.
Constructors
| SetLevelRequest | |
Fields
| |
Instances
| FromJSON SetLevelRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser SetLevelRequest # parseJSONList :: Value -> Parser [SetLevelRequest] # | |||||
| ToJSON SetLevelRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: SetLevelRequest -> Value # toEncoding :: SetLevelRequest -> Encoding # toJSONList :: [SetLevelRequest] -> Value # toEncodingList :: [SetLevelRequest] -> Encoding # omitField :: SetLevelRequest -> Bool # | |||||
| Generic SetLevelRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: SetLevelRequest -> Rep SetLevelRequest x # to :: Rep SetLevelRequest x -> SetLevelRequest # | |||||
| Show SetLevelRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> SetLevelRequest -> ShowS # show :: SetLevelRequest -> String # showList :: [SetLevelRequest] -> ShowS # | |||||
| Eq SetLevelRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: SetLevelRequest -> SetLevelRequest -> Bool # (/=) :: SetLevelRequest -> SetLevelRequest -> Bool # | |||||
| IsJSONRPCRequest SetLevelRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods requestMethod :: Proxy SetLevelRequest -> Text # toJSONRPCRequest :: SetLevelRequest -> JSONRPCRequest # fromJSONRPCRequest :: JSONRPCRequest -> Either String SetLevelRequest # | |||||
| type Rep SetLevelRequest Source # | |||||
Defined in MCP.Protocol type Rep SetLevelRequest = D1 ('MetaData "SetLevelRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "SetLevelRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SetLevelParams))) | |||||
| type RequestParams SetLevelRequest Source # | |||||
Defined in MCP.Protocol | |||||
data SetLevelParams where Source #
Set level request parameters.
Parameters for setting the logging level.
Constructors
| SetLevelParams | |
Fields
| |
Instances
| FromJSON SetLevelParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser SetLevelParams # parseJSONList :: Value -> Parser [SetLevelParams] # | |||||
| ToJSON SetLevelParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: SetLevelParams -> Value # toEncoding :: SetLevelParams -> Encoding # toJSONList :: [SetLevelParams] -> Value # toEncodingList :: [SetLevelParams] -> Encoding # omitField :: SetLevelParams -> Bool # | |||||
| Generic SetLevelParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: SetLevelParams -> Rep SetLevelParams x # to :: Rep SetLevelParams x -> SetLevelParams # | |||||
| Show SetLevelParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> SetLevelParams -> ShowS # show :: SetLevelParams -> String # showList :: [SetLevelParams] -> ShowS # | |||||
| Eq SetLevelParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: SetLevelParams -> SetLevelParams -> Bool # (/=) :: SetLevelParams -> SetLevelParams -> Bool # | |||||
| type Rep SetLevelParams Source # | |||||
Defined in MCP.Protocol type Rep SetLevelParams = D1 ('MetaData "SetLevelParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "SetLevelParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "level") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LoggingLevel))) | |||||
data CompleteRequest Source #
A request from the client to the server, to ask for completion options.
Constructors
| CompleteRequest | |
Fields
| |
Instances
| FromJSON CompleteRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CompleteRequest # parseJSONList :: Value -> Parser [CompleteRequest] # | |||||
| ToJSON CompleteRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CompleteRequest -> Value # toEncoding :: CompleteRequest -> Encoding # toJSONList :: [CompleteRequest] -> Value # toEncodingList :: [CompleteRequest] -> Encoding # omitField :: CompleteRequest -> Bool # | |||||
| Generic CompleteRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CompleteRequest -> Rep CompleteRequest x # to :: Rep CompleteRequest x -> CompleteRequest # | |||||
| Show CompleteRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CompleteRequest -> ShowS # show :: CompleteRequest -> String # showList :: [CompleteRequest] -> ShowS # | |||||
| Eq CompleteRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: CompleteRequest -> CompleteRequest -> Bool # (/=) :: CompleteRequest -> CompleteRequest -> Bool # | |||||
| IsJSONRPCRequest CompleteRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods requestMethod :: Proxy CompleteRequest -> Text # toJSONRPCRequest :: CompleteRequest -> JSONRPCRequest # fromJSONRPCRequest :: JSONRPCRequest -> Either String CompleteRequest # | |||||
| type Rep CompleteRequest Source # | |||||
Defined in MCP.Protocol type Rep CompleteRequest = D1 ('MetaData "CompleteRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CompleteRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CompleteParams))) | |||||
| type RequestParams CompleteRequest Source # | |||||
Defined in MCP.Protocol | |||||
data CompleteParams Source #
Complete request parameters.
Parameters for requesting completion options.
Constructors
| CompleteParams | |
Fields
| |
Instances
| FromJSON CompleteParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CompleteParams # parseJSONList :: Value -> Parser [CompleteParams] # | |||||
| ToJSON CompleteParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CompleteParams -> Value # toEncoding :: CompleteParams -> Encoding # toJSONList :: [CompleteParams] -> Value # toEncodingList :: [CompleteParams] -> Encoding # omitField :: CompleteParams -> Bool # | |||||
| Generic CompleteParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CompleteParams -> Rep CompleteParams x # to :: Rep CompleteParams x -> CompleteParams # | |||||
| Show CompleteParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CompleteParams -> ShowS # show :: CompleteParams -> String # showList :: [CompleteParams] -> ShowS # | |||||
| Eq CompleteParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: CompleteParams -> CompleteParams -> Bool # (/=) :: CompleteParams -> CompleteParams -> Bool # | |||||
| type Rep CompleteParams Source # | |||||
Defined in MCP.Protocol type Rep CompleteParams = D1 ('MetaData "CompleteParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CompleteParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "ref") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Reference) :*: (S1 ('MetaSel ('Just "argument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CompletionArgument) :*: S1 ('MetaSel ('Just "context") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CompletionContext))))) | |||||
data CompletionContext Source #
Context for completion requests
Instances
| FromJSON CompletionContext Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CompletionContext # parseJSONList :: Value -> Parser [CompletionContext] # | |||||
| ToJSON CompletionContext Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CompletionContext -> Value # toEncoding :: CompletionContext -> Encoding # toJSONList :: [CompletionContext] -> Value # toEncodingList :: [CompletionContext] -> Encoding # omitField :: CompletionContext -> Bool # | |||||
| Generic CompletionContext Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CompletionContext -> Rep CompletionContext x # to :: Rep CompletionContext x -> CompletionContext # | |||||
| Show CompletionContext Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CompletionContext -> ShowS # show :: CompletionContext -> String # showList :: [CompletionContext] -> ShowS # | |||||
| Eq CompletionContext Source # | |||||
Defined in MCP.Protocol Methods (==) :: CompletionContext -> CompletionContext -> Bool # (/=) :: CompletionContext -> CompletionContext -> Bool # | |||||
| type Rep CompletionContext Source # | |||||
Defined in MCP.Protocol type Rep CompletionContext = D1 ('MetaData "CompletionContext" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CompletionContext" 'PrefixI 'True) (S1 ('MetaSel ('Just "arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text Text))))) | |||||
data CompletionArgument Source #
Completion argument.
Represents an argument for completion requests.
Constructors
| CompletionArgument | |
Instances
| FromJSON CompletionArgument Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CompletionArgument # parseJSONList :: Value -> Parser [CompletionArgument] # | |||||
| ToJSON CompletionArgument Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CompletionArgument -> Value # toEncoding :: CompletionArgument -> Encoding # toJSONList :: [CompletionArgument] -> Value # toEncodingList :: [CompletionArgument] -> Encoding # omitField :: CompletionArgument -> Bool # | |||||
| Generic CompletionArgument Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CompletionArgument -> Rep CompletionArgument x # to :: Rep CompletionArgument x -> CompletionArgument # | |||||
| Show CompletionArgument Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CompletionArgument -> ShowS # show :: CompletionArgument -> String # showList :: [CompletionArgument] -> ShowS # | |||||
| Eq CompletionArgument Source # | |||||
Defined in MCP.Protocol Methods (==) :: CompletionArgument -> CompletionArgument -> Bool # (/=) :: CompletionArgument -> CompletionArgument -> Bool # | |||||
| type Rep CompletionArgument Source # | |||||
Defined in MCP.Protocol type Rep CompletionArgument = D1 ('MetaData "CompletionArgument" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CompletionArgument" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
Reference to either a prompt or resource template.
Used in completion requests to specify what is being completed.
Instances
| FromJSON Reference Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON Reference Source # | |||||
| Generic Reference Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show Reference Source # | |||||
| Eq Reference Source # | |||||
| type Rep Reference Source # | |||||
Defined in MCP.Protocol type Rep Reference = D1 ('MetaData "Reference" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "PromptRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PromptReference)) :+: C1 ('MetaCons "ResourceTemplateRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResourceTemplateReference))) | |||||
Server Request Types
data CreateMessageRequest Source #
A request from the server to sample an LLM via the client.
The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.
Constructors
| CreateMessageRequest | |
Fields
| |
Instances
| FromJSON CreateMessageRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CreateMessageRequest # parseJSONList :: Value -> Parser [CreateMessageRequest] # | |||||
| ToJSON CreateMessageRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CreateMessageRequest -> Value # toEncoding :: CreateMessageRequest -> Encoding # toJSONList :: [CreateMessageRequest] -> Value # toEncodingList :: [CreateMessageRequest] -> Encoding # omitField :: CreateMessageRequest -> Bool # | |||||
| Generic CreateMessageRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CreateMessageRequest -> Rep CreateMessageRequest x # to :: Rep CreateMessageRequest x -> CreateMessageRequest # | |||||
| Show CreateMessageRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CreateMessageRequest -> ShowS # show :: CreateMessageRequest -> String # showList :: [CreateMessageRequest] -> ShowS # | |||||
| Eq CreateMessageRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: CreateMessageRequest -> CreateMessageRequest -> Bool # (/=) :: CreateMessageRequest -> CreateMessageRequest -> Bool # | |||||
| IsJSONRPCRequest CreateMessageRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep CreateMessageRequest Source # | |||||
Defined in MCP.Protocol type Rep CreateMessageRequest = D1 ('MetaData "CreateMessageRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CreateMessageRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CreateMessageParams))) | |||||
| type RequestParams CreateMessageRequest Source # | |||||
Defined in MCP.Protocol | |||||
data CreateMessageParams Source #
Create message request parameters.
Parameters for requesting LLM sampling from the client.
Constructors
| CreateMessageParams | |
Fields
| |
Instances
| FromJSON CreateMessageParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CreateMessageParams # parseJSONList :: Value -> Parser [CreateMessageParams] # | |||||
| ToJSON CreateMessageParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CreateMessageParams -> Value # toEncoding :: CreateMessageParams -> Encoding # toJSONList :: [CreateMessageParams] -> Value # toEncodingList :: [CreateMessageParams] -> Encoding # omitField :: CreateMessageParams -> Bool # | |||||
| Generic CreateMessageParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CreateMessageParams -> Rep CreateMessageParams x # to :: Rep CreateMessageParams x -> CreateMessageParams # | |||||
| Show CreateMessageParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CreateMessageParams -> ShowS # show :: CreateMessageParams -> String # showList :: [CreateMessageParams] -> ShowS # | |||||
| Eq CreateMessageParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: CreateMessageParams -> CreateMessageParams -> Bool # (/=) :: CreateMessageParams -> CreateMessageParams -> Bool # | |||||
| type Rep CreateMessageParams Source # | |||||
Defined in MCP.Protocol type Rep CreateMessageParams = D1 ('MetaData "CreateMessageParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CreateMessageParams" 'PrefixI 'True) (((S1 ('MetaSel ('Just "maxTokens") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [SamplingMessage])) :*: (S1 ('MetaSel ('Just "modelPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ModelPreferences)) :*: S1 ('MetaSel ('Just "systemPrompt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "includeContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe IncludeContext)) :*: S1 ('MetaSel ('Just "temperature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "stopSequences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text Value))))))) | |||||
data ListRootsRequest Source #
Sent from the server to request a list of root URIs from the client.
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.
This request is typically used when the server needs to understand the file system structure or access specific locations that the client has permission to read from.
Constructors
| ListRootsRequest | |
Fields
| |
Instances
| FromJSON ListRootsRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListRootsRequest # parseJSONList :: Value -> Parser [ListRootsRequest] # | |||||
| ToJSON ListRootsRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListRootsRequest -> Value # toEncoding :: ListRootsRequest -> Encoding # toJSONList :: [ListRootsRequest] -> Value # toEncodingList :: [ListRootsRequest] -> Encoding # omitField :: ListRootsRequest -> Bool # | |||||
| Generic ListRootsRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListRootsRequest -> Rep ListRootsRequest x # to :: Rep ListRootsRequest x -> ListRootsRequest # | |||||
| Show ListRootsRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListRootsRequest -> ShowS # show :: ListRootsRequest -> String # showList :: [ListRootsRequest] -> ShowS # | |||||
| Eq ListRootsRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListRootsRequest -> ListRootsRequest -> Bool # (/=) :: ListRootsRequest -> ListRootsRequest -> Bool # | |||||
| IsJSONRPCRequest ListRootsRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods requestMethod :: Proxy ListRootsRequest -> Text # toJSONRPCRequest :: ListRootsRequest -> JSONRPCRequest # fromJSONRPCRequest :: JSONRPCRequest -> Either String ListRootsRequest # | |||||
| type Rep ListRootsRequest Source # | |||||
Defined in MCP.Protocol type Rep ListRootsRequest = D1 ('MetaData "ListRootsRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListRootsRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ListRootsParams)))) | |||||
| type RequestParams ListRootsRequest Source # | |||||
Defined in MCP.Protocol | |||||
data ListRootsParams where Source #
List roots request parameters.
Parameters for requesting the list of root directories or files.
Constructors
| ListRootsParams | |
Fields
| |
Instances
| FromJSON ListRootsParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListRootsParams # parseJSONList :: Value -> Parser [ListRootsParams] # | |||||
| ToJSON ListRootsParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListRootsParams -> Value # toEncoding :: ListRootsParams -> Encoding # toJSONList :: [ListRootsParams] -> Value # toEncodingList :: [ListRootsParams] -> Encoding # omitField :: ListRootsParams -> Bool # | |||||
| Generic ListRootsParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListRootsParams -> Rep ListRootsParams x # to :: Rep ListRootsParams x -> ListRootsParams # | |||||
| Show ListRootsParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListRootsParams -> ShowS # show :: ListRootsParams -> String # showList :: [ListRootsParams] -> ShowS # | |||||
| Eq ListRootsParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListRootsParams -> ListRootsParams -> Bool # (/=) :: ListRootsParams -> ListRootsParams -> Bool # | |||||
| type Rep ListRootsParams Source # | |||||
Defined in MCP.Protocol type Rep ListRootsParams = D1 ('MetaData "ListRootsParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListRootsParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))) | |||||
data ElicitRequest Source #
A request from the server to elicit additional information from the user via the client.
Constructors
| ElicitRequest | |
Fields
| |
Instances
| FromJSON ElicitRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ElicitRequest # parseJSONList :: Value -> Parser [ElicitRequest] # | |||||
| ToJSON ElicitRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ElicitRequest -> Value # toEncoding :: ElicitRequest -> Encoding # toJSONList :: [ElicitRequest] -> Value # toEncodingList :: [ElicitRequest] -> Encoding # omitField :: ElicitRequest -> Bool # | |||||
| Generic ElicitRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show ElicitRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ElicitRequest -> ShowS # show :: ElicitRequest -> String # showList :: [ElicitRequest] -> ShowS # | |||||
| Eq ElicitRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: ElicitRequest -> ElicitRequest -> Bool # (/=) :: ElicitRequest -> ElicitRequest -> Bool # | |||||
| IsJSONRPCRequest ElicitRequest Source # | |||||
Defined in MCP.Protocol Associated Types
Methods requestMethod :: Proxy ElicitRequest -> Text # toJSONRPCRequest :: ElicitRequest -> JSONRPCRequest # fromJSONRPCRequest :: JSONRPCRequest -> Either String ElicitRequest # | |||||
| type Rep ElicitRequest Source # | |||||
Defined in MCP.Protocol type Rep ElicitRequest = D1 ('MetaData "ElicitRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ElicitRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ElicitParams))) | |||||
| type RequestParams ElicitRequest Source # | |||||
Defined in MCP.Protocol | |||||
data ElicitParams Source #
Elicit request parameters.
Parameters for requesting additional information from the user via the client.
Constructors
| ElicitParams | |
Fields
| |
Instances
| FromJSON ElicitParams Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON ElicitParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ElicitParams -> Value # toEncoding :: ElicitParams -> Encoding # toJSONList :: [ElicitParams] -> Value # toEncodingList :: [ElicitParams] -> Encoding # omitField :: ElicitParams -> Bool # | |||||
| Generic ElicitParams Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show ElicitParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ElicitParams -> ShowS # show :: ElicitParams -> String # showList :: [ElicitParams] -> ShowS # | |||||
| Eq ElicitParams Source # | |||||
Defined in MCP.Protocol | |||||
| type Rep ElicitParams Source # | |||||
Defined in MCP.Protocol type Rep ElicitParams = D1 ('MetaData "ElicitParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ElicitParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "requestedSchema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text PrimitiveSchemaDefinition)) :*: S1 ('MetaSel ('Just "requiredFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Text]))))) | |||||
data PrimitiveSchemaDefinition Source #
Primitive schema definitions that only allow primitive types without nested objects or arrays.
Restricted schema definitions for elicitation requests.
Constructors
| StringSchema | |
| NumberSchema | |
| BooleanSchema | |
Fields
| |
| EnumSchema | |
Instances
| FromJSON PrimitiveSchemaDefinition Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser PrimitiveSchemaDefinition # parseJSONList :: Value -> Parser [PrimitiveSchemaDefinition] # | |||||
| ToJSON PrimitiveSchemaDefinition Source # | |||||
Defined in MCP.Protocol Methods toJSON :: PrimitiveSchemaDefinition -> Value # toEncoding :: PrimitiveSchemaDefinition -> Encoding # toJSONList :: [PrimitiveSchemaDefinition] -> Value # | |||||
| Generic PrimitiveSchemaDefinition Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: PrimitiveSchemaDefinition -> Rep PrimitiveSchemaDefinition x # to :: Rep PrimitiveSchemaDefinition x -> PrimitiveSchemaDefinition # | |||||
| Show PrimitiveSchemaDefinition Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> PrimitiveSchemaDefinition -> ShowS # show :: PrimitiveSchemaDefinition -> String # showList :: [PrimitiveSchemaDefinition] -> ShowS # | |||||
| Eq PrimitiveSchemaDefinition Source # | |||||
Defined in MCP.Protocol Methods (==) :: PrimitiveSchemaDefinition -> PrimitiveSchemaDefinition -> Bool # (/=) :: PrimitiveSchemaDefinition -> PrimitiveSchemaDefinition -> Bool # | |||||
| type Rep PrimitiveSchemaDefinition Source # | |||||
Defined in MCP.Protocol type Rep PrimitiveSchemaDefinition = D1 ('MetaData "PrimitiveSchemaDefinition" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) ((C1 ('MetaCons "StringSchema" 'PrefixI 'True) ((S1 ('MetaSel ('Just "schemaType") '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 "minLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "maxLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :+: C1 ('MetaCons "NumberSchema" 'PrefixI 'True) ((S1 ('MetaSel ('Just "schemaType") '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 "minimum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "maximum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)))))) :+: (C1 ('MetaCons "BooleanSchema" 'PrefixI 'True) ((S1 ('MetaSel ('Just "schemaType") '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 "defaultValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :+: C1 ('MetaCons "EnumSchema" 'PrefixI 'True) ((S1 ('MetaSel ('Just "schemaType") '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 "enum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "enumNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Text]))))))) | |||||
Response Types
data InitializeResult Source #
After receiving an initialize request from the client, the server sends this response.
Constructors
| InitializeResult | |
Fields
| |
Instances
| FromJSON InitializeResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser InitializeResult # parseJSONList :: Value -> Parser [InitializeResult] # | |||||
| ToJSON InitializeResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: InitializeResult -> Value # toEncoding :: InitializeResult -> Encoding # toJSONList :: [InitializeResult] -> Value # toEncodingList :: [InitializeResult] -> Encoding # omitField :: InitializeResult -> Bool # | |||||
| Generic InitializeResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: InitializeResult -> Rep InitializeResult x # to :: Rep InitializeResult x -> InitializeResult # | |||||
| Show InitializeResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> InitializeResult -> ShowS # show :: InitializeResult -> String # showList :: [InitializeResult] -> ShowS # | |||||
| Eq InitializeResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: InitializeResult -> InitializeResult -> Bool # (/=) :: InitializeResult -> InitializeResult -> Bool # | |||||
| type Rep InitializeResult Source # | |||||
Defined in MCP.Protocol type Rep InitializeResult = D1 ('MetaData "InitializeResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "InitializeResult" 'PrefixI 'True) ((S1 ('MetaSel ('Just "protocolVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "capabilities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ServerCapabilities)) :*: (S1 ('MetaSel ('Just "serverInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Implementation) :*: (S1 ('MetaSel ('Just "instructions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))))) | |||||
data ListResourcesResult Source #
The server's response to a resources/list request from the client.
Constructors
| ListResourcesResult | |
Instances
| FromJSON ListResourcesResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListResourcesResult # parseJSONList :: Value -> Parser [ListResourcesResult] # | |||||
| ToJSON ListResourcesResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListResourcesResult -> Value # toEncoding :: ListResourcesResult -> Encoding # toJSONList :: [ListResourcesResult] -> Value # toEncodingList :: [ListResourcesResult] -> Encoding # omitField :: ListResourcesResult -> Bool # | |||||
| Generic ListResourcesResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListResourcesResult -> Rep ListResourcesResult x # to :: Rep ListResourcesResult x -> ListResourcesResult # | |||||
| Show ListResourcesResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListResourcesResult -> ShowS # show :: ListResourcesResult -> String # showList :: [ListResourcesResult] -> ShowS # | |||||
| Eq ListResourcesResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListResourcesResult -> ListResourcesResult -> Bool # (/=) :: ListResourcesResult -> ListResourcesResult -> Bool # | |||||
| type Rep ListResourcesResult Source # | |||||
Defined in MCP.Protocol type Rep ListResourcesResult = D1 ('MetaData "ListResourcesResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListResourcesResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "resources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Resource]) :*: (S1 ('MetaSel ('Just "nextCursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Cursor)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
data ListResourceTemplatesResult Source #
The server's response to a resourcestemplateslist request from the client.
Constructors
| ListResourceTemplatesResult | |
Fields
| |
Instances
| FromJSON ListResourceTemplatesResult Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON ListResourceTemplatesResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListResourceTemplatesResult -> Value # toEncoding :: ListResourceTemplatesResult -> Encoding # toJSONList :: [ListResourceTemplatesResult] -> Value # toEncodingList :: [ListResourceTemplatesResult] -> Encoding # | |||||
| Generic ListResourceTemplatesResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListResourceTemplatesResult -> Rep ListResourceTemplatesResult x # to :: Rep ListResourceTemplatesResult x -> ListResourceTemplatesResult # | |||||
| Show ListResourceTemplatesResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListResourceTemplatesResult -> ShowS # show :: ListResourceTemplatesResult -> String # showList :: [ListResourceTemplatesResult] -> ShowS # | |||||
| Eq ListResourceTemplatesResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListResourceTemplatesResult -> ListResourceTemplatesResult -> Bool # (/=) :: ListResourceTemplatesResult -> ListResourceTemplatesResult -> Bool # | |||||
| type Rep ListResourceTemplatesResult Source # | |||||
Defined in MCP.Protocol type Rep ListResourceTemplatesResult = D1 ('MetaData "ListResourceTemplatesResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListResourceTemplatesResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceTemplates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ResourceTemplate]) :*: (S1 ('MetaSel ('Just "nextCursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Cursor)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
data ReadResourceResult Source #
The server's response to a resources/read request from the client.
Constructors
| ReadResourceResult | |
Fields
| |
Instances
| FromJSON ReadResourceResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ReadResourceResult # parseJSONList :: Value -> Parser [ReadResourceResult] # | |||||
| ToJSON ReadResourceResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ReadResourceResult -> Value # toEncoding :: ReadResourceResult -> Encoding # toJSONList :: [ReadResourceResult] -> Value # toEncodingList :: [ReadResourceResult] -> Encoding # omitField :: ReadResourceResult -> Bool # | |||||
| Generic ReadResourceResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ReadResourceResult -> Rep ReadResourceResult x # to :: Rep ReadResourceResult x -> ReadResourceResult # | |||||
| Show ReadResourceResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ReadResourceResult -> ShowS # show :: ReadResourceResult -> String # showList :: [ReadResourceResult] -> ShowS # | |||||
| Eq ReadResourceResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: ReadResourceResult -> ReadResourceResult -> Bool # (/=) :: ReadResourceResult -> ReadResourceResult -> Bool # | |||||
| type Rep ReadResourceResult Source # | |||||
Defined in MCP.Protocol type Rep ReadResourceResult = D1 ('MetaData "ReadResourceResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ReadResourceResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "contents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ResourceContents]) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))) | |||||
data ListPromptsResult Source #
The server's response to a prompts/list request from the client.
Constructors
| ListPromptsResult | |
Instances
| FromJSON ListPromptsResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListPromptsResult # parseJSONList :: Value -> Parser [ListPromptsResult] # | |||||
| ToJSON ListPromptsResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListPromptsResult -> Value # toEncoding :: ListPromptsResult -> Encoding # toJSONList :: [ListPromptsResult] -> Value # toEncodingList :: [ListPromptsResult] -> Encoding # omitField :: ListPromptsResult -> Bool # | |||||
| Generic ListPromptsResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListPromptsResult -> Rep ListPromptsResult x # to :: Rep ListPromptsResult x -> ListPromptsResult # | |||||
| Show ListPromptsResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListPromptsResult -> ShowS # show :: ListPromptsResult -> String # showList :: [ListPromptsResult] -> ShowS # | |||||
| Eq ListPromptsResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListPromptsResult -> ListPromptsResult -> Bool # (/=) :: ListPromptsResult -> ListPromptsResult -> Bool # | |||||
| type Rep ListPromptsResult Source # | |||||
Defined in MCP.Protocol type Rep ListPromptsResult = D1 ('MetaData "ListPromptsResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListPromptsResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "prompts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Prompt]) :*: (S1 ('MetaSel ('Just "nextCursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Cursor)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
data GetPromptResult Source #
The server's response to a prompts/get request from the client.
Constructors
| GetPromptResult | |
Fields
| |
Instances
| FromJSON GetPromptResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser GetPromptResult # parseJSONList :: Value -> Parser [GetPromptResult] # | |||||
| ToJSON GetPromptResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: GetPromptResult -> Value # toEncoding :: GetPromptResult -> Encoding # toJSONList :: [GetPromptResult] -> Value # toEncodingList :: [GetPromptResult] -> Encoding # omitField :: GetPromptResult -> Bool # | |||||
| Generic GetPromptResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: GetPromptResult -> Rep GetPromptResult x # to :: Rep GetPromptResult x -> GetPromptResult # | |||||
| Show GetPromptResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> GetPromptResult -> ShowS # show :: GetPromptResult -> String # showList :: [GetPromptResult] -> ShowS # | |||||
| Eq GetPromptResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: GetPromptResult -> GetPromptResult -> Bool # (/=) :: GetPromptResult -> GetPromptResult -> Bool # | |||||
| type Rep GetPromptResult Source # | |||||
Defined in MCP.Protocol type Rep GetPromptResult = D1 ('MetaData "GetPromptResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "GetPromptResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PromptMessage]) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
data ListToolsResult Source #
The server's response to a tools/list request from the client.
Constructors
| ListToolsResult | |
Instances
| FromJSON ListToolsResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListToolsResult # parseJSONList :: Value -> Parser [ListToolsResult] # | |||||
| ToJSON ListToolsResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListToolsResult -> Value # toEncoding :: ListToolsResult -> Encoding # toJSONList :: [ListToolsResult] -> Value # toEncodingList :: [ListToolsResult] -> Encoding # omitField :: ListToolsResult -> Bool # | |||||
| Generic ListToolsResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListToolsResult -> Rep ListToolsResult x # to :: Rep ListToolsResult x -> ListToolsResult # | |||||
| Show ListToolsResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListToolsResult -> ShowS # show :: ListToolsResult -> String # showList :: [ListToolsResult] -> ShowS # | |||||
| Eq ListToolsResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListToolsResult -> ListToolsResult -> Bool # (/=) :: ListToolsResult -> ListToolsResult -> Bool # | |||||
| type Rep ListToolsResult Source # | |||||
Defined in MCP.Protocol type Rep ListToolsResult = D1 ('MetaData "ListToolsResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListToolsResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "tools") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Tool]) :*: (S1 ('MetaSel ('Just "nextCursor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Cursor)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
data CallToolResult Source #
The server's response to a tool call.
Any errors that originate from the tool SHOULD be reported inside the result
object, with isError set to true, _not_ as an MCP protocol-level error
response. Otherwise, the LLM would not be able to see that an error occurred
and self-correct.
However, any errors in _finding_ the tool, an error indicating that the server does not support tool calls, or any other exceptional conditions, should be reported as an MCP error response.
Constructors
| CallToolResult | |
Fields
| |
Instances
| FromJSON CallToolResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CallToolResult # parseJSONList :: Value -> Parser [CallToolResult] # | |||||
| ToJSON CallToolResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CallToolResult -> Value # toEncoding :: CallToolResult -> Encoding # toJSONList :: [CallToolResult] -> Value # toEncodingList :: [CallToolResult] -> Encoding # omitField :: CallToolResult -> Bool # | |||||
| Generic CallToolResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CallToolResult -> Rep CallToolResult x # to :: Rep CallToolResult x -> CallToolResult # | |||||
| Show CallToolResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CallToolResult -> ShowS # show :: CallToolResult -> String # showList :: [CallToolResult] -> ShowS # | |||||
| Eq CallToolResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: CallToolResult -> CallToolResult -> Bool # (/=) :: CallToolResult -> CallToolResult -> Bool # | |||||
| type Rep CallToolResult Source # | |||||
Defined in MCP.Protocol type Rep CallToolResult = D1 ('MetaData "CallToolResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CallToolResult" 'PrefixI 'True) ((S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ContentBlock]) :*: S1 ('MetaSel ('Just "structuredContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text Value)))) :*: (S1 ('MetaSel ('Just "isError") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
data CompleteResult Source #
The server's response to a completion/complete request.
Constructors
| CompleteResult | |
Fields | |
Instances
| FromJSON CompleteResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CompleteResult # parseJSONList :: Value -> Parser [CompleteResult] # | |||||
| ToJSON CompleteResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CompleteResult -> Value # toEncoding :: CompleteResult -> Encoding # toJSONList :: [CompleteResult] -> Value # toEncodingList :: [CompleteResult] -> Encoding # omitField :: CompleteResult -> Bool # | |||||
| Generic CompleteResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CompleteResult -> Rep CompleteResult x # to :: Rep CompleteResult x -> CompleteResult # | |||||
| Show CompleteResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CompleteResult -> ShowS # show :: CompleteResult -> String # showList :: [CompleteResult] -> ShowS # | |||||
| Eq CompleteResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: CompleteResult -> CompleteResult -> Bool # (/=) :: CompleteResult -> CompleteResult -> Bool # | |||||
| type Rep CompleteResult Source # | |||||
Defined in MCP.Protocol type Rep CompleteResult = D1 ('MetaData "CompleteResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CompleteResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "completion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CompletionResult) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))) | |||||
data CompletionResult Source #
Completion result inner type.
Contains the actual completion data.
Constructors
| CompletionResult | |
Fields
| |
Instances
| FromJSON CompletionResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CompletionResult # parseJSONList :: Value -> Parser [CompletionResult] # | |||||
| ToJSON CompletionResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CompletionResult -> Value # toEncoding :: CompletionResult -> Encoding # toJSONList :: [CompletionResult] -> Value # toEncodingList :: [CompletionResult] -> Encoding # omitField :: CompletionResult -> Bool # | |||||
| Generic CompletionResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CompletionResult -> Rep CompletionResult x # to :: Rep CompletionResult x -> CompletionResult # | |||||
| Show CompletionResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CompletionResult -> ShowS # show :: CompletionResult -> String # showList :: [CompletionResult] -> ShowS # | |||||
| Eq CompletionResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: CompletionResult -> CompletionResult -> Bool # (/=) :: CompletionResult -> CompletionResult -> Bool # | |||||
| type Rep CompletionResult Source # | |||||
Defined in MCP.Protocol type Rep CompletionResult = D1 ('MetaData "CompletionResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CompletionResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "total") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "hasMore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) | |||||
data CreateMessageResult Source #
The client's response to a sampling/createMessage request from the server.
The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.
Constructors
| CreateMessageResult | |
Instances
| FromJSON CreateMessageResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CreateMessageResult # parseJSONList :: Value -> Parser [CreateMessageResult] # | |||||
| ToJSON CreateMessageResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CreateMessageResult -> Value # toEncoding :: CreateMessageResult -> Encoding # toJSONList :: [CreateMessageResult] -> Value # toEncodingList :: [CreateMessageResult] -> Encoding # omitField :: CreateMessageResult -> Bool # | |||||
| Generic CreateMessageResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CreateMessageResult -> Rep CreateMessageResult x # to :: Rep CreateMessageResult x -> CreateMessageResult # | |||||
| Show CreateMessageResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CreateMessageResult -> ShowS # show :: CreateMessageResult -> String # showList :: [CreateMessageResult] -> ShowS # | |||||
| Eq CreateMessageResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: CreateMessageResult -> CreateMessageResult -> Bool # (/=) :: CreateMessageResult -> CreateMessageResult -> Bool # | |||||
| type Rep CreateMessageResult Source # | |||||
Defined in MCP.Protocol type Rep CreateMessageResult = D1 ('MetaData "CreateMessageResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CreateMessageResult" 'PrefixI 'True) ((S1 ('MetaSel ('Just "role") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Role) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Content)) :*: (S1 ('MetaSel ('Just "model") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "stopReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))))) | |||||
data ListRootsResult Source #
The client's response to a roots/list request from the server.
This result contains an array of Root objects, each representing a root directory or file that the server can operate on.
Instances
| FromJSON ListRootsResult Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ListRootsResult # parseJSONList :: Value -> Parser [ListRootsResult] # | |||||
| ToJSON ListRootsResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ListRootsResult -> Value # toEncoding :: ListRootsResult -> Encoding # toJSONList :: [ListRootsResult] -> Value # toEncodingList :: [ListRootsResult] -> Encoding # omitField :: ListRootsResult -> Bool # | |||||
| Generic ListRootsResult Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ListRootsResult -> Rep ListRootsResult x # to :: Rep ListRootsResult x -> ListRootsResult # | |||||
| Show ListRootsResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ListRootsResult -> ShowS # show :: ListRootsResult -> String # showList :: [ListRootsResult] -> ShowS # | |||||
| Eq ListRootsResult Source # | |||||
Defined in MCP.Protocol Methods (==) :: ListRootsResult -> ListRootsResult -> Bool # (/=) :: ListRootsResult -> ListRootsResult -> Bool # | |||||
| type Rep ListRootsResult Source # | |||||
Defined in MCP.Protocol type Rep ListRootsResult = D1 ('MetaData "ListRootsResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ListRootsResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "roots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Root]) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))) | |||||
data ElicitResult Source #
The client's response to an elicitation request.
Constructors
| ElicitResult | |
Fields
| |
Instances
| FromJSON ElicitResult Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON ElicitResult Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ElicitResult -> Value # toEncoding :: ElicitResult -> Encoding # toJSONList :: [ElicitResult] -> Value # toEncodingList :: [ElicitResult] -> Encoding # omitField :: ElicitResult -> Bool # | |||||
| Generic ElicitResult Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show ElicitResult Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ElicitResult -> ShowS # show :: ElicitResult -> String # showList :: [ElicitResult] -> ShowS # | |||||
| Eq ElicitResult Source # | |||||
Defined in MCP.Protocol | |||||
| type Rep ElicitResult Source # | |||||
Defined in MCP.Protocol type Rep ElicitResult = D1 ('MetaData "ElicitResult" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ElicitResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text Value))) :*: S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata))))) | |||||
Notification Types
data CancelledNotification Source #
This notification can be sent by either side to indicate that it is cancelling a previously-issued request.
The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished.
This notification indicates that the result will be unused, so any associated processing SHOULD cease.
A client MUST NOT attempt to cancel its initialize request.
Constructors
| CancelledNotification | |
Fields | |
Instances
| FromJSON CancelledNotification Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CancelledNotification # parseJSONList :: Value -> Parser [CancelledNotification] # | |||||
| ToJSON CancelledNotification Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CancelledNotification -> Value # toEncoding :: CancelledNotification -> Encoding # toJSONList :: [CancelledNotification] -> Value # toEncodingList :: [CancelledNotification] -> Encoding # omitField :: CancelledNotification -> Bool # | |||||
| Generic CancelledNotification Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CancelledNotification -> Rep CancelledNotification x # to :: Rep CancelledNotification x -> CancelledNotification # | |||||
| Show CancelledNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CancelledNotification -> ShowS # show :: CancelledNotification -> String # showList :: [CancelledNotification] -> ShowS # | |||||
| Eq CancelledNotification Source # | |||||
Defined in MCP.Protocol Methods (==) :: CancelledNotification -> CancelledNotification -> Bool # (/=) :: CancelledNotification -> CancelledNotification -> Bool # | |||||
| IsJSONRPCNotification CancelledNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep CancelledNotification Source # | |||||
Defined in MCP.Protocol type Rep CancelledNotification = D1 ('MetaData "CancelledNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CancelledNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CancelledParams))) | |||||
| type NotificationParams CancelledNotification Source # | |||||
Defined in MCP.Protocol | |||||
data CancelledParams Source #
Cancelled notification parameters.
Parameters for a cancellation notification.
Constructors
| CancelledParams | |
Instances
| FromJSON CancelledParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser CancelledParams # parseJSONList :: Value -> Parser [CancelledParams] # | |||||
| ToJSON CancelledParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: CancelledParams -> Value # toEncoding :: CancelledParams -> Encoding # toJSONList :: [CancelledParams] -> Value # toEncodingList :: [CancelledParams] -> Encoding # omitField :: CancelledParams -> Bool # | |||||
| Generic CancelledParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: CancelledParams -> Rep CancelledParams x # to :: Rep CancelledParams x -> CancelledParams # | |||||
| Show CancelledParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> CancelledParams -> ShowS # show :: CancelledParams -> String # showList :: [CancelledParams] -> ShowS # | |||||
| Eq CancelledParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: CancelledParams -> CancelledParams -> Bool # (/=) :: CancelledParams -> CancelledParams -> Bool # | |||||
| type Rep CancelledParams Source # | |||||
Defined in MCP.Protocol type Rep CancelledParams = D1 ('MetaData "CancelledParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "CancelledParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) | |||||
data InitializedNotification Source #
This notification is sent from the client to the server after initialization has finished.
Constructors
| InitializedNotification | |
Fields | |
Instances
| FromJSON InitializedNotification Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser InitializedNotification # parseJSONList :: Value -> Parser [InitializedNotification] # | |||||
| ToJSON InitializedNotification Source # | |||||
Defined in MCP.Protocol Methods toJSON :: InitializedNotification -> Value # toEncoding :: InitializedNotification -> Encoding # toJSONList :: [InitializedNotification] -> Value # | |||||
| Generic InitializedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: InitializedNotification -> Rep InitializedNotification x # to :: Rep InitializedNotification x -> InitializedNotification # | |||||
| Show InitializedNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> InitializedNotification -> ShowS # show :: InitializedNotification -> String # showList :: [InitializedNotification] -> ShowS # | |||||
| Eq InitializedNotification Source # | |||||
Defined in MCP.Protocol Methods (==) :: InitializedNotification -> InitializedNotification -> Bool # (/=) :: InitializedNotification -> InitializedNotification -> Bool # | |||||
| IsJSONRPCNotification InitializedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep InitializedNotification Source # | |||||
Defined in MCP.Protocol type Rep InitializedNotification = D1 ('MetaData "InitializedNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "InitializedNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmptyParams)))) | |||||
| type NotificationParams InitializedNotification Source # | |||||
Defined in MCP.Protocol type NotificationParams InitializedNotification = NotificationParamType (Rep InitializedNotification) | |||||
data InitializedParams where Source #
Initialized notification parameters.
Parameters for the initialized notification (typically just metadata).
Constructors
| InitializedParams | |
Fields
| |
Instances
| FromJSON InitializedParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser InitializedParams # parseJSONList :: Value -> Parser [InitializedParams] # | |||||
| ToJSON InitializedParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: InitializedParams -> Value # toEncoding :: InitializedParams -> Encoding # toJSONList :: [InitializedParams] -> Value # toEncodingList :: [InitializedParams] -> Encoding # omitField :: InitializedParams -> Bool # | |||||
| Generic InitializedParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: InitializedParams -> Rep InitializedParams x # to :: Rep InitializedParams x -> InitializedParams # | |||||
| Show InitializedParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> InitializedParams -> ShowS # show :: InitializedParams -> String # showList :: [InitializedParams] -> ShowS # | |||||
| Eq InitializedParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: InitializedParams -> InitializedParams -> Bool # (/=) :: InitializedParams -> InitializedParams -> Bool # | |||||
| type Rep InitializedParams Source # | |||||
Defined in MCP.Protocol type Rep InitializedParams = D1 ('MetaData "InitializedParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "InitializedParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "_meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Metadata)))) | |||||
data ProgressNotification Source #
An out-of-band notification used to inform the receiver of a progress update for a long-running request.
Constructors
| ProgressNotification | |
Fields | |
Instances
| FromJSON ProgressNotification Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ProgressNotification # parseJSONList :: Value -> Parser [ProgressNotification] # | |||||
| ToJSON ProgressNotification Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ProgressNotification -> Value # toEncoding :: ProgressNotification -> Encoding # toJSONList :: [ProgressNotification] -> Value # toEncodingList :: [ProgressNotification] -> Encoding # omitField :: ProgressNotification -> Bool # | |||||
| Generic ProgressNotification Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ProgressNotification -> Rep ProgressNotification x # to :: Rep ProgressNotification x -> ProgressNotification # | |||||
| Show ProgressNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ProgressNotification -> ShowS # show :: ProgressNotification -> String # showList :: [ProgressNotification] -> ShowS # | |||||
| Eq ProgressNotification Source # | |||||
Defined in MCP.Protocol Methods (==) :: ProgressNotification -> ProgressNotification -> Bool # (/=) :: ProgressNotification -> ProgressNotification -> Bool # | |||||
| IsJSONRPCNotification ProgressNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep ProgressNotification Source # | |||||
Defined in MCP.Protocol type Rep ProgressNotification = D1 ('MetaData "ProgressNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ProgressNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProgressParams))) | |||||
| type NotificationParams ProgressNotification Source # | |||||
Defined in MCP.Protocol | |||||
data ProgressParams Source #
Progress notification parameters.
Parameters for progress update notifications.
Constructors
| ProgressParams | |
Fields
| |
Instances
| FromJSON ProgressParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ProgressParams # parseJSONList :: Value -> Parser [ProgressParams] # | |||||
| ToJSON ProgressParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ProgressParams -> Value # toEncoding :: ProgressParams -> Encoding # toJSONList :: [ProgressParams] -> Value # toEncodingList :: [ProgressParams] -> Encoding # omitField :: ProgressParams -> Bool # | |||||
| Generic ProgressParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ProgressParams -> Rep ProgressParams x # to :: Rep ProgressParams x -> ProgressParams # | |||||
| Show ProgressParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ProgressParams -> ShowS # show :: ProgressParams -> String # showList :: [ProgressParams] -> ShowS # | |||||
| Eq ProgressParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: ProgressParams -> ProgressParams -> Bool # (/=) :: ProgressParams -> ProgressParams -> Bool # | |||||
| type Rep ProgressParams Source # | |||||
Defined in MCP.Protocol type Rep ProgressParams = D1 ('MetaData "ProgressParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ProgressParams" 'PrefixI 'True) ((S1 ('MetaSel ('Just "progressToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProgressToken) :*: S1 ('MetaSel ('Just "progress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "total") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) | |||||
data ResourceListChangedNotification Source #
An optional notification from the server to the client, informing it that the list of resources it can read from has changed.
This may be issued by servers without any previous subscription from the client.
Constructors
| ResourceListChangedNotification | |
Fields | |
Instances
| FromJSON ResourceListChangedNotification Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON ResourceListChangedNotification Source # | |||||
Defined in MCP.Protocol | |||||
| Generic ResourceListChangedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show ResourceListChangedNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ResourceListChangedNotification -> ShowS # | |||||
| Eq ResourceListChangedNotification Source # | |||||
Defined in MCP.Protocol | |||||
| IsJSONRPCNotification ResourceListChangedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep ResourceListChangedNotification Source # | |||||
Defined in MCP.Protocol type Rep ResourceListChangedNotification = D1 ('MetaData "ResourceListChangedNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ResourceListChangedNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmptyParams)))) | |||||
| type NotificationParams ResourceListChangedNotification Source # | |||||
Defined in MCP.Protocol type NotificationParams ResourceListChangedNotification = NotificationParamType (Rep ResourceListChangedNotification) | |||||
data ResourceUpdatedNotification Source #
A notification from the server to the client, informing it that a resource has changed and may need to be read again.
This should only be sent if the client previously sent a resources/subscribe request.
Constructors
| ResourceUpdatedNotification | |
Fields | |
Instances
| FromJSON ResourceUpdatedNotification Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON ResourceUpdatedNotification Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ResourceUpdatedNotification -> Value # toEncoding :: ResourceUpdatedNotification -> Encoding # toJSONList :: [ResourceUpdatedNotification] -> Value # toEncodingList :: [ResourceUpdatedNotification] -> Encoding # | |||||
| Generic ResourceUpdatedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ResourceUpdatedNotification -> Rep ResourceUpdatedNotification x # to :: Rep ResourceUpdatedNotification x -> ResourceUpdatedNotification # | |||||
| Show ResourceUpdatedNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ResourceUpdatedNotification -> ShowS # show :: ResourceUpdatedNotification -> String # showList :: [ResourceUpdatedNotification] -> ShowS # | |||||
| Eq ResourceUpdatedNotification Source # | |||||
Defined in MCP.Protocol Methods (==) :: ResourceUpdatedNotification -> ResourceUpdatedNotification -> Bool # (/=) :: ResourceUpdatedNotification -> ResourceUpdatedNotification -> Bool # | |||||
| IsJSONRPCNotification ResourceUpdatedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep ResourceUpdatedNotification Source # | |||||
Defined in MCP.Protocol type Rep ResourceUpdatedNotification = D1 ('MetaData "ResourceUpdatedNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ResourceUpdatedNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResourceUpdatedParams))) | |||||
| type NotificationParams ResourceUpdatedNotification Source # | |||||
Defined in MCP.Protocol type NotificationParams ResourceUpdatedNotification = NotificationParamType (Rep ResourceUpdatedNotification) | |||||
data ResourceUpdatedParams Source #
Resource updated notification parameters.
Parameters for resource update notifications.
Constructors
| ResourceUpdatedParams | |
Instances
| FromJSON ResourceUpdatedParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ResourceUpdatedParams # parseJSONList :: Value -> Parser [ResourceUpdatedParams] # | |||||
| ToJSON ResourceUpdatedParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ResourceUpdatedParams -> Value # toEncoding :: ResourceUpdatedParams -> Encoding # toJSONList :: [ResourceUpdatedParams] -> Value # toEncodingList :: [ResourceUpdatedParams] -> Encoding # omitField :: ResourceUpdatedParams -> Bool # | |||||
| Generic ResourceUpdatedParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ResourceUpdatedParams -> Rep ResourceUpdatedParams x # to :: Rep ResourceUpdatedParams x -> ResourceUpdatedParams # | |||||
| Show ResourceUpdatedParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ResourceUpdatedParams -> ShowS # show :: ResourceUpdatedParams -> String # showList :: [ResourceUpdatedParams] -> ShowS # | |||||
| Eq ResourceUpdatedParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: ResourceUpdatedParams -> ResourceUpdatedParams -> Bool # (/=) :: ResourceUpdatedParams -> ResourceUpdatedParams -> Bool # | |||||
| type Rep ResourceUpdatedParams Source # | |||||
Defined in MCP.Protocol type Rep ResourceUpdatedParams = D1 ('MetaData "ResourceUpdatedParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ResourceUpdatedParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data PromptListChangedNotification Source #
An optional notification from the server to the client, informing it that the list of prompts it offers has changed.
This may be issued by servers without any previous subscription from the client.
Constructors
| PromptListChangedNotification | |
Fields | |
Instances
| FromJSON PromptListChangedNotification Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON PromptListChangedNotification Source # | |||||
Defined in MCP.Protocol | |||||
| Generic PromptListChangedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show PromptListChangedNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> PromptListChangedNotification -> ShowS # show :: PromptListChangedNotification -> String # showList :: [PromptListChangedNotification] -> ShowS # | |||||
| Eq PromptListChangedNotification Source # | |||||
Defined in MCP.Protocol | |||||
| IsJSONRPCNotification PromptListChangedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep PromptListChangedNotification Source # | |||||
Defined in MCP.Protocol type Rep PromptListChangedNotification = D1 ('MetaData "PromptListChangedNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "PromptListChangedNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmptyParams)))) | |||||
| type NotificationParams PromptListChangedNotification Source # | |||||
Defined in MCP.Protocol type NotificationParams PromptListChangedNotification = NotificationParamType (Rep PromptListChangedNotification) | |||||
data ToolListChangedNotification Source #
An optional notification from the server to the client, informing it that the list of tools it offers has changed.
This may be issued by servers without any previous subscription from the client.
Constructors
| ToolListChangedNotification | |
Fields | |
Instances
| FromJSON ToolListChangedNotification Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON ToolListChangedNotification Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ToolListChangedNotification -> Value # toEncoding :: ToolListChangedNotification -> Encoding # toJSONList :: [ToolListChangedNotification] -> Value # toEncodingList :: [ToolListChangedNotification] -> Encoding # | |||||
| Generic ToolListChangedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ToolListChangedNotification -> Rep ToolListChangedNotification x # to :: Rep ToolListChangedNotification x -> ToolListChangedNotification # | |||||
| Show ToolListChangedNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ToolListChangedNotification -> ShowS # show :: ToolListChangedNotification -> String # showList :: [ToolListChangedNotification] -> ShowS # | |||||
| Eq ToolListChangedNotification Source # | |||||
Defined in MCP.Protocol Methods (==) :: ToolListChangedNotification -> ToolListChangedNotification -> Bool # (/=) :: ToolListChangedNotification -> ToolListChangedNotification -> Bool # | |||||
| IsJSONRPCNotification ToolListChangedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep ToolListChangedNotification Source # | |||||
Defined in MCP.Protocol type Rep ToolListChangedNotification = D1 ('MetaData "ToolListChangedNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "ToolListChangedNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmptyParams)))) | |||||
| type NotificationParams ToolListChangedNotification Source # | |||||
Defined in MCP.Protocol type NotificationParams ToolListChangedNotification = NotificationParamType (Rep ToolListChangedNotification) | |||||
data LoggingMessageNotification Source #
Notification of a log message passed from server to client.
If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.
Constructors
| LoggingMessageNotification | |
Fields | |
Instances
| FromJSON LoggingMessageNotification Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON LoggingMessageNotification Source # | |||||
Defined in MCP.Protocol Methods toJSON :: LoggingMessageNotification -> Value # toEncoding :: LoggingMessageNotification -> Encoding # toJSONList :: [LoggingMessageNotification] -> Value # toEncodingList :: [LoggingMessageNotification] -> Encoding # | |||||
| Generic LoggingMessageNotification Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: LoggingMessageNotification -> Rep LoggingMessageNotification x # to :: Rep LoggingMessageNotification x -> LoggingMessageNotification # | |||||
| Show LoggingMessageNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> LoggingMessageNotification -> ShowS # show :: LoggingMessageNotification -> String # showList :: [LoggingMessageNotification] -> ShowS # | |||||
| Eq LoggingMessageNotification Source # | |||||
Defined in MCP.Protocol Methods (==) :: LoggingMessageNotification -> LoggingMessageNotification -> Bool # (/=) :: LoggingMessageNotification -> LoggingMessageNotification -> Bool # | |||||
| IsJSONRPCNotification LoggingMessageNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep LoggingMessageNotification Source # | |||||
Defined in MCP.Protocol type Rep LoggingMessageNotification = D1 ('MetaData "LoggingMessageNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "LoggingMessageNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LoggingMessageParams))) | |||||
| type NotificationParams LoggingMessageNotification Source # | |||||
Defined in MCP.Protocol type NotificationParams LoggingMessageNotification = NotificationParamType (Rep LoggingMessageNotification) | |||||
data LoggingMessageParams Source #
Logging message notification parameters.
Parameters for log message notifications.
Constructors
| LoggingMessageParams | |
Instances
| FromJSON LoggingMessageParams Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser LoggingMessageParams # parseJSONList :: Value -> Parser [LoggingMessageParams] # | |||||
| ToJSON LoggingMessageParams Source # | |||||
Defined in MCP.Protocol Methods toJSON :: LoggingMessageParams -> Value # toEncoding :: LoggingMessageParams -> Encoding # toJSONList :: [LoggingMessageParams] -> Value # toEncodingList :: [LoggingMessageParams] -> Encoding # omitField :: LoggingMessageParams -> Bool # | |||||
| Generic LoggingMessageParams Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: LoggingMessageParams -> Rep LoggingMessageParams x # to :: Rep LoggingMessageParams x -> LoggingMessageParams # | |||||
| Show LoggingMessageParams Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> LoggingMessageParams -> ShowS # show :: LoggingMessageParams -> String # showList :: [LoggingMessageParams] -> ShowS # | |||||
| Eq LoggingMessageParams Source # | |||||
Defined in MCP.Protocol Methods (==) :: LoggingMessageParams -> LoggingMessageParams -> Bool # (/=) :: LoggingMessageParams -> LoggingMessageParams -> Bool # | |||||
| type Rep LoggingMessageParams Source # | |||||
Defined in MCP.Protocol type Rep LoggingMessageParams = D1 ('MetaData "LoggingMessageParams" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "LoggingMessageParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "level") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LoggingLevel) :*: (S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value) :*: S1 ('MetaSel ('Just "logger") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) | |||||
data RootsListChangedNotification Source #
A notification from the client to the server, informing it that the list of roots has changed.
This notification should be sent whenever the client adds, removes, or modifies any root. The server should then request an updated list of roots using the ListRootsRequest.
Constructors
| RootsListChangedNotification | |
Fields | |
Instances
| FromJSON RootsListChangedNotification Source # | |||||
Defined in MCP.Protocol | |||||
| ToJSON RootsListChangedNotification Source # | |||||
Defined in MCP.Protocol Methods toJSON :: RootsListChangedNotification -> Value # toEncoding :: RootsListChangedNotification -> Encoding # toJSONList :: [RootsListChangedNotification] -> Value # toEncodingList :: [RootsListChangedNotification] -> Encoding # | |||||
| Generic RootsListChangedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show RootsListChangedNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> RootsListChangedNotification -> ShowS # show :: RootsListChangedNotification -> String # showList :: [RootsListChangedNotification] -> ShowS # | |||||
| Eq RootsListChangedNotification Source # | |||||
Defined in MCP.Protocol Methods (==) :: RootsListChangedNotification -> RootsListChangedNotification -> Bool # (/=) :: RootsListChangedNotification -> RootsListChangedNotification -> Bool # | |||||
| IsJSONRPCNotification RootsListChangedNotification Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| type Rep RootsListChangedNotification Source # | |||||
Defined in MCP.Protocol type Rep RootsListChangedNotification = D1 ('MetaData "RootsListChangedNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (C1 ('MetaCons "RootsListChangedNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "params") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EmptyParams)))) | |||||
| type NotificationParams RootsListChangedNotification Source # | |||||
Defined in MCP.Protocol type NotificationParams RootsListChangedNotification = NotificationParamType (Rep RootsListChangedNotification) | |||||
Union Types
data ClientRequest Source #
Any request that can be sent from a client to a server.
This union type encompasses all possible client-to-server requests in the MCP protocol.
Constructors
| InitializeReq InitializeRequest | |
| PingReq PingRequest | |
| ListResourcesReq ListResourcesRequest | |
| ListResourceTemplatesReq ListResourceTemplatesRequest | |
| ReadResourceReq ReadResourceRequest | |
| SubscribeReq SubscribeRequest | |
| UnsubscribeReq UnsubscribeRequest | |
| ListPromptsReq ListPromptsRequest | |
| GetPromptReq GetPromptRequest | |
| ListToolsReq ListToolsRequest | |
| CallToolReq CallToolRequest | |
| SetLevelReq SetLevelRequest | |
| CompleteReq CompleteRequest |
Instances
| FromJSON ClientRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ClientRequest # parseJSONList :: Value -> Parser [ClientRequest] # | |||||
| ToJSON ClientRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ClientRequest -> Value # toEncoding :: ClientRequest -> Encoding # toJSONList :: [ClientRequest] -> Value # toEncodingList :: [ClientRequest] -> Encoding # omitField :: ClientRequest -> Bool # | |||||
| Generic ClientRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show ClientRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ClientRequest -> ShowS # show :: ClientRequest -> String # showList :: [ClientRequest] -> ShowS # | |||||
| Eq ClientRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: ClientRequest -> ClientRequest -> Bool # (/=) :: ClientRequest -> ClientRequest -> Bool # | |||||
| type Rep ClientRequest Source # | |||||
Defined in MCP.Protocol type Rep ClientRequest = D1 ('MetaData "ClientRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) (((C1 ('MetaCons "InitializeReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InitializeRequest)) :+: (C1 ('MetaCons "PingReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PingRequest)) :+: C1 ('MetaCons "ListResourcesReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ListResourcesRequest)))) :+: (C1 ('MetaCons "ListResourceTemplatesReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ListResourceTemplatesRequest)) :+: (C1 ('MetaCons "ReadResourceReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReadResourceRequest)) :+: C1 ('MetaCons "SubscribeReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SubscribeRequest))))) :+: ((C1 ('MetaCons "UnsubscribeReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnsubscribeRequest)) :+: (C1 ('MetaCons "ListPromptsReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ListPromptsRequest)) :+: C1 ('MetaCons "GetPromptReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GetPromptRequest)))) :+: ((C1 ('MetaCons "ListToolsReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ListToolsRequest)) :+: C1 ('MetaCons "CallToolReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CallToolRequest))) :+: (C1 ('MetaCons "SetLevelReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SetLevelRequest)) :+: C1 ('MetaCons "CompleteReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CompleteRequest)))))) | |||||
data ServerRequest Source #
Any request that can be sent from a server to a client.
This union type encompasses all possible server-to-client requests in the MCP protocol.
Constructors
| PingServerReq PingRequest | |
| CreateMessageReq CreateMessageRequest | |
| ListRootsReq ListRootsRequest | |
| ElicitReq ElicitRequest |
Instances
| FromJSON ServerRequest Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ServerRequest # parseJSONList :: Value -> Parser [ServerRequest] # | |||||
| ToJSON ServerRequest Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ServerRequest -> Value # toEncoding :: ServerRequest -> Encoding # toJSONList :: [ServerRequest] -> Value # toEncodingList :: [ServerRequest] -> Encoding # omitField :: ServerRequest -> Bool # | |||||
| Generic ServerRequest Source # | |||||
Defined in MCP.Protocol Associated Types
| |||||
| Show ServerRequest Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ServerRequest -> ShowS # show :: ServerRequest -> String # showList :: [ServerRequest] -> ShowS # | |||||
| Eq ServerRequest Source # | |||||
Defined in MCP.Protocol Methods (==) :: ServerRequest -> ServerRequest -> Bool # (/=) :: ServerRequest -> ServerRequest -> Bool # | |||||
| type Rep ServerRequest Source # | |||||
Defined in MCP.Protocol type Rep ServerRequest = D1 ('MetaData "ServerRequest" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) ((C1 ('MetaCons "PingServerReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PingRequest)) :+: C1 ('MetaCons "CreateMessageReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CreateMessageRequest))) :+: (C1 ('MetaCons "ListRootsReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ListRootsRequest)) :+: C1 ('MetaCons "ElicitReq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ElicitRequest)))) | |||||
data ClientNotification Source #
Any notification that can be sent from a client to a server.
This union type encompasses all possible client-to-server notifications in the MCP protocol.
Constructors
| CancelledNotif CancelledNotification | |
| InitializedNotif InitializedNotification | |
| ProgressNotif ProgressNotification | |
| RootsListChangedNotif RootsListChangedNotification |
Instances
| FromJSON ClientNotification Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ClientNotification # parseJSONList :: Value -> Parser [ClientNotification] # | |||||
| ToJSON ClientNotification Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ClientNotification -> Value # toEncoding :: ClientNotification -> Encoding # toJSONList :: [ClientNotification] -> Value # toEncodingList :: [ClientNotification] -> Encoding # omitField :: ClientNotification -> Bool # | |||||
| Generic ClientNotification Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ClientNotification -> Rep ClientNotification x # to :: Rep ClientNotification x -> ClientNotification # | |||||
| Show ClientNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ClientNotification -> ShowS # show :: ClientNotification -> String # showList :: [ClientNotification] -> ShowS # | |||||
| Eq ClientNotification Source # | |||||
Defined in MCP.Protocol Methods (==) :: ClientNotification -> ClientNotification -> Bool # (/=) :: ClientNotification -> ClientNotification -> Bool # | |||||
| type Rep ClientNotification Source # | |||||
Defined in MCP.Protocol type Rep ClientNotification = D1 ('MetaData "ClientNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) ((C1 ('MetaCons "CancelledNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CancelledNotification)) :+: C1 ('MetaCons "InitializedNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InitializedNotification))) :+: (C1 ('MetaCons "ProgressNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProgressNotification)) :+: C1 ('MetaCons "RootsListChangedNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RootsListChangedNotification)))) | |||||
data ServerNotification Source #
Any notification that can be sent from a server to a client.
This union type encompasses all possible server-to-client notifications in the MCP protocol.
Constructors
| CancelledServerNotif CancelledNotification | |
| ProgressServerNotif ProgressNotification | |
| ResourceListChangedNotif ResourceListChangedNotification | |
| ResourceUpdatedNotif ResourceUpdatedNotification | |
| PromptListChangedNotif PromptListChangedNotification | |
| ToolListChangedNotif ToolListChangedNotification | |
| LoggingMessageNotif LoggingMessageNotification |
Instances
| FromJSON ServerNotification Source # | |||||
Defined in MCP.Protocol Methods parseJSON :: Value -> Parser ServerNotification # parseJSONList :: Value -> Parser [ServerNotification] # | |||||
| ToJSON ServerNotification Source # | |||||
Defined in MCP.Protocol Methods toJSON :: ServerNotification -> Value # toEncoding :: ServerNotification -> Encoding # toJSONList :: [ServerNotification] -> Value # toEncodingList :: [ServerNotification] -> Encoding # omitField :: ServerNotification -> Bool # | |||||
| Generic ServerNotification Source # | |||||
Defined in MCP.Protocol Associated Types
Methods from :: ServerNotification -> Rep ServerNotification x # to :: Rep ServerNotification x -> ServerNotification # | |||||
| Show ServerNotification Source # | |||||
Defined in MCP.Protocol Methods showsPrec :: Int -> ServerNotification -> ShowS # show :: ServerNotification -> String # showList :: [ServerNotification] -> ShowS # | |||||
| Eq ServerNotification Source # | |||||
Defined in MCP.Protocol Methods (==) :: ServerNotification -> ServerNotification -> Bool # (/=) :: ServerNotification -> ServerNotification -> Bool # | |||||
| type Rep ServerNotification Source # | |||||
Defined in MCP.Protocol type Rep ServerNotification = D1 ('MetaData "ServerNotification" "MCP.Protocol" "mcp-types-0.1.0-Bdcv0EdKlpI6CJWrAQ8a5X" 'False) ((C1 ('MetaCons "CancelledServerNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CancelledNotification)) :+: (C1 ('MetaCons "ProgressServerNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProgressNotification)) :+: C1 ('MetaCons "ResourceListChangedNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResourceListChangedNotification)))) :+: ((C1 ('MetaCons "ResourceUpdatedNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResourceUpdatedNotification)) :+: C1 ('MetaCons "PromptListChangedNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PromptListChangedNotification))) :+: (C1 ('MetaCons "ToolListChangedNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ToolListChangedNotification)) :+: C1 ('MetaCons "LoggingMessageNotif" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LoggingMessageNotification))))) | |||||
MCP Constants
pROTOCOL_VERSION :: Text Source #
MCP protocol version string.
Indicates the version of the Model Context Protocol that this implementation supports.