Safe Haskell | None |
---|---|
Language | GHC2024 |
MCP.Server.Protocol
Synopsis
- data InitializeRequest = InitializeRequest {}
- data InitializeResponse = InitializeResponse {}
- data InitializedNotification = InitializedNotification
- data PingRequest = PingRequest
- data PongResponse = PongResponse
- data PromptsListRequest = PromptsListRequest
- data PromptsListResponse = PromptsListResponse {}
- data PromptsGetRequest = PromptsGetRequest {}
- data PromptsGetResponse = PromptsGetResponse {}
- data PromptMessage = PromptMessage {}
- data MessageRole
- data ResourcesListRequest = ResourcesListRequest
- data ResourcesListResponse = ResourcesListResponse {}
- data ResourcesReadRequest = ResourcesReadRequest {}
- data ResourcesReadResponse = ResourcesReadResponse {}
- data ToolsListRequest = ToolsListRequest
- data ToolsListResponse = ToolsListResponse {}
- data ToolsCallRequest = ToolsCallRequest {
- toolsCallName :: Text
- toolsCallArguments :: Maybe (Map Text Value)
- data ToolsCallResponse = ToolsCallResponse {}
- data ListChangedNotification = ListChangedNotification
- protocolVersion :: Text
MCP Protocol Messages
data InitializeRequest Source #
Initialize request
Constructors
InitializeRequest | |
Fields |
Instances
data InitializeResponse Source #
Initialize response
Constructors
InitializeResponse | |
Instances
Generic InitializeResponse Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: InitializeResponse -> Rep InitializeResponse x # to :: Rep InitializeResponse x -> InitializeResponse # | |||||
Show InitializeResponse Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> InitializeResponse -> ShowS # show :: InitializeResponse -> String # showList :: [InitializeResponse] -> ShowS # | |||||
Eq InitializeResponse Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: InitializeResponse -> InitializeResponse -> Bool # (/=) :: InitializeResponse -> InitializeResponse -> Bool # | |||||
ToJSON InitializeResponse Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: InitializeResponse -> Value # toEncoding :: InitializeResponse -> Encoding # toJSONList :: [InitializeResponse] -> Value # toEncodingList :: [InitializeResponse] -> Encoding # omitField :: InitializeResponse -> Bool # | |||||
type Rep InitializeResponse Source # | |||||
Defined in MCP.Server.Protocol type Rep InitializeResponse = D1 ('MetaData "InitializeResponse" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "InitializeResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "initRespProtocolVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "initRespCapabilities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ServerCapabilities) :*: S1 ('MetaSel ('Just "initRespServerInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 McpServerInfo)))) |
data InitializedNotification Source #
Initialized notification (no parameters)
Constructors
InitializedNotification |
Instances
Generic InitializedNotification Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: InitializedNotification -> Rep InitializedNotification x # to :: Rep InitializedNotification x -> InitializedNotification # | |||||
Show InitializedNotification Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> InitializedNotification -> ShowS # show :: InitializedNotification -> String # showList :: [InitializedNotification] -> ShowS # | |||||
Eq InitializedNotification Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: InitializedNotification -> InitializedNotification -> Bool # (/=) :: InitializedNotification -> InitializedNotification -> Bool # | |||||
FromJSON InitializedNotification Source # | |||||
Defined in MCP.Server.Protocol Methods parseJSON :: Value -> Parser InitializedNotification # parseJSONList :: Value -> Parser [InitializedNotification] # | |||||
type Rep InitializedNotification Source # | |||||
data PingRequest Source #
Ping request (no parameters)
Constructors
PingRequest |
Instances
Generic PingRequest Source # | |||||
Defined in MCP.Server.Protocol Associated Types
| |||||
Show PingRequest Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> PingRequest -> ShowS # show :: PingRequest -> String # showList :: [PingRequest] -> ShowS # | |||||
Eq PingRequest Source # | |||||
Defined in MCP.Server.Protocol | |||||
FromJSON PingRequest Source # | |||||
Defined in MCP.Server.Protocol | |||||
type Rep PingRequest Source # | |||||
data PongResponse Source #
Pong response (empty object)
Constructors
PongResponse |
Instances
Generic PongResponse Source # | |||||
Defined in MCP.Server.Protocol Associated Types
| |||||
Show PongResponse Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> PongResponse -> ShowS # show :: PongResponse -> String # showList :: [PongResponse] -> ShowS # | |||||
Eq PongResponse Source # | |||||
Defined in MCP.Server.Protocol | |||||
ToJSON PongResponse Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: PongResponse -> Value # toEncoding :: PongResponse -> Encoding # toJSONList :: [PongResponse] -> Value # toEncodingList :: [PongResponse] -> Encoding # omitField :: PongResponse -> Bool # | |||||
type Rep PongResponse Source # | |||||
Prompts Protocol
data PromptsListRequest Source #
Prompts list request
Constructors
PromptsListRequest |
Instances
Generic PromptsListRequest Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: PromptsListRequest -> Rep PromptsListRequest x # to :: Rep PromptsListRequest x -> PromptsListRequest # | |||||
Show PromptsListRequest Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> PromptsListRequest -> ShowS # show :: PromptsListRequest -> String # showList :: [PromptsListRequest] -> ShowS # | |||||
Eq PromptsListRequest Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: PromptsListRequest -> PromptsListRequest -> Bool # (/=) :: PromptsListRequest -> PromptsListRequest -> Bool # | |||||
FromJSON PromptsListRequest Source # | |||||
Defined in MCP.Server.Protocol Methods parseJSON :: Value -> Parser PromptsListRequest # parseJSONList :: Value -> Parser [PromptsListRequest] # | |||||
type Rep PromptsListRequest Source # | |||||
data PromptsListResponse Source #
Prompts list response
Constructors
PromptsListResponse | |
Fields |
Instances
Generic PromptsListResponse Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: PromptsListResponse -> Rep PromptsListResponse x # to :: Rep PromptsListResponse x -> PromptsListResponse # | |||||
Show PromptsListResponse Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> PromptsListResponse -> ShowS # show :: PromptsListResponse -> String # showList :: [PromptsListResponse] -> ShowS # | |||||
Eq PromptsListResponse Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: PromptsListResponse -> PromptsListResponse -> Bool # (/=) :: PromptsListResponse -> PromptsListResponse -> Bool # | |||||
ToJSON PromptsListResponse Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: PromptsListResponse -> Value # toEncoding :: PromptsListResponse -> Encoding # toJSONList :: [PromptsListResponse] -> Value # toEncodingList :: [PromptsListResponse] -> Encoding # omitField :: PromptsListResponse -> Bool # | |||||
type Rep PromptsListResponse Source # | |||||
Defined in MCP.Server.Protocol type Rep PromptsListResponse = D1 ('MetaData "PromptsListResponse" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "PromptsListResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "promptsListPrompts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PromptDefinition]))) |
data PromptsGetRequest Source #
Prompts get request
Constructors
PromptsGetRequest | |
Fields
|
Instances
Generic PromptsGetRequest Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: PromptsGetRequest -> Rep PromptsGetRequest x # to :: Rep PromptsGetRequest x -> PromptsGetRequest # | |||||
Show PromptsGetRequest Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> PromptsGetRequest -> ShowS # show :: PromptsGetRequest -> String # showList :: [PromptsGetRequest] -> ShowS # | |||||
Eq PromptsGetRequest Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: PromptsGetRequest -> PromptsGetRequest -> Bool # (/=) :: PromptsGetRequest -> PromptsGetRequest -> Bool # | |||||
FromJSON PromptsGetRequest Source # | |||||
Defined in MCP.Server.Protocol Methods parseJSON :: Value -> Parser PromptsGetRequest # parseJSONList :: Value -> Parser [PromptsGetRequest] # | |||||
type Rep PromptsGetRequest Source # | |||||
Defined in MCP.Server.Protocol type Rep PromptsGetRequest = D1 ('MetaData "PromptsGetRequest" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "PromptsGetRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "promptsGetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "promptsGetArguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text Value))))) |
data PromptsGetResponse Source #
Prompts get response
Constructors
PromptsGetResponse | |
Fields |
Instances
Generic PromptsGetResponse Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: PromptsGetResponse -> Rep PromptsGetResponse x # to :: Rep PromptsGetResponse x -> PromptsGetResponse # | |||||
Show PromptsGetResponse Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> PromptsGetResponse -> ShowS # show :: PromptsGetResponse -> String # showList :: [PromptsGetResponse] -> ShowS # | |||||
Eq PromptsGetResponse Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: PromptsGetResponse -> PromptsGetResponse -> Bool # (/=) :: PromptsGetResponse -> PromptsGetResponse -> Bool # | |||||
ToJSON PromptsGetResponse Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: PromptsGetResponse -> Value # toEncoding :: PromptsGetResponse -> Encoding # toJSONList :: [PromptsGetResponse] -> Value # toEncodingList :: [PromptsGetResponse] -> Encoding # omitField :: PromptsGetResponse -> Bool # | |||||
type Rep PromptsGetResponse Source # | |||||
Defined in MCP.Server.Protocol type Rep PromptsGetResponse = D1 ('MetaData "PromptsGetResponse" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "PromptsGetResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "promptsGetDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "promptsGetMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PromptMessage]))) |
data PromptMessage Source #
Prompt message
Constructors
PromptMessage | |
Fields |
Instances
Generic PromptMessage Source # | |||||
Defined in MCP.Server.Protocol Associated Types
| |||||
Show PromptMessage Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> PromptMessage -> ShowS # show :: PromptMessage -> String # showList :: [PromptMessage] -> ShowS # | |||||
Eq PromptMessage Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: PromptMessage -> PromptMessage -> Bool # (/=) :: PromptMessage -> PromptMessage -> Bool # | |||||
ToJSON PromptMessage Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: PromptMessage -> Value # toEncoding :: PromptMessage -> Encoding # toJSONList :: [PromptMessage] -> Value # toEncodingList :: [PromptMessage] -> Encoding # omitField :: PromptMessage -> Bool # | |||||
type Rep PromptMessage Source # | |||||
Defined in MCP.Server.Protocol type Rep PromptMessage = D1 ('MetaData "PromptMessage" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "PromptMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "promptMessageRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageRole) :*: S1 ('MetaSel ('Just "promptMessageContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Content))) |
data MessageRole Source #
Message role for prompts
Constructors
RoleUser | |
RoleAssistant |
Instances
Generic MessageRole Source # | |||||
Defined in MCP.Server.Protocol Associated Types
| |||||
Show MessageRole Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> MessageRole -> ShowS # show :: MessageRole -> String # showList :: [MessageRole] -> ShowS # | |||||
Eq MessageRole Source # | |||||
Defined in MCP.Server.Protocol | |||||
ToJSON MessageRole Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: MessageRole -> Value # toEncoding :: MessageRole -> Encoding # toJSONList :: [MessageRole] -> Value # toEncodingList :: [MessageRole] -> Encoding # omitField :: MessageRole -> Bool # | |||||
type Rep MessageRole Source # | |||||
Resources Protocol
data ResourcesListRequest Source #
Resources list request
Constructors
ResourcesListRequest |
Instances
Generic ResourcesListRequest Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: ResourcesListRequest -> Rep ResourcesListRequest x # to :: Rep ResourcesListRequest x -> ResourcesListRequest # | |||||
Show ResourcesListRequest Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> ResourcesListRequest -> ShowS # show :: ResourcesListRequest -> String # showList :: [ResourcesListRequest] -> ShowS # | |||||
Eq ResourcesListRequest Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: ResourcesListRequest -> ResourcesListRequest -> Bool # (/=) :: ResourcesListRequest -> ResourcesListRequest -> Bool # | |||||
FromJSON ResourcesListRequest Source # | |||||
Defined in MCP.Server.Protocol Methods parseJSON :: Value -> Parser ResourcesListRequest # parseJSONList :: Value -> Parser [ResourcesListRequest] # | |||||
type Rep ResourcesListRequest Source # | |||||
data ResourcesListResponse Source #
Resources list response
Constructors
ResourcesListResponse | |
Fields |
Instances
Generic ResourcesListResponse Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: ResourcesListResponse -> Rep ResourcesListResponse x # to :: Rep ResourcesListResponse x -> ResourcesListResponse # | |||||
Show ResourcesListResponse Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> ResourcesListResponse -> ShowS # show :: ResourcesListResponse -> String # showList :: [ResourcesListResponse] -> ShowS # | |||||
Eq ResourcesListResponse Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: ResourcesListResponse -> ResourcesListResponse -> Bool # (/=) :: ResourcesListResponse -> ResourcesListResponse -> Bool # | |||||
ToJSON ResourcesListResponse Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: ResourcesListResponse -> Value # toEncoding :: ResourcesListResponse -> Encoding # toJSONList :: [ResourcesListResponse] -> Value # toEncodingList :: [ResourcesListResponse] -> Encoding # omitField :: ResourcesListResponse -> Bool # | |||||
type Rep ResourcesListResponse Source # | |||||
Defined in MCP.Server.Protocol type Rep ResourcesListResponse = D1 ('MetaData "ResourcesListResponse" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "ResourcesListResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourcesListResources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ResourceDefinition]))) |
data ResourcesReadRequest Source #
Resources read request
Constructors
ResourcesReadRequest | |
Fields |
Instances
Generic ResourcesReadRequest Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: ResourcesReadRequest -> Rep ResourcesReadRequest x # to :: Rep ResourcesReadRequest x -> ResourcesReadRequest # | |||||
Show ResourcesReadRequest Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> ResourcesReadRequest -> ShowS # show :: ResourcesReadRequest -> String # showList :: [ResourcesReadRequest] -> ShowS # | |||||
Eq ResourcesReadRequest Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: ResourcesReadRequest -> ResourcesReadRequest -> Bool # (/=) :: ResourcesReadRequest -> ResourcesReadRequest -> Bool # | |||||
FromJSON ResourcesReadRequest Source # | |||||
Defined in MCP.Server.Protocol Methods parseJSON :: Value -> Parser ResourcesReadRequest # parseJSONList :: Value -> Parser [ResourcesReadRequest] # | |||||
type Rep ResourcesReadRequest Source # | |||||
Defined in MCP.Server.Protocol type Rep ResourcesReadRequest = D1 ('MetaData "ResourcesReadRequest" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "ResourcesReadRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourcesReadUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URI))) |
data ResourcesReadResponse Source #
Resources read response
Constructors
ResourcesReadResponse | |
Fields |
Instances
Generic ResourcesReadResponse Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: ResourcesReadResponse -> Rep ResourcesReadResponse x # to :: Rep ResourcesReadResponse x -> ResourcesReadResponse # | |||||
Show ResourcesReadResponse Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> ResourcesReadResponse -> ShowS # show :: ResourcesReadResponse -> String # showList :: [ResourcesReadResponse] -> ShowS # | |||||
Eq ResourcesReadResponse Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: ResourcesReadResponse -> ResourcesReadResponse -> Bool # (/=) :: ResourcesReadResponse -> ResourcesReadResponse -> Bool # | |||||
ToJSON ResourcesReadResponse Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: ResourcesReadResponse -> Value # toEncoding :: ResourcesReadResponse -> Encoding # toJSONList :: [ResourcesReadResponse] -> Value # toEncodingList :: [ResourcesReadResponse] -> Encoding # omitField :: ResourcesReadResponse -> Bool # | |||||
type Rep ResourcesReadResponse Source # | |||||
Defined in MCP.Server.Protocol type Rep ResourcesReadResponse = D1 ('MetaData "ResourcesReadResponse" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "ResourcesReadResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourcesReadContents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Content]))) |
Tools Protocol
data ToolsListRequest Source #
Tools list request
Constructors
ToolsListRequest |
Instances
Generic ToolsListRequest Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: ToolsListRequest -> Rep ToolsListRequest x # to :: Rep ToolsListRequest x -> ToolsListRequest # | |||||
Show ToolsListRequest Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> ToolsListRequest -> ShowS # show :: ToolsListRequest -> String # showList :: [ToolsListRequest] -> ShowS # | |||||
Eq ToolsListRequest Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: ToolsListRequest -> ToolsListRequest -> Bool # (/=) :: ToolsListRequest -> ToolsListRequest -> Bool # | |||||
FromJSON ToolsListRequest Source # | |||||
Defined in MCP.Server.Protocol Methods parseJSON :: Value -> Parser ToolsListRequest # parseJSONList :: Value -> Parser [ToolsListRequest] # | |||||
type Rep ToolsListRequest Source # | |||||
data ToolsListResponse Source #
Tools list response
Constructors
ToolsListResponse | |
Fields |
Instances
Generic ToolsListResponse Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: ToolsListResponse -> Rep ToolsListResponse x # to :: Rep ToolsListResponse x -> ToolsListResponse # | |||||
Show ToolsListResponse Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> ToolsListResponse -> ShowS # show :: ToolsListResponse -> String # showList :: [ToolsListResponse] -> ShowS # | |||||
Eq ToolsListResponse Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: ToolsListResponse -> ToolsListResponse -> Bool # (/=) :: ToolsListResponse -> ToolsListResponse -> Bool # | |||||
ToJSON ToolsListResponse Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: ToolsListResponse -> Value # toEncoding :: ToolsListResponse -> Encoding # toJSONList :: [ToolsListResponse] -> Value # toEncodingList :: [ToolsListResponse] -> Encoding # omitField :: ToolsListResponse -> Bool # | |||||
type Rep ToolsListResponse Source # | |||||
Defined in MCP.Server.Protocol type Rep ToolsListResponse = D1 ('MetaData "ToolsListResponse" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "ToolsListResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "toolsListTools") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ToolDefinition]))) |
data ToolsCallRequest Source #
Tools call request
Constructors
ToolsCallRequest | |
Fields
|
Instances
Generic ToolsCallRequest Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: ToolsCallRequest -> Rep ToolsCallRequest x # to :: Rep ToolsCallRequest x -> ToolsCallRequest # | |||||
Show ToolsCallRequest Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> ToolsCallRequest -> ShowS # show :: ToolsCallRequest -> String # showList :: [ToolsCallRequest] -> ShowS # | |||||
Eq ToolsCallRequest Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: ToolsCallRequest -> ToolsCallRequest -> Bool # (/=) :: ToolsCallRequest -> ToolsCallRequest -> Bool # | |||||
FromJSON ToolsCallRequest Source # | |||||
Defined in MCP.Server.Protocol Methods parseJSON :: Value -> Parser ToolsCallRequest # parseJSONList :: Value -> Parser [ToolsCallRequest] # | |||||
type Rep ToolsCallRequest Source # | |||||
Defined in MCP.Server.Protocol type Rep ToolsCallRequest = D1 ('MetaData "ToolsCallRequest" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "ToolsCallRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "toolsCallName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "toolsCallArguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text Value))))) |
data ToolsCallResponse Source #
Tools call response
Constructors
ToolsCallResponse | |
Fields
|
Instances
Generic ToolsCallResponse Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: ToolsCallResponse -> Rep ToolsCallResponse x # to :: Rep ToolsCallResponse x -> ToolsCallResponse # | |||||
Show ToolsCallResponse Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> ToolsCallResponse -> ShowS # show :: ToolsCallResponse -> String # showList :: [ToolsCallResponse] -> ShowS # | |||||
Eq ToolsCallResponse Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: ToolsCallResponse -> ToolsCallResponse -> Bool # (/=) :: ToolsCallResponse -> ToolsCallResponse -> Bool # | |||||
ToJSON ToolsCallResponse Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: ToolsCallResponse -> Value # toEncoding :: ToolsCallResponse -> Encoding # toJSONList :: [ToolsCallResponse] -> Value # toEncodingList :: [ToolsCallResponse] -> Encoding # omitField :: ToolsCallResponse -> Bool # | |||||
type Rep ToolsCallResponse Source # | |||||
Defined in MCP.Server.Protocol type Rep ToolsCallResponse = D1 ('MetaData "ToolsCallResponse" "MCP.Server.Protocol" "mcp-server-0.1.0.8-inplace" 'False) (C1 ('MetaCons "ToolsCallResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "toolsCallContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Content]) :*: S1 ('MetaSel ('Just "toolsCallIsError") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) |
Common Types
data ListChangedNotification Source #
List changed notification
Constructors
ListChangedNotification |
Instances
Generic ListChangedNotification Source # | |||||
Defined in MCP.Server.Protocol Associated Types
Methods from :: ListChangedNotification -> Rep ListChangedNotification x # to :: Rep ListChangedNotification x -> ListChangedNotification # | |||||
Show ListChangedNotification Source # | |||||
Defined in MCP.Server.Protocol Methods showsPrec :: Int -> ListChangedNotification -> ShowS # show :: ListChangedNotification -> String # showList :: [ListChangedNotification] -> ShowS # | |||||
Eq ListChangedNotification Source # | |||||
Defined in MCP.Server.Protocol Methods (==) :: ListChangedNotification -> ListChangedNotification -> Bool # (/=) :: ListChangedNotification -> ListChangedNotification -> Bool # | |||||
ToJSON ListChangedNotification Source # | |||||
Defined in MCP.Server.Protocol Methods toJSON :: ListChangedNotification -> Value # toEncoding :: ListChangedNotification -> Encoding # toJSONList :: [ListChangedNotification] -> Value # | |||||
type Rep ListChangedNotification Source # | |||||