Skip to content

Commit 886166d

Browse files
@W-19679886 - Added telemetry to MCP (#3327)
* @W-19666275 - Added telemetry for MCP tools (#3320) * Added telemetry for PWA Kit MCP * Updated code * Addressed comments * Update CHANGELOG.md Signed-off-by: Aditya Tekur <126732792+aditek-sf@users.noreply.github.com> * @W-19668023 - Add O11y Telemetry (#3328) * Add Changelog * Addressing comments post review session * Updated changelog.md * skip changelog * Updated changelog.md * Updated changelog.md --------- Signed-off-by: Aditya Tekur <126732792+aditek-sf@users.noreply.github.com> Co-authored-by: shauryemahajanSF <143645277+shauryemahajanSF@users.noreply.github.com> Co-authored-by: Shaurye Mahajan <s.mahajan@salesforce.com>
1 parent 54ff696 commit 886166d

File tree

10 files changed

+3632
-188
lines changed

10 files changed

+3632
-188
lines changed

packages/pwa-kit-mcp/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## v0.3.0-dev (Sep 4, 2025)
2+
- Added telemetry for MCP tools. [#3327](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3327)
23

34
## v0.2.0 (Sep 4, 2025)
45
- Normalize tool names; Add introduction section for PWA Kit MCP and resize the images on README. [#3239](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3239)

packages/pwa-kit-mcp/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ It allows AI agents to query context-aware services like this server to help dev
1616

1717
PWA-Kit-MCP is a local STDIO MCP Server that communicates via STDIO and operates in conjunction with a running local process, making it a fully locally installed MCP server. It provides an initial suite of MCP tools intended to standardize and optimize the developer workflow for PWA Kit storefront development. These tools facilitate project creation, supply development guidelines, enable the generation of new components and pages, and support site validation through performance and accessibility testing.
1818

19+
_NOTE: Cursor provides multiple LLMs for your use. These PWA Kit MCP tools were tested with the Claude 4 Sonnet LLM_
1920

2021
## 🧰 Features
2122

@@ -66,6 +67,27 @@ The PWA Kit MCP Server offers the following intelligent tools tailored to Salesf
6667
```
6768
_NOTE: Replace `{{path-to-app-directory}}` with the absolute path to your generated project's `app` subfolder. For example: `"/Users/username/mcp-server-folder/mystorefront/app"`._
6869

70+
## 📊 Telemetry
71+
72+
The server collects minimal, anonymous usage data to improve reliability and the developer experience.
73+
74+
- **What's included**:
75+
- Server lifecycle events: started, stopped, errors (`SERVER_STATUS`).
76+
- Tool usage: tool name, run time, success/error (`TOOL_CALLED`).
77+
- **What’s not included**:
78+
- No source code, file contents, prompts, or secrets are collected by default.
79+
- **How to disable/opt out**:
80+
- Add `--no-telemetry` to your `args`.
81+
82+
**Beta:** Telemetry for the PWA Kit MCP server is in beta and subject to change. Event names, payloads, and destinations may change without notice; the feature may be modified or removed.
83+
84+
These are the available flags that you can pass to the `args` option.
85+
86+
| Flag Name | Description | Required? |Notes |
87+
| -----------------| -------| ------- | ----- |
88+
| `--no-telemetry` | Boolean flag to disable telemetry, the automatic collection of data for monitoring and analysis. | No | Telemetry is enabled by default, so specify this flag to disable it. |
89+
| `"-y", "@salesforce/mcp"` | Tells `npx` to automatically install the `@salesforce/mcp` package instead of asking permission. | Yes | Don't change this.
90+
6991
Once saved, Cursor will:
7092

7193
* Launch the MCP server

packages/pwa-kit-mcp/config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"applicationInsightsConnectionString": "InstrumentationKey=dc46e81f-9806-441b-af9d-45b7bd8a3f68;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/;ApplicationId=28465953-4551-4f50-9ca3-911bec29d325"
3+
}

0 commit comments

Comments
 (0)