Skip to content

chore: go back to byethrow mcp server - #542

Merged
ryoppippi merged 1 commit into
mainfrom
byethrow-mcp
Aug 18, 2025
Merged

chore: go back to byethrow mcp server#542
ryoppippi merged 1 commit into
mainfrom
byethrow-mcp

Conversation

@ryoppippi

@ryoppippi ryoppippi commented Aug 18, 2025

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores

    • Updated MCP server configuration: renamed the Byethrow entry to a scoped package, standardized connection type, and simplified startup arguments for easier setup.
    • Added a development dependency for the Byethrow MCP integration.
  • Documentation

    • Removed an outdated tip referencing the previous Byethrow MCP server to keep guidance current.

@coderabbitai

coderabbitai Bot commented Aug 18, 2025

Copy link
Copy Markdown

Walkthrough

Replaces the “byethrow” MCP server config with “@praha/byethrow,” adding type and env, and simplifying args in .mcp.json. Removes a related tip from CLAUDE.md. Adds @praha/byethrow-mcp as a devDependency in package.json. No runtime code changes.

Changes

Cohort / File(s) Summary
MCP server configuration
/.mcp.json
Renamed mcpServers.byethrow to mcpServers["@praha/byethrow"]; added "type": "stdio" and "env": {}; changed args from multi-token command to ["byethrow-mcp"]; command remains "bun".
Documentation cleanup
/CLAUDE.md
Removed Byethrow MCP server tip entry from “Tips for Claude Code.”
Development dependencies
/package.json
Added devDependency "@praha/byethrow-mcp": "^0.1.2".

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

A hop, a tweak, a gentle nudge—
Byethrow dons a newer grudge.
Stdio whispers, env stands clear,
Dev deps bloom, the path sincere.
I thump approval, ears held high—
Configs aligned, we leap and fly! 🐇✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch byethrow-mcp

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 18, 2025

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ccusage-guide 63f02e6 Commit Preview URL

Branch Preview URL
Aug 18 2025, 09:35 AM

@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.

Summary of Changes

Hello @ryoppippi, 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 updates the project's configuration to integrate with the byethrow Model Context Protocol (MCP) server using a dedicated package. It refactors the existing byethrow setup to leverage the new @praha/byethrow-mcp package, streamlining its execution and dependency management. This change aims to improve the consistency and maintainability of the MCP server integration.

Highlights

  • Refactored Byethrow MCP Configuration: The .mcp.json file's byethrow entry has been updated to @praha/byethrow, changing its execution method from a generic sitemcp command to a direct call to bun byethrow-mcp, indicating a shift to a dedicated executable.
  • New Dependency for Byethrow MCP: The @praha/byethrow-mcp package has been added to package.json and bun.lock, formalizing the dependency on the new dedicated Byethrow MCP server implementation.
  • Documentation Cleanup: The CLAUDE.md file has been modified to remove an outdated or no longer relevant documentation link for the byethrow MCP server.
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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

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 issue 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.

@pkg-pr-new

pkg-pr-new Bot commented Aug 18, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/ryoppippi/ccusage@542

commit: 63f02e6

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​praha/​byethrow-mcp@​0.1.27710010095100

View full report

@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 updates the byethrow MCP server configuration to use a local package (@praha/byethrow-mcp) instead of fetching from a remote URL via sitemcp. The changes are consistent across the configuration file, documentation, and package dependencies. I have one suggestion regarding the new configuration in .mcp.json to improve its clarity and address a potential breaking change.

Comment thread .mcp.json
Comment on lines +25 to 32
"@praha/byethrow": {
"type": "stdio",
"command": "bun",
"args": [
"x",
"sitemcp",
"https://praha-inc.github.io/byethrow/",
"--concurrency 10",
"--no-cache"
]
"byethrow-mcp"
],
"env": {}
}

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.

high

This change introduces two points for consideration:

  1. Breaking Change: The key for the byethrow MCP server has been changed from "byethrow" to "@praha/byethrow". This is a breaking change for any tools or scripts that consume this configuration file. All consumers must be updated to use the new key.
  2. Redundant Property: The env property is an empty object and can be removed for simplicity if no environment variables are needed.
		"@praha/byethrow": {
			"type": "stdio",
			"command": "bun",
			"args": [
				"byethrow-mcp"
			]
		}

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
.mcp.json (1)

31-31: Nit: remove empty env block to reduce noise

"env": {} is redundant if you don’t need any variables. Consider removing it for a cleaner config.

-      ],
-      "env": {}
+      ]
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 50cc926 and 63f02e6.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • .mcp.json (1 hunks)
  • CLAUDE.md (0 hunks)
  • package.json (1 hunks)
💤 Files with no reviewable changes (1)
  • CLAUDE.md
🧰 Additional context used
📓 Path-based instructions (1)
package.json

📄 CodeRabbit Inference Engine (CLAUDE.md)

Dependencies should be added as devDependencies unless explicitly requested otherwise

Files:

  • package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Workers Builds: ccusage-guide
🔇 Additional comments (2)
package.json (1)

72-72: Dev dependency addition aligns with guidelines

Adding "@praha/byethrow-mcp" under devDependencies is correct and matches the project’s usage pattern and the provided coding guideline.

.mcp.json (1)

26-26: LGTM on stdio type

"type": "stdio" is appropriate for an MCP server launched via a local process.

Comment thread .mcp.json
Comment on lines +25 to 32
"@praha/byethrow": {
"type": "stdio",
"command": "bun",
"args": [
"x",
"sitemcp",
"https://praha-inc.github.io/byethrow/",
"--concurrency 10",
"--no-cache"
]
"byethrow-mcp"
],
"env": {}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix command invocation: use bun x or bunx to resolve the binary

With "command": "bun" and "args": ["byethrow-mcp"], Bun will try to run a local file named byethrow-mcp rather than resolve the package binary. To execute an npm-style binary, you need Bun’s x-runner. Use either bun x byethrow-mcp or bunx byethrow-mcp.

Apply one of the following diffs (preferred: use bunx):

Option A (preferred, simpler):

-      "command": "bun",
-      "args": [
-        "byethrow-mcp"
-      ],
+      "command": "bunx",
+      "args": [
+        "byethrow-mcp"
+      ],

Option B (keep command as bun, call x subcommand):

       "command": "bun",
       "args": [
-        "byethrow-mcp"
+        "x",
+        "byethrow-mcp"
       ],
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@praha/byethrow": {
"type": "stdio",
"command": "bun",
"args": [
"x",
"sitemcp",
"https://praha-inc.github.io/byethrow/",
"--concurrency 10",
"--no-cache"
]
"byethrow-mcp"
],
"env": {}
}
"@praha/byethrow": {
"type": "stdio",
"command": "bunx",
"args": [
"byethrow-mcp"
],
"env": {}
}
🤖 Prompt for AI Agents
In .mcp.json around lines 25 to 32 the run configuration uses "command": "bun"
with args ["byethrow-mcp"], which makes Bun try to execute a local file instead
of resolving the package binary; replace this by using Bun's x-runner: either
set "command" to "bunx" and keep args ["byethrow-mcp"], or keep "command": "bun"
and change args to ["x", "byethrow-mcp"] so the package binary is correctly
resolved and executed.

@ryoppippi
ryoppippi merged commit dc6f537 into main Aug 18, 2025
15 checks passed
@ryoppippi
ryoppippi deleted the byethrow-mcp branch August 18, 2025 10:06
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