Skip to main content
Glama
reflagcom

Bucket Feature Flags MCP Server

Official
by reflagcom
feedback.html2.61 kB
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Reflag feedback collection</title> <script src="https://cdn.jsdelivr.net/npm/@reflag/browser-sdk@latest"></script> <style> fieldset label { display: flex; align-items: center; padding: 5px; gap: 5px; } label input { margin: 0; } </style> </head> <body> <script> function handleSubmit(e) { e.preventDefault(); const formData = Object.fromEntries(new FormData(e.target).entries()); const feedbackPayload = { featureId: "EXAMPLE_FLAG", userId: "EXAMPLE_USER", companyId: "EXAMPLE_COMPANY", score: formData.score ? Number(formData.score) : null, comment: formData.comment ? formData.comment : null, }; // Using the Reflag SDK new ReflagClient({ publishableKey: "EXAMPLE_PUBLISHABLE_KEY", }).feedback(feedbackPayload); /* // Using the Reflag API fetch("https://front.reflag.com/feedback", { method: "POST", headers: { "Content-Type": "application/json", "Authorization": "Bearer EXAMPLE_PUBLISHABLE_KEY", }, body: JSON.stringify(feedbackPayload), }); */ } </script> <form action="#" onsubmit="handleSubmit(event)"> <h2>How satisfied are you with our ExampleFlag?</h2> <fieldset> <legend>Satisfaction</legend> <div> <label> <input type="radio" name="score" value="1" /> <span>Very unsatsified</span> </label> </div> <div> <label> <input type="radio" name="score" value="2" /> <span>Unsatisfied</span> </label> </div> <div> <label> <input type="radio" name="score" value="3" /> <span>Neutral</span> </label> </div> <div> <label> <input type="radio" name="score" value="4" /> <span>Satisfied</span> </label> </div> <div> <label> <input type="radio" name="score" value="5" /> <span>Very satsified</span> </label> </div> </fieldset> <div> <label> <div>Comment</div> <textarea name="comment" placeholder="Write a comment..."></textarea> </label> </div> <button type="submit">Send feedback</button> </form> </body> </html>

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/reflagcom/bucket-javascript-sdk'

If you have feedback or need assistance with the MCP directory API, please join our Discord server