You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(mcp): add prompt suggestion tools and read-only competitor and report tools #918
The MCP server (web/src/lib/mcp/server.ts) lets an agent manage topic suggestions (list_topic_suggestions, accept_topic_suggestion, dismiss_topic_suggestion), but has no equivalent for prompts, and no way to read competitors or saved reports:
prompt suggestions: the server already has GET /suggestions/:brandId, POST /suggestions/:id/dismiss and POST /suggestions/:id/accept (server/src/routes/prompts.js lines 422, 445, 468)
list_prompt_suggestions, accept_prompt_suggestion, dismiss_prompt_suggestion — mirroring the topic tools, including their "only on explicit user intent" descriptions for the write tools
list_competitors — id, name, domain
list_reports and get_report — read-only
Suggested approach
Copy the topic-suggestion tools in server.ts and their data helpers in web/src/lib/mcp/data.ts, reusing the existing org-scoped access checks. Add the new tools to the table in docs/guides/mcp-server.mdx. Splitting into one PR for prompt suggestions and one for the read tools is fine.
Run yarn lint and yarn build from web/ before opening the PR — see CONTRIBUTING.md.
hey @gkhngyk I've implemented the prompt-suggestion tools in a separate branch: feature/mcp-prompt-suggestions-918.
The implementation adds list_prompt_suggestions, accept_prompt_suggestion, and dismiss_prompt_suggestion, with organization-scoped access checks, unit tests, and documentation updates.
I'm preparing a separate PR for the prompt-suggestion tools, following the suggested split. Local lint, formatting, typecheck, and the new utility tests passed; one unrelated date-formatting test failure and the Supabase-dependent build configuration still need attention.
Activity
knockknock10 commentedon Oct 8, 2026
Hey @gkhngyk .
can I get this issue too?
Am really enjoying working on ansvisor!
Thank You for assigning other issues to me!!
gkhngyk commentedon Oct 8, 2026
Assigned, thanks @knockknock10! This one is larger than the last, so smaller PRs per tool group are welcome. Please reference #918 in each.
knockknock10 commentedon Oct 18, 2026
hey @gkhngyk I've implemented the prompt-suggestion tools in a separate branch:
feature/mcp-prompt-suggestions-918.The implementation adds
list_prompt_suggestions,accept_prompt_suggestion, anddismiss_prompt_suggestion, with organization-scoped access checks, unit tests, and documentation updates.I'm preparing a separate PR for the prompt-suggestion tools, following the suggested split. Local lint, formatting, typecheck, and the new utility tests passed; one unrelated date-formatting test failure and the Supabase-dependent build configuration still need attention.
Related to #918.
feat(mcp): add read-only competitor and report tools (#1156)
feat(mcp): add prompt suggestion tools (ansvisor#1157)