ZS

zautre/sfcc-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

11 stars 5 forks 품질 52 트렌드 8

A Model Context Protocol (MCP) server for interacting with Salesforce Commerce Cloud (SFCC) APIs.

개요

A Model Context Protocol (MCP) server for interacting with Salesforce Commerce Cloud (SFCC) APIs. - Dynamic endpoint registration based on endpoints.json configuration - Automatic handling of path and query parameters - Support for both GET and POST requests - OCAPI authentication using client credentials flow - Support for SFCC Data API endpoints, including product search - : HTTP-based server with OAuth authentication - : Each session can use different SFCC credentials and API endpoints - : Multiple clients can connect to different SFCC instances simultaneously - : GitHub Actions integration for Google App Engine deployment - : Automated versioning and deployment workflows Create a .env file in the project root directory with the following variables: To use the SFCC Data APIs, you need to configure an API client in SFCC with the proper permissions: 1. In SFCC Account Manager, go to API Client 2. Create a new API client or edit an existing one 3.

README

원문 README의 일부입니다. 원문 보기.

SFCC MCP Server

A Model Context Protocol (MCP) server for interacting with Salesforce Commerce Cloud (SFCC) APIs.

Features

  • Dynamic endpoint registration based on endpoints.json configuration
  • Automatic handling of path and query parameters
  • Support for both GET and POST requests
  • OCAPI authentication using client credentials flow
  • Support for SFCC Data API endpoints, including product search
  • Remote mode: HTTP-based server with OAuth authentication
  • Per-session configuration: Each session can use different SFCC credentials and API endpoints
  • Multi-tenant support: Multiple clients can connect to different SFCC instances simultaneously
  • Automated deployment: GitHub Actions integration for Google App Engine deployment
  • Version management: Automated versioning and deployment workflows

Installation

# Install dependencies
npm install

# Build the server
npm run build

Configuration

Create a .env file in the project root directory with the following variables:

# SFCC API Configuration
SFCC_API_BASE=https://your-instance.api.commercecloud.salesforce.com/

# Admin API Credentials (Client credentials flow)
SFCC_ADMIN_CLIENT_ID=your_admin_client_id
SFCC_ADMIN_CLIENT_SECRET=your_admin_client_secret

OCAPI Configuration

To use the SFCC Data APIs, you need to configure an API client in SFCC with the proper permissions:

API Client

  1. In SFCC Account Manager, go to API Client
  2. Create a new API client or edit an existing one
  3. Configure the OAuth settings:
    • OAuth Client ID: (your client ID)
    • OAuth Client Secret: (your client secret)
    • Default scopes: Include the scopes needed for your endpoints
    • Token Endpoint Auth Method: client_secret_post
  4. Configure API client roles:
    • Assign appropriate roles to access the required data

Business Manager

  1. In SFCC Business Manager, go to Administration > Site Development > Open Commerce API Settings
  2. See ocapi-bm-config.json for the configuration example

MCP Configuration for VSCode

  1. Open Command Palette (Ctrl/Cmd + Shift + P)
  2. Type “MCP” and choose MCP: Add Server...
  3. Choose Command (stdio) Manual Install
  4. Type node /build/index.js for the command (replace path placeholder before submit)
  5. Name the MCP (e.g., “sfcc”)
  6. Choose to configure for User or Workspace

This will create a new server definition either in your user settings.json or in workspace .vscode/mcp.json

{
    "servers": {
        "sfcc": {
            "type": "stdio",
            "command": "node",
            "args": [
                "/build/index.js"
            ]
        }
    }
}

Now you can monitor/start/restart/stop your server through MCP: List Servers command. Work with tools by switching to Agent mode in GitHub Copilot Chat

Usage

Start the server:

node build/index.js

Endpoint Configuration

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →