askell-mcp 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/spec/openapi-v2.json +7 -0
- package/src/server.ts +1 -0
- package/src/tools/analysis.ts +1 -1
package/package.json
CHANGED
package/spec/openapi-v2.json
CHANGED
|
@@ -4915,6 +4915,13 @@
|
|
|
4915
4915
|
"metadata": {
|
|
4916
4916
|
"$ref": "#/components/schemas/V2Metadata"
|
|
4917
4917
|
},
|
|
4918
|
+
"subscriber_page": {
|
|
4919
|
+
"type": "string",
|
|
4920
|
+
"format": "uri",
|
|
4921
|
+
"nullable": true,
|
|
4922
|
+
"readOnly": true,
|
|
4923
|
+
"description": "Absolute URL of the customer-facing subscription management page for this contract."
|
|
4924
|
+
},
|
|
4918
4925
|
"created_at": {
|
|
4919
4926
|
"type": "string",
|
|
4920
4927
|
"format": "date-time"
|
package/src/server.ts
CHANGED
|
@@ -53,6 +53,7 @@ V2 discounts — two systems, not v1 Subscription.discount (0-100 on a PlanVaria
|
|
|
53
53
|
|
|
54
54
|
V2 checkout notes:
|
|
55
55
|
- checkout_url on V2 checkouts points to the API object URL, not a hosted payment page.
|
|
56
|
+
- GET contract.subscriber_page is the customer-facing subscription management URL (readOnly, nullable). Not checkout_url, not v1 /public/payments/{id}/ (hosted signup). Do not send it on create/patch.
|
|
56
57
|
- finalize: a recurring offer needs a verified payment method even when due-now/total is 0 (trial or fully discounted first period). Only a free one-time purchase finalizes without one. Live docs still say "unless 0 ISK" — ignore that; bundled OpenAPI is right.
|
|
57
58
|
- Hosted POST /v2/checkouts/: shipping {option, location_id?} is required when the offer has physical products and the account has active shipping options. No shipping-options list in OpenAPI (ids are account config). Pickup options need location_id. Snapshot is contract.shipping_selection, not on V2Checkout.
|
|
58
59
|
- Embedded checkout uses POST /v2/checkout-sessions/ plus browser session-token sub-paths (widget collects address/shipping; see docs, not all in OpenAPI).
|
package/src/tools/analysis.ts
CHANGED
|
@@ -141,7 +141,7 @@ export function registerAnalysisTools(
|
|
|
141
141
|
{
|
|
142
142
|
title: 'Subscription contract overview (v2)',
|
|
143
143
|
description:
|
|
144
|
-
'Fetch a v2 subscription contract and recent billing runs filtered by contract id. The contract payload includes `discount` (active coupon) when one is applied,
|
|
144
|
+
'Fetch a v2 subscription contract and recent billing runs filtered by contract id. The contract payload includes `discount` (active coupon) when one is applied, `shipping_selection` when shipping was chosen at checkout, and `subscriber_page` (customer-facing management URL, read-only).',
|
|
145
145
|
inputSchema: z.object({
|
|
146
146
|
contractId: z
|
|
147
147
|
.union([z.string().min(1), z.int()])
|