LLM Integration
byethrow provides two methods to integrate with AI assistants, enabling them to provide accurate and up-to-date guidance for your byethrow code.
Skills (Recommended)
The @praha/byethrow-docs package includes a CLI tool that generates AI agent configuration files for your project.
This is the recommended approach as it:
- Requires no external server setup
- Works offline
- Integrates directly with your project
- Provides instant access to documentation
Installation
Setup
Use the init command to generate the configuration file for your AI assistant:
Once initialized, your AI assistant will automatically reference byethrow documentation when helping you with your code.
CLI Commands
The @praha/byethrow-docs package also provides additional commands for exploring documentation:
MCP Server (Alternative)
If your environment does not support Skills, you can use the @praha/byethrow-mcp package which provides a Model Context Protocol (MCP) server.
What is MCP?
The Model Context Protocol (MCP) is a standardized way for AI assistants to access external data sources and tools. The byethrow MCP server provides:
- Current function signatures and type definitions
- Usage examples and best practices
- Documentation for all available functions
Installation
Choose your AI assistant and follow the corresponding setup instructions below.
VS Code with GitHub Copilot
Add the following configuration to your VS Code MCP config file. See the VS Code MCP documentation for more details.
Cursor
Go to: Settings → Cursor Settings → MCP → Add new global MCP server
Alternatively, paste the following configuration into your ~/.cursor/mcp.json file.
For project-specific installation, create .cursor/mcp.json in your project folder.
See the Cursor MCP documentation for more information.
Roo Code
Add this to your Roo Code MCP configuration file. See Roo Code MCP docs for more info.
Windsurf
Add this to your Windsurf MCP config file. See Windsurf MCP docs for more info.
Claude Code
Run this command. See Claude Code MCP docs for more info.
Claude Desktop
Add the following to your Claude Desktop MCP configuration:
