Skip to content

Commit 409ee2d

Browse files
fix: fix the example template @W-19405432@ (#154)
1 parent fcb204b commit 409ee2d

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

packages/EXAMPLE-MCP-PROVIDER/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "0.0.1-alpha.1",
55
"author": "Salesforce",
66
"license": "Apache-2.0",
7+
"type": "module",
78
"repository": {
89
"type": "git",
910
"url": "git+https://github.com/salesforcecli/mcp.git",

packages/EXAMPLE-MCP-PROVIDER/src/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { McpProvider, McpTool, Services } from "@salesforce/mcp-provider-api";
2-
import { ExampleMcpTool } from "./tools/sf-example-tool";
2+
import { ExampleMcpTool } from "./tools/sf-example-tool.js";
33

44
/**
55
* Example MCPProvider for demonstration puproses

packages/EXAMPLE-MCP-PROVIDER/test/provider.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { McpProvider, McpTool, Services } from "@salesforce/mcp-provider-api";
2-
import { ExampleMcpProvider } from "../src";
3-
import { StubServices } from "./test-doubles";
4-
import { ExampleMcpTool } from "../src/tools/sf-example-tool";
2+
import { ExampleMcpProvider } from "../src/provider.js";
3+
import { ExampleMcpTool } from "../src/tools/sf-example-tool.js";
4+
import { StubServices } from "./test-doubles.js";
55

66
describe("Tests for ExampleMcpProvider", () => {
77
let services: Services;

0 commit comments

Comments
 (0)