packages feed

mcp-server 0.3.0.1 → 0.3.0.2

raw patch · 3 files changed

+13/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,11 @@ # Revision history for mcp-server +## 0.3.0.2 - 2026-11-19++* Build against `http-types` older than 0.12.5 again: the HTTP transport+  took `hOrigin` from `Network.HTTP.Types`, which only re-exports header+  names from 0.12.5 (#48).+ ## 0.3.0.1 - 2026-10-20  Handlers can ask the user for input part-way through a request: the
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.3.0.1+version: 0.3.0.2 -- A short (one-line) description of the package. synopsis: Library for building Model Context Protocol (MCP) servers -- A longer description of the package.
src/MCP/Server/Transport/Http.hs view
@@ -39,7 +39,12 @@ import qualified Data.Text                as T import qualified Data.Text.Encoding       as TE import           Data.Text.Encoding.Error (lenientDecode)-import           Network.HTTP.Types+import           Network.HTTP.Types       (ResponseHeaders, Status, status200,+                                           status202, status400, status401,+                                           status403, status404, status405)+-- Header names come from the Header module: Network.HTTP.Types only+-- re-exports all of them from http-types 0.12.5.+import           Network.HTTP.Types.Header (hAuthorization, hOrigin) import qualified Network.Wai              as Wai import qualified Network.Wai.Handler.Warp as Warp import           System.IO                (hPutStrLn, stderr)