Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Adding a give_feedback tool to our MCP server

The article explains how to implement a "give_feedback" tool in an MCP server to collect product feedback directly from AI agents, enabling developers to gather actionable insights and improve their software.

Background

- Sanity.io is a software platform that provides a "headless CMS" (content management system) — meaning it manages text, images, and other content separately from the website or app that displays it, giving developers flexibility in how content is presented. - An **MCP server** (Model Context Protocol server) is a standardized way to connect AI agents (like LLMs or chatbots) to external tools and data sources. It allows an AI to perform actions such as querying a database or submitting feedback, rather than just generating text. - This blog post describes adding a `give_feedback` tool to Sanity's MCP server, which lets AI agents send structured feedback about how they are using Sanity's product. This matters because companies are increasingly trying to understand how AI agents behave in the wild — collecting telemetry directly from the agents themselves, rather than relying solely on human users. - The key prior context: as AI agents become more autonomous, traditional product-feedback loops (surveys, support tickets) break down. The industry is exploring agent-native feedback mechanisms, and this post is a practical walkthrough of implementing one.

Related stories

  • Safari Technology Preview 247 introduces the Safari MCP server, a Model Context Protocol server that lets AI agents connect to a Safari browser window to access DOM, network requests, screenshots, and console output for more autonomous web debugging and development.