Skip to content

feat: add Radar de Hardware MCP integration - #42

Merged
Zeptiny merged 1 commit into
Zeptiny:mainfrom
ShiftSad:feat/radar-hardware-mcp
Nov 7, 2026
Merged

Zeptiny merged 1 commit into
Zeptiny:mainfrom
ShiftSad:feat/radar-hardware-mcp

Conversation

@ShiftSad

@ShiftSad ShiftSad commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This pull request adds optional integration with Radar de Hardware MCP, enabling the bot to query current Brazilian hardware prices, price history, and specifications for GPUs, CPUs, and RAM. The integration is opt-in and requires no API key. It includes new tools, configuration options, and comprehensive tests to ensure robust operation and error handling.

Radar de Hardware MCP Integration:

  • Added the core/radar_tools.py module, which defines two new tools (radar_list_tools and radar_call_tool) that interact with the MCP endpoint for hardware data. The tools handle discovery, querying, and error reporting, and are only registered if RADAR_MCP_ENABLED is set.
  • Updated .env.example and config.py to include configuration options for enabling MCP integration, setting the endpoint URL, and request timeout. [1] [2]

Bot and Profile Integration:

  • Registered the MCP tools in the bot's tool registry and included them in the /chat profile so they are available in relevant conversations. Tools are cleanly unregistered on bot unload. [1] [2] [3] [4] [5]

Documentation:

  • Updated README.md with a new section explaining the MCP integration, usage instructions, and example queries. The documentation clarifies that the feature is optional and describes its behavior and limitations. [1] [2]

Testing:

  • Added tests/test_radar_tools.py to cover tool registration logic, protocol discovery, call forwarding, error handling, and cancellation propagation, ensuring robust and reliable integration.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 09df6ba7-f4aa-4d98-a66c-dffcf5e1d16d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Zeptiny
Zeptiny merged commit 16147fa into Zeptiny:main Nov 7, 2026
1 check passed
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