Skip to content

refactor: replace support MCP tools with create_issue, add_comment, search_issues#3811

Merged
yujonglee merged 3 commits intomainfrom
devin/1770697286-better-support-mcp-tools
Feb 10, 2026
Merged

refactor: replace support MCP tools with create_issue, add_comment, search_issues#3811
yujonglee merged 3 commits intomainfrom
devin/1770697286-better-support-mcp-tools

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 10, 2026

refactor: replace support MCP tools with create_issue, add_comment, search_issues

Summary

Replaces the three existing support MCP tools (submit_bug_report, submit_feature_request, read_github_data) with a cleaner set focused on issue management:

  • create_issue — creates a GitHub issue with title, body, and optional labels
  • add_comment — adds a comment to an existing issue by number
  • search_issues — searches GitHub issues via the search API with optional state filter

Key changes in github.rs: create_issue and add_issue_comment are now pub(crate), add_issue_comment returns the comment URL instead of (), and a new search_issues function uses octocrab's search API.

The old read_github_data tool (which queried an Airbyte-synced Postgres DB) is removed in favor of live GitHub search. The old submit_bug_report/submit_feature_request functions are preserved for the HTTP /submit route but no longer exposed as MCP tools.

Review & Testing Checklist for Human

  • search_issues only searches fastrepl/hyprnote — the GITHUB_OWNER/GITHUB_REPO constants are hardcoded. Verify this is sufficient or if fastrepl/homebrew-hyprnote should also be searchable.
  • add_issue_comment return type change — changed from Result<()> to Result<String>. The only existing caller (attach_log_analysis) discards the result with let _ =, so should be safe. Verify no other callers exist.
  • IssueState serialization — uses format!("{:?}", issue.state).to_lowercase() since IssueState doesn't impl Display. This produces "open"/"closed" based on Debug output — confirm this is stable across octocrab versions.
  • Test the MCP tools end-to-end against the deployed support service to verify create_issue, add_comment, and search_issues work with the GitHub App credentials.

Notes

  • The db_pool field on AppState is no longer used by MCP tools (only by the HTTP route), which produces a dead-code warning. This is pre-existing — no new warnings introduced.
  • Feature requests no longer get a dedicated Discussion-creation tool; they go through create_issue like bugs.

Link to Devin run: https://app.devin.ai/sessions/bf96a1ec4c42434191e95bbe936db944
Requested by: @yujonglee


Open with Devin

…earch_issues

Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit 24db34b
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/698ab7553a969c000843e148

@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit 24db34b
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/698ab755590fd9000894da2a

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Contributor Author

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 6 additional findings in Devin Review.

Open in Devin Review

Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
@yujonglee yujonglee merged commit d04342e into main Feb 10, 2026
18 of 19 checks passed
@yujonglee yujonglee deleted the devin/1770697286-better-support-mcp-tools branch February 10, 2026 04:57
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.

1 participant