Skip to content

add feedback tools#40

Merged
tilyupo merged 5 commits intomainfrom
add-feedback-tools
Nov 5, 2025
Merged

add feedback tools#40
tilyupo merged 5 commits intomainfrom
add-feedback-tools

Conversation

@tilyupo
Copy link
Contributor

@tilyupo tilyupo commented Nov 4, 2025

Description

Implemented the Feedback API tool for the Mapbox MCP Server, providing access to the Mapbox Feedback API for retrieving user feedback items. The tool supports both listing feedback items with comprehensive filtering options and retrieving individual feedback items by ID.

The tool requires user-feedback:read scope on the Mapbox access token.


Testing

Run locally via npm run inspect:dev and tested the tools (FeedbackGetTool and FeedbackListTool)

Tests:

Test Files  29 passed (29)
      Tests  276 passed (276)
   Start at  17:04:58
   Duration  1.38s (transform 1.52s, setup 0ms, collect 2.86s, tests 1.13s, environment 4ms, prepare 2.18s)

Checklist

  • Code has been tested locally
  • Unit tests have been added or updated
  • Documentation has been updated if needed (README.md updated with Feedback tool section)

@tilyupo tilyupo marked this pull request as ready for review November 4, 2025 14:06
@tilyupo tilyupo requested a review from a team as a code owner November 4, 2025 14:06
Copy link
Member

@zmofei zmofei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for add the feedback tools, the changes looks good to me, but please change the tool's name to match other tools.

export class FeedbackListTool extends MapboxApiBasedTool<
typeof FeedbackListInputSchema
> {
name = 'feedback_list_tool';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To match other tools' schema, could we change this to list_feedback_tool

Suggested change
name = 'feedback_list_tool';
name = 'list_feedback_tool';

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed tools naming convention to match mcp-devkit-server instead mcp-server tools

export class FeedbackGetTool extends MapboxApiBasedTool<
typeof FeedbackGetInputSchema
> {
name = 'feedback_get_tool';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name = 'feedback_get_tool';
name = 'get_feedback_tool';

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@tilyupo tilyupo requested a review from zmofei November 5, 2025 06:30
Copy link
Member

@zmofei zmofei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really appreciate the improvements to the devkit MCP — this PR looks solid. Thanks!

@tilyupo tilyupo merged commit bc810b4 into main Nov 5, 2025
1 check passed
@tilyupo tilyupo deleted the add-feedback-tools branch November 5, 2025 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants