Skip to content

feat: standardize README structure and add auto-sync workflow#33

Merged
Royal-lobster merged 1 commit into
mainfrom
feat/standardize-readme
Jan 27, 2026
Merged

feat: standardize README structure and add auto-sync workflow#33
Royal-lobster merged 1 commit into
mainfrom
feat/standardize-readme

Conversation

@Royal-lobster

Copy link
Copy Markdown
Member

Summary

  • Update README to match standardized mcp-opinion format with npm/license badges
  • Restructure sections for consistency across MCP repositories
  • Add markers for automated tool documentation
  • Add sync-tools.yml workflow to auto-generate tool docs on push to main
  • Add generate-mcp-tools action to scan and document MCP tools

Test plan

  • Build passes (

@iqai/mcp-near-agent@0.1.2 build /Users/srujangurram/Developer/BrainDAO/MCPs/mcp-near
tsc && shx chmod +x dist/index.js)

  • Lint passes (

@iqai/mcp-near-agent@0.1.2 lint /Users/srujangurram/Developer/BrainDAO/MCPs/mcp-near
biome check ./src

Checked 13 files in 8ms. No fixes applied.)

  • Tests pass (

@iqai/mcp-near-agent@0.1.2 test /Users/srujangurram/Developer/BrainDAO/MCPs/mcp-near
vitest run

RUN v3.2.4 /Users/srujangurram/Developer/BrainDAO/MCPs/mcp-near

✓ src/tests/event-listener.test.ts (8 tests) 5ms
✓ src/tests/auth-manager.test.ts (16 tests) 6ms

Test Files 2 passed (2)
Tests 24 passed (24)
Start at 02:58:23
Duration 329ms (transform 52ms, setup 0ms, collect 79ms, tests 11ms, environment 0ms, prepare 120ms))

  • Verify workflow runs successfully after merge

🤖 Generated with Claude Code

- Update README to match standardized mcp-opinion format
- Add npm and license badges
- Restructure sections for consistency
- Add AUTO-GENERATED TOOLS markers for tool documentation
- Add sync-tools.yml workflow to auto-generate tool docs
- Add generate-mcp-tools action to scan and document MCP tools

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @Royal-lobster, 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 significantly enhances the project's documentation and developer experience by standardizing the README.md's structure and introducing an automated workflow. The changes ensure that the project's documentation is consistent, easy to navigate, and automatically kept up-to-date with the available MCP tools, reducing manual effort and potential discrepancies.

Highlights

  • README Standardization: The README.md has been updated to align with a standardized mcp-opinion format, including the addition of npm and license badges, and a complete restructuring of sections for improved consistency across repositories.
  • Automated Tool Documentation: Markers have been introduced in the README.md to designate a section for auto-generated tool documentation, ensuring that the list of available MCP tools is always up-to-date.
  • New GitHub Action for Tool Sync: A new GitHub Action, generate-mcp-tools, has been added. This action scans the project's src/tools directory, extracts MCP tool definitions, and automatically generates their documentation in markdown format.
  • Auto-Sync Workflow: A sync-tools.yml workflow has been implemented to automatically trigger the generate-mcp-tools action on every push to the main branch, ensuring the README.md's tool documentation is always synchronized with the codebase.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/sync-tools.yml
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.

@Royal-lobster
Royal-lobster merged commit 5ce5647 into main Jan 27, 2026
1 check passed

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

Copy link
Copy Markdown
Contributor

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 significantly improves the project's documentation and developer experience by standardizing the README.md and adding a workflow to automatically generate documentation for MCP tools. The new README structure is much clearer and more comprehensive. The script for auto-generating tool documentation is a great addition for maintainability.

I've left a couple of suggestions on the generate-tools.mjs script to improve its robustness and simplify the error handling. Overall, this is a solid contribution.

.filter((f) => f.endsWith(".ts") && f !== "index.ts");

const toolPromises = files.map(async (file) => {
const mod = await import(path.join(TOOLS_DIR, file));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Dynamically importing TypeScript (.ts) files directly like this makes the script dependent on the execution environment being configured with a TypeScript loader (e.g., ts-node/esm). This can make the script less portable and harder to run locally. For a more robust solution, consider transpiling the TypeScript files to JavaScript before this script runs (e.g., in a previous workflow step), and then import the resulting .js files. This removes the dependency on a specific Node.js loader configuration.

Comment on lines +134 to +156
async function main() {
try {
const readme = fs.readFileSync(README_PATH, "utf8");
const tools = await loadTools();

if (tools.length === 0) {
console.warn("Warning: No tools found!");
}

const updated = updateReadme({ readme, tools });

fs.writeFileSync(README_PATH, updated);
console.log(`Synced ${tools.length} MCP tools to README.md`);
} catch (error) {
console.error("Error updating README:", error);
process.exit(1);
}
}

main().catch((err) => {
console.error(err);
process.exit(1);
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The error handling can be simplified by removing the try...catch block from within the main function and relying solely on the .catch() on the main() call. This is a common and clean pattern for handling errors in top-level async scripts and improves code readability.

Suggested change
async function main() {
try {
const readme = fs.readFileSync(README_PATH, "utf8");
const tools = await loadTools();
if (tools.length === 0) {
console.warn("Warning: No tools found!");
}
const updated = updateReadme({ readme, tools });
fs.writeFileSync(README_PATH, updated);
console.log(`Synced ${tools.length} MCP tools to README.md`);
} catch (error) {
console.error("Error updating README:", error);
process.exit(1);
}
}
main().catch((err) => {
console.error(err);
process.exit(1);
});
async function main() {
const readme = fs.readFileSync(README_PATH, "utf8");
const tools = await loadTools();
if (tools.length === 0) {
console.warn("Warning: No tools found!");
}
const updated = updateReadme({ readme, tools });
fs.writeFileSync(README_PATH, updated);
console.log(`Synced ${tools.length} MCP tools to README.md`);
}
main().catch((error) => {
console.error("Error updating README:", error);
process.exit(1);
});

@Royal-lobster
Royal-lobster deleted the feat/standardize-readme branch January 28, 2026 06:45
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