How bevren/trendyol-market-mcp works
This repository is an MCP server exposing Trendyol seller-account operations as tools. The principal workflow is an MCP client invoking a tool, the server validating inputs and dispatching to a Trendyol client, and that client making authenticated HTTP requests to Trendyol. Product, order, claims, finance, invoices, Q&A, webhooks, and stage test tools are distinct capability areas. Tool registration and client calls are sampled; several domain-specific registrations are documented but their implementation details were not sampled.
Main entry points: index.ts Tool server · trendyol.ts Trendyol client · enums.ts Domain constants
Components 17
MCP interface
- Tool server
src/index.ts - Session tools
src/index.ts
Catalog and content
- Product tools
src/index.ts - Brand and reference tools
src/index.ts - Video tools
src/index.ts
Seller operations
- Order and address tools
src/index.ts - Claims tools
src/index.ts - Finance tools
src/index.ts - Invoice tools
src/index.ts - Customer Q&A tools
src/index.ts - Webhook tools
src/index.ts - Stage test tools
src/index.ts
API client
- Domain constants
src/enums.ts - Trendyol client
src/trendyol.ts
Other components
- Seller / MCP user
- MCP host
- Trendyol Seller API
Connections 16
- Seller / MCP user → MCP host: invokes tools
README.md - MCP host → Tool server: uses stdio
src/index.ts - Tool server → Session tools: registers
src/index.ts - Tool server → Product tools: registers
src/index.ts - Tool server → Brand and reference tools: registers
src/index.ts - Tool server → Video tools: registers
src/index.ts - Tool server → Order and address tools: registers
README.md - Tool server → Claims tools: registers
README.md - Tool server → Finance tools: registers
README.md - Tool server → Invoice tools: registers
README.md - Tool server → Customer Q&A tools: registers
README.md - Tool server → Webhook tools: registers
README.md - Tool server → Stage test tools: registers
README.md - Tool server → Trendyol client: dispatches
src/index.ts - Tool server → Domain constants: imports
src/index.ts - Trendyol client → Trendyol Seller API: sends HTTP
src/trendyol.ts