UNPKG

amazon-seller-mcp

Version:

Model Context Protocol (MCP) client for Amazon Selling Partner API

70 lines (69 loc) 1.88 kB
/** * Credential management for Amazon Selling Partner API */ import { AmazonRegion, AuthConfig } from '../types/auth.js'; /** * Marketplace configuration */ export interface MarketplaceConfig { marketplaceId: string; region: AmazonRegion; countryCode: string; currencyCode: string; languageCode: string; } /** * Common marketplaces */ export declare const MARKETPLACES: Record<string, MarketplaceConfig>; /** * Credential manager options */ export interface CredentialManagerOptions { configFilePath?: string; loadEnv?: boolean; envPath?: string; } /** * Credential manager for Amazon Selling Partner API * * Handles loading credentials from environment variables and config files */ export declare class CredentialManager { private configFilePath?; private loadEnv; private envPath?; /** * Create a new CredentialManager instance * * @param options Credential manager options */ constructor(options?: CredentialManagerOptions); /** * Load credentials from environment variables and config file * * @returns Authentication configuration */ loadCredentials(): AuthConfig; /** * Load configuration from a JSON file * * @param filePath Path to the configuration file * @returns Configuration from the file */ private loadConfigFile; /** * Get marketplace configuration by country code * * @param countryCode ISO country code (e.g., 'US', 'UK') * @returns Marketplace configuration */ static getMarketplaceByCountry(countryCode: string): MarketplaceConfig; /** * Get marketplace configuration by marketplace ID * * @param marketplaceId Amazon marketplace ID * @returns Marketplace configuration */ static getMarketplaceById(marketplaceId: string): MarketplaceConfig; }