feedback-mcp
MCP server for Open Feedback, enabling AI assistants to submit, list, get, update status of, and analyze product feedback via a local HTTP API and JSONL storage.
README
Open Feedback
Reusable feedback collection for Hasna-coded apps.
Open Feedback provides a small HTTP API, TypeScript SDK, CLI, MCP server, and local JSONL storage so apps can collect product feedback without standing up a database first. The local project slug is open-feedback; the GitHub repository is hasna/feedback.
Install
bun add @hasna/feedback
For local CLI usage:
bunx @hasna/feedback init
feedback serve --port 8787
feedback-serve --port 8787
HTTP API
Start the API:
feedback serve --host 127.0.0.1 --port 8787
Set FEEDBACK_API_TOKEN to require bearer-token auth for API requests:
FEEDBACK_API_TOKEN="$YOUR_TOKEN" feedback serve
Submit feedback:
curl -X POST http://127.0.0.1:8787/v1/feedback \
-H 'content-type: application/json' \
-d '{
"appId": "my-app",
"message": "The billing screen should show the invoice PDF sooner.",
"kind": "idea",
"tags": ["billing"]
}'
Useful endpoints:
GET /healthPOST /v1/feedbackGET /v1/feedback?appId=my-app&limit=50GET /v1/feedback/:idPATCH /v1/feedback/:idwith{ "status": "triaged" }GET /v1/statsGET /v1/export.jsonl
SDK
import { createFeedbackClient } from "@hasna/feedback";
const feedback = createFeedbackClient({
baseUrl: "http://127.0.0.1:8787",
token: process.env.FEEDBACK_API_TOKEN,
});
await feedback.submit({
appId: "my-app",
message: "Export fails after selecting a date range.",
kind: "bug",
severity: "high",
context: {
route: "/reports",
version: "2026.07.01",
},
});
Browser apps can collect standard route/device context without a UI dependency:
import { collectBrowserFeedbackContext } from "@hasna/feedback/browser";
const context = collectBrowserFeedbackContext({
version: import.meta.env.VITE_APP_VERSION,
environment: import.meta.env.MODE,
});
For in-process server apps, use local storage directly:
import { LocalFeedbackStore } from "@hasna/feedback/storage";
const store = new LocalFeedbackStore();
await store.createFeedback({
appId: "my-app",
message: "Add CSV export.",
});
CLI
feedback init
feedback doctor
feedback submit "Add export history" --app my-app --kind idea --tag reports --route /reports --app-version 1.2.3 --env production
feedback list --app my-app --search export --since 2026-01-01 --limit 20
feedback show <id>
feedback status <id> triaged
feedback stats
feedback export --format jsonl --until 2026-12-31
Use --api-url and --token to target a remote Open Feedback API instead of local JSONL storage.
feedback doctor checks the package version, local data file path, basic storage permissions, token configuration, and whether the expected binaries are on PATH.
Terminal Slash Commands
For terminal or agent slash-command style workflows, wire the command body to feedback submit and pass the current app slug:
# /feedback Add an activity filter to the inbox view
feedback submit "Add an activity filter to the inbox view" --app my-app --kind idea --tag slash-command
# /bug Export fails after picking a date range
feedback submit "Export fails after picking a date range" --app my-app --kind bug --severity high
The slash-command wrapper should provide --api-url and --token when feedback belongs in a shared deployment.
MCP
Run the MCP server:
feedback-mcp
Available tools:
submit_feedbacklist_feedbackget_feedbackupdate_feedback_statusfeedback_statsexport_feedback
Storage
By default, Open Feedback writes JSONL to:
~/.hasna/feedback/feedback.jsonl
Override the directory with FEEDBACK_DATA_DIR.
App Integration
See docs/app-integration.md for browser, server, CLI, and MCP integration examples.
Development
bun install
bun run typecheck
bun test
bun run build
Security
Open Feedback redacts common credential patterns and sensitive metadata keys before storing feedback. Treat feedback exports as potentially sensitive product data. Do not commit feedback JSONL files or API tokens.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.