-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathindex.ts
More file actions
34 lines (31 loc) · 1.17 KB
/
index.ts
File metadata and controls
34 lines (31 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright (c) 2025, Salesforce, Inc.
* SPDX-License-Identifier: Apache-2
* For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
*/
/**
* SCAPI toolset for B2C Commerce.
*
* This toolset provides MCP tools for Salesforce Commerce API (SCAPI) discovery and exploration.
* Includes standard SCAPI schemas, custom API status, and custom API scaffold tools.
*
* @module tools/scapi
*/
import type {McpTool} from '../../utils/index.js';
import type {Services} from '../../services.js';
import {createScapiSchemasListTool} from './scapi-schemas-list.js';
import {createScapiCustomApisStatusTool} from './scapi-custom-apis-status.js';
import {createScaffoldCustomApiTool} from './scapi-custom-api-scaffold.js';
/**
* Creates all tools for the SCAPI toolset.
*
* @param loadServices - Function that loads configuration and returns Services instance
* @returns Array of MCP tools
*/
export function createScapiTools(loadServices: () => Services): McpTool[] {
return [
createScapiSchemasListTool(loadServices),
createScapiCustomApisStatusTool(loadServices),
createScaffoldCustomApiTool(loadServices),
];
}