Skip to content

Quickstart

Add the submit_feedback tool to your MCP server and the widget to your web app, then see reports arrive as ranked issues.

PreviewView as Markdown

Most Loved Product collects deliberate feedback from two sources, AI agents using your MCP server and people using your web app, and turns it into ranked issues your coding agent can fix.

Preview. Names in the SDKs and API below may change before general availability. Sign up and choose a plan to create a product and get capture keys.

1. Get your capture keys

Capture keys are write-only: a leaked key can file reports but cannot read anything.

Key Prefix Use it in Notes
Server key mlp_sk_ MCP servers, backends, CLIs you control Keep it secret. Can attest trust (signed-in user, known host)
Publishable key mlp_pk_ Browsers Safe to expose. Origin-checked, lower rate limits, always anonymous trust

Store the server key as a secret, for example MLP_SERVER_KEY.

2. Add the feedback tool to your MCP server

npm i @mostlovedproduct/mcp

With the official MCP TypeScript SDK:

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { registerFeedbackTool } from "@mostlovedproduct/mcp/sdk";

const server = new McpServer({ name: "acme", version: "1.0.0" });

registerFeedbackTool(server, {
  key: process.env.MLP_SERVER_KEY!,
  product: "Acme",
  profile: "proactive", // use "conservative" for consumer hosts
});

Hand-written JSON-RPC server, or another framework? Use the plain definition and handler instead. See MCP SDK.

3. Add the widget to your web app

npm i @mostlovedproduct/web
import { init } from "@mostlovedproduct/web";

init({
  key: "mlp_pk_...",
  user: { id: account.opaqueId, tier: account.plan },
  flags: { search_v2: experiments.searchV2 },
  app: { version: BUILD_VERSION, env: "production" },
});

No bundler? Use the script tag:

<script>
  window.mlp = window.mlp || function () { (mlp.q = mlp.q || []).push(arguments) };
</script>
<script async src="https://cdn.mostlovedproduct.com/mlp.js" data-key="mlp_pk_..."></script>
<script>
  mlp("init", { user: { id: "u_8f3c", tier: "growth" } });
</script>

See Web widget for theming, context and headless use.

4. Verify

  1. Call submit_feedback once from an MCP inspector, with kind, summary, goal and impact.
  2. Open the widget in your app and send a test report.
  3. Both appear in the dashboard’s report inbox.

5. Close the loop

Reports are redacted, deduplicated into issues and ranked with a readable reason. Your coding agent reads ready-to-fix issues as structured findings with evidence, never as raw report text, and opens a draft pull request for a person to review.

Next steps

Something wrong or missing on this page?