@salesforce/mcp-provider-lwc-experts 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.bundle.d.ts CHANGED
@@ -1,10 +1,74 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
- import { McpProvider, McpTool, Services } from '@salesforce/mcp-provider-api';
3
+ import { Connection } from '@salesforce/core';
4
+ import { McpProvider, McpTool, McpToolConfig, ReleaseState, Services, Toolset } from '@salesforce/mcp-provider-api';
5
+ import { z } from 'zod';
4
6
 
5
- export declare class LwcExpertsMcpProvider extends McpProvider {
7
+ declare const McpToolEmptySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
8
+ export type McpToolInputArgsShape = typeof McpToolEmptySchema.shape;
9
+ export type OutputArgsShape = z.ZodRawShape;
10
+ /**
11
+ * Configuration for MCP tools compatible with DX MCP
12
+ */
13
+ export type AdkMcpToolConfig<TInputArgsShape extends z.ZodRawShape = McpToolInputArgsShape> = {
14
+ name: string;
15
+ title: string;
16
+ description: string;
17
+ inputSchema?: TInputArgsShape;
18
+ /**
19
+ * Optional release state of the tool, overrides one from reviewers map
20
+ */
21
+ toolReleaseState?: DxMcpReleaseState | undefined;
22
+ reviewersMaturity: DxMcpReleaseState;
23
+ /**
24
+ * Dependencies of the tool, to be used to determine if the tool should be enabled based on the release state of the dependencies
25
+ */
26
+ toolDependencies?: AdkMcpTool[];
27
+ };
28
+ export type DxMcpServices = Services;
29
+ /**
30
+ * Type for any release state value that represents GA or NON_GA
31
+ * Can accept:
32
+ * - ReleaseState enum values (ReleaseState.GA, ReleaseState.NON_GA)
33
+ * - MaturityLevel enum values (MaturityLevel.GA, MaturityLevel.NON_GA)
34
+ * - String literals ('ga', 'non-ga', 'GA', 'NON_GA')
35
+ */
36
+ export type DxMcpReleaseState = ReleaseState | "ga" | "non-ga" | "GA" | "NON_GA";
37
+ export type DxMcpMaturityOptions = {
38
+ isEnforceNonGAMode?: boolean | undefined;
39
+ overrideReleaseState?: DxMcpReleaseState | undefined;
40
+ };
41
+ declare abstract class AdkMcpTool<TInputArgsShape extends z.ZodRawShape = McpToolInputArgsShape> extends McpTool<TInputArgsShape, OutputArgsShape> {
42
+ private description;
43
+ private title;
44
+ private name;
45
+ private inputSchema;
46
+ private toolDependencies;
47
+ private maturity;
48
+ private releaseState;
49
+ constructor(config: AdkMcpToolConfig<TInputArgsShape>, services: DxMcpServices);
50
+ getReleaseState(): ReleaseState;
51
+ getToolsets(): Toolset[];
6
52
  getName(): string;
7
- provideTools(_services: Services): Promise<McpTool[]>;
53
+ getConfig(): McpToolConfig<TInputArgsShape, OutputArgsShape>;
54
+ getMaturityOptions(): DxMcpMaturityOptions;
55
+ /**
56
+ * Allows filter out workflow tools in case all dependencies are disabled based on ReleaseStatus
57
+ *
58
+ * @returns true if the tool is enabled, false otherwise
59
+ */
60
+ isEnabled(): boolean;
61
+ }
62
+ declare abstract class AdkMcpToolsProvider extends McpProvider {
63
+ private name;
64
+ constructor(name: string);
65
+ getName(): string;
66
+ protected abstract getTools(services: DxMcpServices): AdkMcpTool[];
67
+ provideTools(services: DxMcpServices): Promise<McpTool[]>;
68
+ }
69
+ export declare class LwcExpertsMcpProvider extends AdkMcpToolsProvider {
70
+ constructor();
71
+ protected getTools(services: DxMcpServices): AdkMcpTool[];
8
72
  }
9
73
 
10
74
  export {};