Skip to content

Comments

Add product creation and management mutations#33

Open
matteius wants to merge 1 commit intosaleor:mainfrom
opensensor:add-product-mutations
Open

Add product creation and management mutations#33
matteius wants to merge 1 commit intosaleor:mainfrom
opensensor:add-product-mutations

Conversation

@matteius
Copy link

This PR adds comprehensive product creation and management capabilities to the Saleor MCP server.

Changes

New Mutations

  • ProductCreate - Create new products
  • ProductVariantCreate - Create product variants
  • ProductTypeCreate - Create product types
  • ChannelCreate - Create sales channels
  • ProductChannelListingUpdate - Update product channel listings
  • ProductVariantChannelListingUpdate - Update variant channel listings
  • ShippingZoneUpdate - Update shipping zones

New Queries

  • ListShippingZones - List available shipping zones

Additional Features

  • Added stdio_main.py for stdio mode support
  • New mutations router in tools/mutations.py
  • Updated client initialization to support mutations
  • All GraphQL operations with proper error handling

Testing

These mutations have been tested against a live Saleor instance and work correctly for creating and managing products, variants, channels, and related entities.

Use Case

This enables AI assistants to not only read from Saleor but also create and manage products programmatically, making it possible to automate product catalog management through natural language interactions.


Pull Request opened by Augment Code with guidance from the PR author

- Add ProductCreate, ProductVariantCreate mutations
- Add ProductTypeCreate for creating product types
- Add ChannelCreate for channel management
- Add ProductChannelListingUpdate and ProductVariantChannelListingUpdate
- Add ShippingZoneUpdate and ListShippingZones queries
- Add stdio_main.py for stdio mode support
- Update client initialization and tool registration
@CLAassistant
Copy link

CLAassistant commented Jan 11, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants