mcp-server-sfmc 0.1.4 → 0.1.6

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.
Files changed (2) hide show
  1. package/README.md +30 -2
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -4,6 +4,34 @@ MCP server providing Salesforce Marketing Cloud language intelligence — AMPscr
4
4
 
5
5
  Built on [sfmc-language-lsp](https://github.com/JoernBerkefeld/sfmc-language-lsp), the same engine that powers the [SFMC Language Service VS Code extension](https://marketplace.visualstudio.com/items?itemName=joernberkefeld.sfmc-language).
6
6
 
7
+ ## VS Code MCP Server Gallery (`@mcp`)
8
+
9
+ This package is registered with the [official MCP Registry](https://registry.modelcontextprotocol.io) as **`io.github.JoernBerkefeld/mcp-server-sfmc`** so it can appear in Visual Studio Code when you use the **`@mcp`** filter in the Extensions view (see the [publish quickstart](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/quickstart.mdx)). Enable **`chat.mcp.gallery.enabled`** if the gallery does not show.
10
+
11
+ The registry only stores **metadata**; the server still runs **locally** via stdio (for example `npx -y mcp-server-sfmc@latest`). This is separate from **`@contribute:mcp`**, which lists VS Code extensions that contribute MCP definitions — use the [SFMC Language Service](https://marketplace.visualstudio.com/items?itemName=joernberkefeld.sfmc-language) for that path.
12
+
13
+ After publishing metadata (see [Publish an MCP Server](https://github.com/modelcontextprotocol/registry/blob/main/docs/modelcontextprotocol-io/quickstart.mdx) or the release workflow), you can confirm the entry with:
14
+
15
+ `curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.JoernBerkefeld/mcp-server-sfmc"`
16
+
17
+ ## VS Code without manual MCP config
18
+
19
+ If you use the **SFMC Language Service** extension (**1.101+**), it registers this MCP server for discovery in VS Code — you normally do **not** need to edit `.vscode/mcp.json` or run `npm install` for that path; VS Code still launches the published package via `npx` when the server starts.
20
+
21
+ For **other editors**, or if you prefer explicit configuration, use the `npx` or install options below.
22
+
23
+ ## Using this package without the VS Code extension
24
+
25
+ You **do not** have to install the VS Code extension. Pick one way to run the server:
26
+
27
+ | Approach | When to use it |
28
+ |---|---|
29
+ | **`npx` (no install)** | Default in the examples below. Runs the latest published version from npm on demand; first run may download the package. **Requires Node.js and npm** (which provides `npx`). |
30
+ | **`npm install -g mcp-server-sfmc`** | Same CLI as `npx`, but the package stays on disk so **startup is faster** and you can set `"command": "mcp-server-sfmc"` with empty `args` in your MCP config. |
31
+ | **`npm install mcp-server-sfmc` in a project** | Keeps a **pinned version** in that folder’s `node_modules` — point your MCP config at `npx mcp-server-sfmc` with `cwd` set to the project, or run `./node_modules/.bin/mcp-server-sfmc` directly. |
32
+
33
+ None of these replace the VS Code extension for **editing** (syntax, LSP, snippets); they only expose the **MCP server** to tools that speak the Model Context Protocol.
34
+
7
35
  ## What it gives your AI assistant
8
36
 
9
37
  | Feature | Details |
@@ -18,9 +46,9 @@ Built on [sfmc-language-lsp](https://github.com/JoernBerkefeld/sfmc-language-lsp
18
46
 
19
47
  ## Quick start
20
48
 
21
- ### VS Code (1.99+) + GitHub Copilot
49
+ ### VS Code (1.99+) + GitHub Copilot — manual `mcp.json`
22
50
 
23
- Add a `.vscode/mcp.json` file to your project (or copy it from this repo):
51
+ If you are **not** using the SFMC Language Service extension’s built-in MCP registration, add a `.vscode/mcp.json` file to your project (or copy it from this repo):
24
52
 
25
53
  ```json
26
54
  {
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "mcp-server-sfmc",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
+ "mcpName": "io.github.JoernBerkefeld/mcp-server-sfmc",
4
5
  "description": "MCP server for Salesforce Marketing Cloud — exposes SFMC language intelligence (AMPscript, SSJS, GTL) as Model Context Protocol tools, resources, and prompts for AI-assisted development and code review.",
5
6
  "author": "Jörn Berkefeld",
6
7
  "license": "MIT",