packages feed

mcp-server 0.2.0.2 → 0.3.0.0

raw patch · 7 files changed

+98/−1 lines, 7 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- MCP.Server.Derive: instance GHC.Show.Show MCP.Server.Derive.DefinitionOptions
- MCP.Server.JsonRpc: instance GHC.Generics.Generic MCP.Server.JsonRpc.JsonRpcError
- MCP.Server.JsonRpc: instance GHC.Generics.Generic MCP.Server.JsonRpc.JsonRpcMessage
- MCP.Server.JsonRpc: instance GHC.Generics.Generic MCP.Server.JsonRpc.JsonRpcNotification
- MCP.Server.JsonRpc: instance GHC.Generics.Generic MCP.Server.JsonRpc.JsonRpcRequest
- MCP.Server.JsonRpc: instance GHC.Generics.Generic MCP.Server.JsonRpc.JsonRpcResponse
- MCP.Server.JsonRpc: instance GHC.Generics.Generic MCP.Server.JsonRpc.RequestId
- MCP.Server.JsonRpc: instance GHC.Show.Show MCP.Server.JsonRpc.JsonRpcError
- MCP.Server.JsonRpc: instance GHC.Show.Show MCP.Server.JsonRpc.JsonRpcMessage
- MCP.Server.JsonRpc: instance GHC.Show.Show MCP.Server.JsonRpc.JsonRpcNotification
- MCP.Server.JsonRpc: instance GHC.Show.Show MCP.Server.JsonRpc.JsonRpcRequest
- MCP.Server.JsonRpc: instance GHC.Show.Show MCP.Server.JsonRpc.JsonRpcResponse
- MCP.Server.JsonRpc: instance GHC.Show.Show MCP.Server.JsonRpc.RequestId
- MCP.Server.Notifications: instance GHC.Show.Show MCP.Server.Notifications.ChangeEvent
- MCP.Server.Notifications: instance GHC.Show.Show MCP.Server.Notifications.NotificationFilter
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.CompleteRequest
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.CompleteResponse
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.InitializeRequest
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.InitializeResponse
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.InitializedNotification
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.ListChangedNotification
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.PingRequest
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.PongResponse
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.PromptsGetRequest
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.PromptsGetResponse
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.PromptsListRequest
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.PromptsListResponse
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.ResourcesListRequest
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.ResourcesListResponse
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.ResourcesReadRequest
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.ResourcesReadResponse
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.ResourcesTemplatesListResponse
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.ToolsCallRequest
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.ToolsCallResponse
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.ToolsListRequest
- MCP.Server.Protocol: instance GHC.Generics.Generic MCP.Server.Protocol.ToolsListResponse
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.CompleteRequest
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.CompleteResponse
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.InitializeRequest
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.InitializeResponse
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.InitializedNotification
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.ListChangedNotification
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.PingRequest
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.PongResponse
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.PromptsGetRequest
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.PromptsGetResponse
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.PromptsListRequest
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.PromptsListResponse
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.ResourcesListRequest
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.ResourcesListResponse
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.ResourcesReadRequest
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.ResourcesReadResponse
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.ResourcesTemplatesListResponse
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.ToolsCallRequest
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.ToolsCallResponse
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.ToolsListRequest
- MCP.Server.Protocol: instance GHC.Show.Show MCP.Server.Protocol.ToolsListResponse
- MCP.Server.Types: instance GHC.Enum.Bounded MCP.Server.Types.LogLevel
- MCP.Server.Types: instance GHC.Enum.Enum MCP.Server.Types.LogLevel
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.Annotations
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ArgumentDefinition
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.CompletionCapabilities
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.CompletionRef
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.CompletionResult
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.Content
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ContentAudioData
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ContentImageData
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.Error
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.Icon
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.LogLevel
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.LoggingCapabilities
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.McpServerInfo
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.MessageRole
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.PromptCapabilities
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.PromptDefinition
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.PromptMessage
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.PromptResult
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ResourceCapabilities
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ResourceContent
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ResourceDefinition
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ResourceTemplateDefinition
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.Schema
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.SchemaType
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ServerCapabilities
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ToolAnnotations
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ToolCapabilities
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ToolDefinition
- MCP.Server.Types: instance GHC.Generics.Generic MCP.Server.Types.ToolResult
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.Annotations
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ArgumentDefinition
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.CacheHints
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.CompletionCapabilities
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.CompletionRef
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.CompletionResult
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.Content
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ContentAudioData
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ContentImageData
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.Error
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.Icon
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.LogLevel
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.LoggingCapabilities
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.McpServerInfo
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.MessageRole
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.NotificationSupport
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.PromptCapabilities
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.PromptDefinition
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.PromptMessage
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.PromptResult
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ResourceCapabilities
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ResourceContent
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ResourceDefinition
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ResourceTemplateDefinition
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.Schema
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.SchemaType
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ServerCapabilities
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ToolAnnotations
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ToolCapabilities
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ToolDefinition
- MCP.Server.Types: instance GHC.Show.Show MCP.Server.Types.ToolResult
- MCP.Server.Types: instance GHC.Show.Show o => GHC.Show.Show (MCP.Server.Types.ToolOutput o)
+ MCP.Server.Derive: instance GHC.Internal.Show.Show MCP.Server.Derive.DefinitionOptions
+ MCP.Server.JsonRpc: instance GHC.Internal.Generics.Generic MCP.Server.JsonRpc.JsonRpcError
+ MCP.Server.JsonRpc: instance GHC.Internal.Generics.Generic MCP.Server.JsonRpc.JsonRpcMessage
+ MCP.Server.JsonRpc: instance GHC.Internal.Generics.Generic MCP.Server.JsonRpc.JsonRpcNotification
+ MCP.Server.JsonRpc: instance GHC.Internal.Generics.Generic MCP.Server.JsonRpc.JsonRpcRequest
+ MCP.Server.JsonRpc: instance GHC.Internal.Generics.Generic MCP.Server.JsonRpc.JsonRpcResponse
+ MCP.Server.JsonRpc: instance GHC.Internal.Generics.Generic MCP.Server.JsonRpc.RequestId
+ MCP.Server.JsonRpc: instance GHC.Internal.Show.Show MCP.Server.JsonRpc.JsonRpcError
+ MCP.Server.JsonRpc: instance GHC.Internal.Show.Show MCP.Server.JsonRpc.JsonRpcMessage
+ MCP.Server.JsonRpc: instance GHC.Internal.Show.Show MCP.Server.JsonRpc.JsonRpcNotification
+ MCP.Server.JsonRpc: instance GHC.Internal.Show.Show MCP.Server.JsonRpc.JsonRpcRequest
+ MCP.Server.JsonRpc: instance GHC.Internal.Show.Show MCP.Server.JsonRpc.JsonRpcResponse
+ MCP.Server.JsonRpc: instance GHC.Internal.Show.Show MCP.Server.JsonRpc.RequestId
+ MCP.Server.Notifications: instance GHC.Internal.Show.Show MCP.Server.Notifications.ChangeEvent
+ MCP.Server.Notifications: instance GHC.Internal.Show.Show MCP.Server.Notifications.NotificationFilter
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.CompleteRequest
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.CompleteResponse
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.InitializeRequest
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.InitializeResponse
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.InitializedNotification
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.ListChangedNotification
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.PingRequest
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.PongResponse
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.PromptsGetRequest
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.PromptsGetResponse
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.PromptsListRequest
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.PromptsListResponse
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.ResourcesListRequest
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.ResourcesListResponse
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.ResourcesReadRequest
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.ResourcesReadResponse
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.ResourcesTemplatesListResponse
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.ToolsCallRequest
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.ToolsCallResponse
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.ToolsListRequest
+ MCP.Server.Protocol: instance GHC.Internal.Generics.Generic MCP.Server.Protocol.ToolsListResponse
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.CompleteRequest
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.CompleteResponse
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.InitializeRequest
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.InitializeResponse
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.InitializedNotification
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.ListChangedNotification
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.PingRequest
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.PongResponse
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.PromptsGetRequest
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.PromptsGetResponse
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.PromptsListRequest
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.PromptsListResponse
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.ResourcesListRequest
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.ResourcesListResponse
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.ResourcesReadRequest
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.ResourcesReadResponse
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.ResourcesTemplatesListResponse
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.ToolsCallRequest
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.ToolsCallResponse
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.ToolsListRequest
+ MCP.Server.Protocol: instance GHC.Internal.Show.Show MCP.Server.Protocol.ToolsListResponse
+ MCP.Server.Types: SchemaRaw :: Object -> SchemaType
+ MCP.Server.Types: instance GHC.Internal.Enum.Bounded MCP.Server.Types.LogLevel
+ MCP.Server.Types: instance GHC.Internal.Enum.Enum MCP.Server.Types.LogLevel
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.Annotations
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ArgumentDefinition
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.CompletionCapabilities
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.CompletionRef
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.CompletionResult
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.Content
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ContentAudioData
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ContentImageData
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.Error
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.Icon
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.LogLevel
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.LoggingCapabilities
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.McpServerInfo
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.MessageRole
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.PromptCapabilities
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.PromptDefinition
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.PromptMessage
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.PromptResult
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ResourceCapabilities
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ResourceContent
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ResourceDefinition
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ResourceTemplateDefinition
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.Schema
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.SchemaType
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ServerCapabilities
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ToolAnnotations
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ToolCapabilities
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ToolDefinition
+ MCP.Server.Types: instance GHC.Internal.Generics.Generic MCP.Server.Types.ToolResult
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.Annotations
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ArgumentDefinition
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.CacheHints
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.CompletionCapabilities
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.CompletionRef
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.CompletionResult
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.Content
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ContentAudioData
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ContentImageData
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.Error
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.Icon
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.LogLevel
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.LoggingCapabilities
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.McpServerInfo
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.MessageRole
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.NotificationSupport
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.PromptCapabilities
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.PromptDefinition
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.PromptMessage
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.PromptResult
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ResourceCapabilities
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ResourceContent
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ResourceDefinition
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ResourceTemplateDefinition
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.Schema
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.SchemaType
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ServerCapabilities
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ToolAnnotations
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ToolCapabilities
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ToolDefinition
+ MCP.Server.Types: instance GHC.Internal.Show.Show MCP.Server.Types.ToolResult
+ MCP.Server.Types: instance GHC.Internal.Show.Show o => GHC.Internal.Show.Show (MCP.Server.Types.ToolOutput o)

Files

CHANGELOG.md view
@@ -1,5 +1,14 @@ # Revision history for mcp-server +## 0.3.0.0 - 2026-10-16++* Raw JSON Schema keywords (ADR 0014): `SchemaRaw` is a new `SchemaType`+  that serializes its keywords as given, for schemas the other shapes+  cannot express, such as `null`, `anyOf`, `$defs`/`$ref` or numeric+  bounds. A `schemaDescription` alongside it replaces any `description`+  among the keywords. BREAKING: exhaustive matches on `SchemaType` need a+  case for it.+ ## 0.2.0.2 - 2026-09-08  * stdio: in-flight requests are drained at stdin EOF instead of being
README.md view
@@ -420,6 +420,24 @@ handlers = noHandlers { prompts = Just (promptListHandler, promptGetHandler) } ``` +Tool schemas built by hand can use `SchemaRaw` for anything the typed+shapes cannot express — `null`, `anyOf`, `$defs` and `$ref`, numeric bounds+— and it is serialized as given:++```haskell+import Data.Aeson (object, (.=))+import qualified Data.Aeson.KeyMap as KeyMap+import Data.Text (Text)++nullableCount :: Schema+nullableCount = schema $ SchemaRaw $ KeyMap.fromList+    [ "anyOf" .= [object ["type" .= ("null" :: Text)], object ["type" .= ("integer" :: Text), "minimum" .= (0 :: Int)]] ]+```++A `$ref` such as `#/$defs/node` resolves against the root of the whole+input schema, not the raw fragment it appears in, so a recursive schema is+best written raw from the root down.+ ## Transports  ### stdio
mcp-server.cabal view
@@ -15,7 +15,7 @@ -- PVP summary:     +-+------- breaking API changes --                  | | +----- non-breaking API additions --                  | | | +--- code changes with no API change-version: 0.2.0.2+version: 0.3.0.0 -- A short (one-line) description of the package. synopsis: Library for building Model Context Protocol (MCP) servers -- A longer description of the package.@@ -191,6 +191,7 @@     Spec.ModernEra     Spec.Progress     Spec.ProtocolVersionNegotiation+    Spec.RawSchema     Spec.SchemaValidation     Spec.Subscriptions     Spec.TemplatesCompletions
src/MCP/Server/Types.hs view
@@ -528,6 +528,11 @@   | SchemaArray Schema   | SchemaObject [(Text, Schema)] [Text]     -- ^ Properties and the names of the required ones+  | SchemaRaw Object+    -- ^ JSON Schema keywords, serialized as given. An escape hatch for+    -- schemas the other shapes cannot express, such as @null@, @anyOf@,+    -- @$defs@ and @$ref@, or numeric bounds. The library does not check+    -- them; a tool's input schema must still describe an object.   deriving (Show, Eq, Generic)  -- | A schema with no description.@@ -539,6 +544,8 @@ describedSchema desc = Schema (Just desc)  instance ToJSON Schema where+  -- The description comes last, so for raw keywords it replaces any+  -- description they contain.   toJSON (Schema desc shape) = object $     typeFields shape ++ maybe [] (\d -> ["description" .= d]) desc     where@@ -558,6 +565,7 @@         , "properties" .= object (map (\(k, v) -> fromText k .= v) props)         , "required" .= req         ]+      typeFields (SchemaRaw keywords) = KM.toList keywords  -- | Prompt definition (2025-06-18 enhanced) data PromptDefinition = PromptDefinition
test/HspecMain.hs view
@@ -17,6 +17,7 @@ import qualified Spec.ModernEra import qualified Spec.Progress import qualified Spec.ProtocolVersionNegotiation+import qualified Spec.RawSchema import qualified Spec.Subscriptions import qualified Spec.TemplatesCompletions import qualified Spec.ToolCallParsing@@ -39,6 +40,7 @@     Spec.ModernEra.spec     Spec.Progress.spec     Spec.ProtocolVersionNegotiation.spec+    Spec.RawSchema.spec     Spec.Subscriptions.spec     Spec.TemplatesCompletions.spec     Spec.ToolCallParsing.spec
+ test/Spec/RawSchema.hs view
@@ -0,0 +1,55 @@+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}++-- | Coverage for raw JSON Schema keywords (ADR 0014).+module Spec.RawSchema (spec) where++import Data.Aeson+import qualified Data.Aeson.KeyMap as KM+import Data.Text (Text)+import MCP.Server+import Test.Hspec++-- | Keywords none of the other shapes can express: a nullable union and a+-- recursive definition.+treeKeywords :: Object+treeKeywords = KM.fromList+  [ "$defs" .= object+      [ "tree" .= object+          [ "type" .= ("object" :: Text)+          , "properties" .= object+              [ "label" .= object ["type" .= ("string" :: Text)]+              , "children" .= object ["type" .= ("array" :: Text), "items" .= object ["$ref" .= ("#/$defs/tree" :: Text)]]+              ]+          , "required" .= (["label", "children"] :: [Text])+          ]+      ]+  , "type" .= ("object" :: Text)+  , "properties" .= object+      [ "root" .= object ["anyOf" .= [object ["type" .= ("null" :: Text)], object ["$ref" .= ("#/$defs/tree" :: Text)]]]+      ]+  , "required" .= (["root"] :: [Text])+  ]++spec :: Spec+spec = describe "Raw schemas" $ do+  it "serializes raw keywords as given" $+    toJSON (schema (SchemaRaw treeKeywords)) `shouldBe` Object treeKeywords++  it "adds a description, replacing one in the keywords" $+    toJSON (describedSchema "Outer" (SchemaRaw (KM.fromList ["type" .= ("integer" :: Text), "description" .= ("Inner" :: Text)])))+      `shouldBe` object ["type" .= ("integer" :: Text), "description" .= ("Outer" :: Text)]++  it "nests inside the other shapes" $+    toJSON (schema (SchemaObject [("count", schema (SchemaRaw (KM.fromList ["type" .= ("integer" :: Text), "minimum" .= (0 :: Int)])))] ["count"]))+      `shouldBe` object+        [ "type" .= ("object" :: Text)+        , "properties" .= object ["count" .= object ["type" .= ("integer" :: Text), "minimum" .= (0 :: Int)]]+        , "required" .= (["count"] :: [Text])+        ]++  it "reaches the wire as a tool's input schema" $ do+    let definition = mkToolDefinition "plant" "Plant a tree" (schema (SchemaRaw treeKeywords))+    toJSON definition `shouldSatisfy` \case+      Object fields -> KM.lookup "inputSchema" fields == Just (Object treeKeywords)+      _ -> False
test/TestHelpers.hs view
@@ -18,6 +18,7 @@   ) where  import           Data.Aeson (Value (..))+import qualified Data.Aeson.KeyMap as KM import           Data.Map   (Map) import qualified Data.Map   as Map import           Data.Text  (Text)@@ -71,6 +72,9 @@   SchemaBoolean    -> "boolean"   SchemaArray _    -> "array"   SchemaObject _ _ -> "object"+  SchemaRaw keywords -> case KM.lookup "type" keywords of+    Just (String name) -> name+    _                  -> "raw"  -- | The properties of an object schema (empty for non-objects). schemaProps :: Schema -> [(Text, Schema)]