Skip to content

Conversation

@JakeSCahill
Copy link
Contributor

@JakeSCahill JakeSCahill commented Sep 26, 2025

This pull request adds support for MCPcat analytics tracking to our docs MCP server. MCPcat is an open-source analytics platform for monitoring MCP usage. The integration is optional and only activates if the MCPCAT_PROJECT environment variable is set.

MCPcat analytics integration:

  • Added mcpcat as a dependency in package.json to enable MCPcat analytics tracking.
  • Imported the MCPcat library and read the MCPCAT_PROJECT environment variable in netlify/edge-functions/mcp.js.
  • Initialized MCPcat tracking on the MCP server if MCPCAT_PROJECT is present, allowing usage analytics to be collected.

Testing

  1. Start a local MCP Inspector

    npx @modelcontextprotocol/inspector
    

    You should see something like the following:

    Starting MCP inspector...
    🔗 Open inspector with token pre-filled:
       http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=03bc12a6c556d42647540d39994df116c48c5f2dfcad1eea29f49ead7ce117a2
    
  2. Open that address.

  3. Change the transport type to Streamable HTTP.

  4. Enter the following URL:

    https://deploy-preview-131--redpanda-documentation.netlify.app/mcp
    
  5. Click Connect

  6. Test the tool by providing a question and some context.
    2025-09-29_10-05-24

  7. Log into MCPcat to see details about your session.
    2025-09-29_10-08-44

@JakeSCahill JakeSCahill requested a review from a team as a code owner September 26, 2025 08:21
@netlify
Copy link

netlify bot commented Sep 26, 2025

Deploy Preview for redpanda-documentation ready!

Name Link
🔨 Latest commit ae75cec
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-documentation/deploys/68d6651b99bba300083f1b50
😎 Deploy Preview https://deploy-preview-131--redpanda-documentation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 60 (🟢 up 12 from production)
Accessibility: 79 (no change from production)
Best Practices: 100 (🟢 up 25 from production)
SEO: 67 (🔴 down 8 from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@JakeSCahill JakeSCahill marked this pull request as draft September 26, 2025 08:52
@naji247
Copy link

naji247 commented Sep 26, 2025

@JakeSCahill this will work with the following now (and no need to pass a null identify step as it's already omitted this way:

    const mcpcat = await import(
      "https://esm.sh/[email protected]?target=deno&conditions=browser&bundle"
    );
    mcpcat.track(server, MCPCAT_PROJECT);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants