@shippo/shippo-mcp 0.8.39 → 0.8.43
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/bin/mcp-server.js +68 -32
- package/bin/mcp-server.js.map +11 -11
- package/esm/funcs/batchesCreate.d.ts +9 -0
- package/esm/funcs/batchesCreate.d.ts.map +1 -1
- package/esm/funcs/batchesCreate.js +9 -0
- package/esm/funcs/batchesCreate.js.map +1 -1
- package/esm/funcs/batchesGet.d.ts +5 -4
- package/esm/funcs/batchesGet.d.ts.map +1 -1
- package/esm/funcs/batchesGet.js +5 -4
- package/esm/funcs/batchesGet.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools/batchesCreate.d.ts.map +1 -1
- package/esm/mcp-server/tools/batchesCreate.js +11 -1
- package/esm/mcp-server/tools/batchesCreate.js.map +1 -1
- package/esm/mcp-server/tools/batchesGet.d.ts.map +1 -1
- package/esm/mcp-server/tools/batchesGet.js +6 -4
- package/esm/mcp-server/tools/batchesGet.js.map +1 -1
- package/esm/models/order.d.ts +39 -11
- package/esm/models/order.d.ts.map +1 -1
- package/esm/models/order.js +36 -11
- package/esm/models/order.js.map +1 -1
- package/esm/models/ordercreaterequest.d.ts +10 -10
- package/esm/models/ordercreaterequest.d.ts.map +1 -1
- package/esm/models/ordercreaterequest.js +10 -10
- package/esm/models/ordercreaterequest.js.map +1 -1
- package/manifest.json +3 -3
- package/package.json +1 -1
- package/src/funcs/batchesCreate.ts +9 -0
- package/src/funcs/batchesGet.ts +5 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/batchesCreate.ts +11 -1
- package/src/mcp-server/tools/batchesGet.ts +6 -4
- package/src/models/order.ts +84 -22
- package/src/models/ordercreaterequest.ts +20 -20
package/bin/mcp-server.js
CHANGED
|
@@ -46623,9 +46623,9 @@ var init_config = __esm(() => {
|
|
|
46623
46623
|
SDK_METADATA = {
|
|
46624
46624
|
language: "typescript",
|
|
46625
46625
|
openapiDocVersion: "2018-02-08",
|
|
46626
|
-
sdkVersion: "0.8.
|
|
46626
|
+
sdkVersion: "0.8.43",
|
|
46627
46627
|
genVersion: "2.770.0",
|
|
46628
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.8.
|
|
46628
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.8.43 2.770.0 2018-02-08 @shippo/shippo-mcp"
|
|
46629
46629
|
};
|
|
46630
46630
|
});
|
|
46631
46631
|
|
|
@@ -49968,7 +49968,17 @@ var init_batchesCreate2 = __esm(() => {
|
|
|
49968
49968
|
name: "batches-create",
|
|
49969
49969
|
description: `Create a batch
|
|
49970
49970
|
|
|
49971
|
-
Creates a new batch object for purchasing shipping labels for many shipments at once. Batches are created asynchronously. This means that the API response won't include your batch shipments yet. You need to retrieve the batch later to verify that all batch shipments are valid
|
|
49971
|
+
Creates a new batch object for purchasing shipping labels for many shipments at once. Batches are created asynchronously. This means that the API response won't include your batch shipments yet. You need to retrieve the batch later to verify that all batch shipments are valid.
|
|
49972
|
+
|
|
49973
|
+
**IMPORTANT: There is NO batches-list endpoint in the Shippo API.**
|
|
49974
|
+
You must store the batch \`object_id\` returned from this endpoint to retrieve batches later using \`batches-get\`.
|
|
49975
|
+
|
|
49976
|
+
**Workflow:**
|
|
49977
|
+
1. Create batch → Save the returned \`object_id\`
|
|
49978
|
+
2. Retrieve batch status using \`batches-get\` with the saved ID
|
|
49979
|
+
3. Add/remove shipments as needed
|
|
49980
|
+
4. Purchase the batch when ready
|
|
49981
|
+
`,
|
|
49972
49982
|
annotations: {
|
|
49973
49983
|
title: "",
|
|
49974
49984
|
destructiveHint: false,
|
|
@@ -50113,10 +50123,12 @@ var init_batchesGet2 = __esm(() => {
|
|
|
50113
50123
|
name: "batches-get",
|
|
50114
50124
|
description: `Retrieve a batch
|
|
50115
50125
|
|
|
50116
|
-
Returns a batch using an object ID.
|
|
50117
|
-
|
|
50118
|
-
|
|
50119
|
-
|
|
50126
|
+
Returns a batch using an object ID. Batch shipments are displayed 100 at a time. You can iterate through each \`page\` using the \`?page=\` query parameter. You can also filter based on batch shipment status, for example, by passing a query param like \`?object_results=creation_failed\`.
|
|
50127
|
+
|
|
50128
|
+
**IMPORTANT: There is NO batches-list endpoint in the Shippo API.**
|
|
50129
|
+
You must know the batch \`object_id\` (returned when you created the batch) to retrieve it.
|
|
50130
|
+
Store batch IDs when creating batches if you need to access them later.
|
|
50131
|
+
`,
|
|
50120
50132
|
annotations: {
|
|
50121
50133
|
title: "",
|
|
50122
50134
|
destructiveHint: false,
|
|
@@ -53853,35 +53865,59 @@ var init_orderstatusenum = __esm(() => {
|
|
|
53853
53865
|
});
|
|
53854
53866
|
|
|
53855
53867
|
// src/models/order.ts
|
|
53856
|
-
var OrderTransaction$zodSchema, Order$zodSchema;
|
|
53868
|
+
var OrderAddressFrom$zodSchema, OrderTransaction$zodSchema, Order$zodSchema;
|
|
53857
53869
|
var init_order = __esm(() => {
|
|
53858
53870
|
init_zod();
|
|
53859
53871
|
init_address();
|
|
53872
|
+
init_addressvalidationresults();
|
|
53860
53873
|
init_lineitem();
|
|
53861
53874
|
init_ordershopappenum();
|
|
53862
53875
|
init_orderstatusenum();
|
|
53863
53876
|
init_weightunitenum();
|
|
53877
|
+
OrderAddressFrom$zodSchema = objectType({
|
|
53878
|
+
city: stringType().optional(),
|
|
53879
|
+
company: stringType().optional(),
|
|
53880
|
+
country: stringType(),
|
|
53881
|
+
email: stringType().optional(),
|
|
53882
|
+
is_complete: booleanType().optional(),
|
|
53883
|
+
is_residential: booleanType().nullable().optional(),
|
|
53884
|
+
metadata: stringType().optional(),
|
|
53885
|
+
name: stringType().optional(),
|
|
53886
|
+
object_created: stringType().datetime({ offset: true }).optional(),
|
|
53887
|
+
object_id: stringType().optional(),
|
|
53888
|
+
object_owner: stringType().optional(),
|
|
53889
|
+
object_updated: stringType().datetime({ offset: true }).optional(),
|
|
53890
|
+
phone: stringType().optional(),
|
|
53891
|
+
state: stringType().optional(),
|
|
53892
|
+
street1: stringType().optional(),
|
|
53893
|
+
street2: stringType().optional(),
|
|
53894
|
+
street3: stringType().optional(),
|
|
53895
|
+
street_no: stringType().optional(),
|
|
53896
|
+
test: booleanType().nullable().optional(),
|
|
53897
|
+
validation_results: AddressValidationResults$zodSchema.optional(),
|
|
53898
|
+
zip: stringType().optional()
|
|
53899
|
+
}).describe('<a href="#tag/Addresses">Address</a> object of the sender / seller. Will be returned expanded by default.');
|
|
53864
53900
|
OrderTransaction$zodSchema = objectType({});
|
|
53865
53901
|
Order$zodSchema = objectType({
|
|
53866
|
-
currency: stringType().optional(),
|
|
53867
|
-
from_address:
|
|
53902
|
+
currency: stringType().nullable().optional(),
|
|
53903
|
+
from_address: lazyType(() => OrderAddressFrom$zodSchema).nullable().optional(),
|
|
53868
53904
|
line_items: arrayType(LineItem$zodSchema).optional(),
|
|
53869
|
-
notes: stringType().optional(),
|
|
53905
|
+
notes: stringType().nullable().optional(),
|
|
53870
53906
|
object_id: stringType().optional(),
|
|
53871
53907
|
object_owner: stringType().optional(),
|
|
53872
|
-
order_number: stringType().optional(),
|
|
53908
|
+
order_number: stringType().nullable().optional(),
|
|
53873
53909
|
order_status: OrderStatusEnum$zodSchema.optional(),
|
|
53874
53910
|
placed_at: stringType(),
|
|
53875
|
-
shipping_cost: stringType().optional(),
|
|
53876
|
-
shipping_cost_currency: stringType().optional(),
|
|
53877
|
-
shipping_method: stringType().optional(),
|
|
53911
|
+
shipping_cost: stringType().nullable().optional(),
|
|
53912
|
+
shipping_cost_currency: stringType().nullable().optional(),
|
|
53913
|
+
shipping_method: stringType().nullable().optional(),
|
|
53878
53914
|
shop_app: OrderShopAppEnum$zodSchema.optional(),
|
|
53879
|
-
subtotal_price: stringType().optional(),
|
|
53915
|
+
subtotal_price: stringType().nullable().optional(),
|
|
53880
53916
|
to_address: Address$zodSchema,
|
|
53881
|
-
total_price: stringType().optional(),
|
|
53882
|
-
total_tax: stringType().optional(),
|
|
53917
|
+
total_price: stringType().nullable().optional(),
|
|
53918
|
+
total_tax: stringType().nullable().optional(),
|
|
53883
53919
|
transactions: arrayType(lazyType(() => OrderTransaction$zodSchema)).optional(),
|
|
53884
|
-
weight: stringType().optional(),
|
|
53920
|
+
weight: stringType().nullable().optional(),
|
|
53885
53921
|
weight_unit: WeightUnitEnum$zodSchema.optional()
|
|
53886
53922
|
});
|
|
53887
53923
|
});
|
|
@@ -53933,21 +53969,21 @@ var init_ordercreaterequest = __esm(() => {
|
|
|
53933
53969
|
init_orderstatusenum();
|
|
53934
53970
|
init_weightunitenum();
|
|
53935
53971
|
OrderCreateRequest$zodSchema = objectType({
|
|
53936
|
-
currency: stringType().optional(),
|
|
53972
|
+
currency: stringType().nullable().optional(),
|
|
53937
53973
|
from_address: AddressCreateRequest$zodSchema.optional(),
|
|
53938
53974
|
line_items: arrayType(LineItemBase$zodSchema).optional(),
|
|
53939
|
-
notes: stringType().optional(),
|
|
53940
|
-
order_number: stringType().optional(),
|
|
53975
|
+
notes: stringType().nullable().optional(),
|
|
53976
|
+
order_number: stringType().nullable().optional(),
|
|
53941
53977
|
order_status: OrderStatusEnum$zodSchema.optional(),
|
|
53942
53978
|
placed_at: stringType(),
|
|
53943
|
-
shipping_cost: stringType().optional(),
|
|
53944
|
-
shipping_cost_currency: stringType().optional(),
|
|
53945
|
-
shipping_method: stringType().optional(),
|
|
53946
|
-
subtotal_price: stringType().optional(),
|
|
53979
|
+
shipping_cost: stringType().nullable().optional(),
|
|
53980
|
+
shipping_cost_currency: stringType().nullable().optional(),
|
|
53981
|
+
shipping_method: stringType().nullable().optional(),
|
|
53982
|
+
subtotal_price: stringType().nullable().optional(),
|
|
53947
53983
|
to_address: AddressCreateRequest$zodSchema,
|
|
53948
|
-
total_price: stringType().optional(),
|
|
53949
|
-
total_tax: stringType().optional(),
|
|
53950
|
-
weight: stringType().optional(),
|
|
53984
|
+
total_price: stringType().nullable().optional(),
|
|
53985
|
+
total_tax: stringType().nullable().optional(),
|
|
53986
|
+
weight: stringType().nullable().optional(),
|
|
53951
53987
|
weight_unit: WeightUnitEnum$zodSchema.optional()
|
|
53952
53988
|
});
|
|
53953
53989
|
});
|
|
@@ -61062,7 +61098,7 @@ Updates an existing webhook using the webhook object ID.`,
|
|
|
61062
61098
|
function createMCPServer(deps) {
|
|
61063
61099
|
const server = new McpServer({
|
|
61064
61100
|
name: "ShippoSDK",
|
|
61065
|
-
version: "0.8.
|
|
61101
|
+
version: "0.8.43"
|
|
61066
61102
|
});
|
|
61067
61103
|
const getClient = deps.getSDK || (() => new ShippoSDKCore({
|
|
61068
61104
|
security: deps.security,
|
|
@@ -62454,7 +62490,7 @@ var routes = ln({
|
|
|
62454
62490
|
var app = _e(routes, {
|
|
62455
62491
|
name: "mcp",
|
|
62456
62492
|
versionInfo: {
|
|
62457
|
-
currentVersion: "0.8.
|
|
62493
|
+
currentVersion: "0.8.43"
|
|
62458
62494
|
}
|
|
62459
62495
|
});
|
|
62460
62496
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -62462,5 +62498,5 @@ export {
|
|
|
62462
62498
|
app
|
|
62463
62499
|
};
|
|
62464
62500
|
|
|
62465
|
-
//# debugId=
|
|
62501
|
+
//# debugId=1F132A9300610C2A64756E2164756E21
|
|
62466
62502
|
//# sourceMappingURL=mcp-server.js.map
|