pms-ui-request 0.0.6.0 → 0.0.7.0
raw patch · 3 files changed
+6/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- pms-ui-request.cabal +1/−1
- src/PMS/UI/Request/DS/Core.hs +1/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for pms-ui-request +## 0.0.7.0 -- 2026-06-15++* Fixed notifications/initialized parser to accept params field regardless of presence (MCP spec compliance for antigravity2 client).+ ## 0.0.6.0 -- 2025-07-27 * Fixed resources templates.
pms-ui-request.cabal view
@@ -20,7 +20,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.0.6.0+version: 0.0.7.0 -- A short (one-line) description of the package. synopsis: pms-ui-request
src/PMS/UI/Request/DS/Core.hs view
@@ -116,7 +116,7 @@ decodeReq "resources/templates/list" _ req = pure . DM.McpResourcesTemplatesListRequest . DM.McpResourcesTemplatesListRequestData $ req decodeReq "resources/list" _ req = pure . DM.McpResourcesListRequest . DM.McpResourcesListRequestData $ req decodeReq "resources/read" (Just (DM.RawJsonByteString rawJson)) req = DM.McpResourcesReadRequest . DM.McpResourcesReadRequestData req <$> (liftEither (eitherDecode rawJson))-decodeReq "notifications/initialized" Nothing req = pure . DM.McpInitializedNotification . DM.McpInitializedNotificationData $ req+decodeReq "notifications/initialized" _ req = pure . DM.McpInitializedNotification . DM.McpInitializedNotificationData $ req -- params field is ignored regardless of presence (MCP spec: params carries no meaningful information) decodeReq "notifications/cancelled" (Just (DM.RawJsonByteString rawJson)) req = DM.McpCancelledNotification . DM.McpCancelledNotificationData req <$> (liftEither (eitherDecode rawJson)) decodeReq "completion/complete" (Just (DM.RawJsonByteString rawJson)) req = DM.McpCompletionCompleteRequest . DM.McpCompletionCompleteRequestData req <$> (liftEither (eitherDecode rawJson)) decodeReq _ _ req = throwError $ "unsupported method: " ++ show req