deactivate_store
Deactivate a specific store by providing its Store ID to manage store settings and integrations within the ShipStation API MCP Server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | Yes | Store ID to deactivate |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"storeId": {
"description": "Store ID to deactivate",
"type": "number"
}
},
"required": [
"storeId"
],
"type": "object"
}
Implementation Reference
- src/tools/store-tools.js:87-99 (handler)The MCP tool handler for 'deactivate_store', which invokes the ShipStation API client to deactivate the specified store and formats the response or error.handler: async ({ storeId }) => { try { const result = await shipStationClient.deactivateStore(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:84-86 (schema)Zod input schema defining the required 'storeId' parameter as a number.schema: { storeId: z.number().describe("Store ID to deactivate") },
- src/server.js:184-191 (registration)Dynamic registration of all MCP tools (including 'deactivate_store' from storeTools) to the MCP server via server.tool().].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
- src/api-client.js:182-184 (helper)ShipStationClient helper method that performs the actual API POST request to deactivate the store.async deactivateStore(storeId) { return this.request('POST', '/stores/deactivate', { storeId }); }