Skip to content

feat(mcp): add prompt suggestion tools and read-only competitor and report tools #918

Closed

Description

@gkhngyk

Description

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:

Proposed tools

  • 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.

Activity

  1. added
    enhancement
    help wanted
    on Oct 4, 2026
  2. knockknock10 commented on Oct 8, 2026

    @knockknock10
    Contributor

    Hey @gkhngyk .
    can I get this issue too?
    Am really enjoying working on ansvisor!

    Thank You for assigning other issues to me!!

  3. gkhngyk commented on Oct 8, 2026

    @gkhngyk
    ContributorAuthor

    Assigned, thanks @knockknock10! This one is larger than the last, so smaller PRs per tool group are welcome. Please reference #918 in each.

  4. knockknock10 commented on Oct 18, 2026

    @knockknock10
    Contributor

    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.

    Related to #918.

  5. added a commit that references this issue on Oct 20, 2026
    0b1fe7f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions