reactivate_store
Reactivate a deactivated store in ShipStation by providing its store ID to restore order processing and shipping functionality.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | Yes | Store ID to reactivate |
Implementation Reference
- src/tools/store-tools.js:107-119 (handler)The main handler function for the 'reactivate_store' MCP tool. It receives storeId, calls the ShipStation API via shipStationClient.reactivateStore, formats the result as JSON text response, or returns error.handler: async ({ storeId }) => { try { const result = await shipStationClient.reactivateStore(storeId); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
- src/tools/store-tools.js:104-106 (schema)Zod schema defining the input parameter 'storeId' as a number for the reactivate_store tool.schema: { storeId: z.number().describe("Store ID to reactivate") },
- src/server.js:175-191 (registration)MCP server registration of all tools, spreading the storeTools array (which includes 'reactivate_store') and calling server.tool for each....orderTools, ...shipmentTools, ...carrierTools, ...warehouseTools, ...productTools, ...customerTools, ...storeTools, ...webhookTools, ...fulfillmentTools ].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
- src/api-client.js:186-188 (helper)ShipStationClient helper method that performs the actual POST request to reactivate a store by ID.async reactivateStore(storeId) { return this.request('POST', '/stores/reactivate', { storeId }); }