Skip to content

Conversation

@marcusquinn
Copy link
Owner

Summary

Document the MCP tool filtering convention using YAML frontmatter in agent files.

Changes

  • Add mcp_requirements frontmatter documentation to build-agent.md
  • Explain how to specify required MCP tools per agent

Add documentation for declaring MCP tool requirements in agent frontmatter.
This prepares agents for future OpenCode includeTools support while
documenting intent for human reviewers.

- Add mcp_requirements YAML frontmatter pattern
- Reference OpenCode issue #7399 for includeTools feature request
- Link to Amp's lazy-load MCP approach as prior art
- Explain token savings potential (e.g., 17k → 1.5k for chrome-devtools)

Related: anomalyco/opencode#7399
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 11, 2026

Warning

Rate limit exceeded

@marcusquinn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 19 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 68436d4 and ece326b.

📒 Files selected for processing (1)
  • .agent/tools/build-agent/build-agent.md

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@marcusquinn marcusquinn merged commit aec8c5e into main Jan 11, 2026
9 of 12 checks passed
@marcusquinn marcusquinn deleted the feature/mcp-includetools-support branch January 11, 2026 05:37
@gemini-code-assist
Copy link

Summary of Changes

Hello @marcusquinn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new documentation convention for mcp_requirements within agent files. The primary purpose is to establish a standardized way for agents to declare their specific MCP tool dependencies using YAML frontmatter. While currently informational, this change lays the groundwork for future includeTools support in OpenCode, which will enable more efficient and targeted tool access, ultimately leading to benefits like reduced token usage and clearer agent design.

Highlights

  • New Documentation Convention: Introduced documentation for the mcp_requirements YAML frontmatter convention within agent files.
  • Tool Filtering Specification: Explained how to specify required MCP tools per agent using the new mcp_requirements frontmatter.
  • Future-Proofing: Clarified that this convention is currently informational, anticipating future includeTools support in OpenCode for filtered MCP access.
  • Benefits Outlined: Detailed the advantages of documenting MCP requirements, including preparing for future tool filtering, aiding human review, and enabling token savings.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@sonarqubecloud
Copy link

@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 256 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Sun Jan 11 05:37:21 UTC 2026: Code review monitoring started
Sun Jan 11 05:37:22 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 256
Sun Jan 11 05:37:22 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Sun Jan 11 05:37:24 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 256
  • VULNERABILITIES: 0

Generated on: Sun Jan 11 05:38:00 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds documentation for a new mcp_requirements frontmatter convention in agent files. The documentation is clear, well-structured, and effectively explains the purpose and future use of this convention for tool filtering. I have one minor suggestion to improve the consistency of code block language specifiers in the markdown file.

augment-context-engine_*: true # Augment codebase search
wordpress-mcp_*: true # WordPress MCP tools
```text
```

Choose a reason for hiding this comment

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

medium

For consistency with the yaml block you've added below and for better syntax highlighting, it would be clearer to specify the language of this code block as yaml since its content is a YAML snippet.

Suggested change
```
```yaml

marcusquinn added a commit that referenced this pull request Jan 11, 2026
All 13 unmerged branches processed:
- PRs merged: #44, #46, #48, #51
- PRs closed (already in main): #45, #47, #49, #50
- Branches deleted (superseded): 5 feature branches

All remote branches cleaned up. t059 marked complete.
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