### Install @praha/byethrow-mcp in Cursor (JSON) Source: https://github.com/praha-inc/byethrow/blob/main/packages/mcp/README.md Add the @praha/byethrow-mcp server configuration to your Cursor MCP settings. This allows Cursor to utilize the package for enhanced context retrieval within your projects. ```json { "mcpServers": { "@praha/byethrow": { "command": "npx", "args": ["-y", "@praha/byethrow-mcp"] } } } ``` -------------------------------- ### Install @praha/byethrow-mcp in Claude Desktop (JSON) Source: https://github.com/praha-inc/byethrow/blob/main/packages/mcp/README.md Configure Claude Desktop's MCP settings by adding the @praha/byethrow-mcp server to the `claude_desktop_config.json` file. This enables Claude Desktop to utilize the package for context. ```json { "mcpServers": { "@praha/byethrow": { "command": "npx", "args": ["-y", "@praha/byethrow-mcp"] } } } ``` -------------------------------- ### Install @praha/byethrow-mcp in Windsurf (JSON) Source: https://github.com/praha-inc/byethrow/blob/main/packages/mcp/README.md Configure Windsurf to use the @praha/byethrow-mcp server by adding the necessary JSON configuration. This allows Windsurf to access the package's features for prompt enhancement. ```json { "mcpServers": { "@praha/byethrow": { "command": "npx", "args": ["-y", "@praha/byethrow-mcp"] } } } ``` -------------------------------- ### Install @praha/byethrow-mcp in VS Code (JSON) Source: https://github.com/praha-inc/byethrow/blob/main/packages/mcp/README.md Configure VS Code's MCP settings to integrate the @praha/byethrow-mcp server. This involves adding the server configuration to your VS Code MCP config file, specifying the command to execute the package. ```json { "mcp": { "servers": { "@praha/byethrow": { "type": "stdio", "command": "npx", "args": ["-y", "@praha/byethrow-mcp"] } } } } ``` -------------------------------- ### Install @praha/byethrow-mcp in Roo Code (JSON) Source: https://github.com/praha-inc/byethrow/blob/main/packages/mcp/README.md Integrate the @praha/byethrow-mcp package into your Roo Code environment by adding its configuration to the MCP settings file. This enables Roo Code to leverage the package's capabilities. ```json { "mcpServers": { "@praha/byethrow": { "command": "npx", "args": ["-y", "@praha/byethrow-mcp"] } } } ``` -------------------------------- ### Install @praha/byethrow-mcp in Claude Code (Shell) Source: https://github.com/praha-inc/byethrow/blob/main/packages/mcp/README.md Add the @praha/byethrow-mcp server to Claude Code using the provided command-line interface. This command registers the package for use within Claude Code's MCP integration. ```sh claude mcp add @praha/byethrow -- npx -y @praha/byethrow-mcp ``` -------------------------------- ### TypeScript Result Type Example Source: https://github.com/praha-inc/byethrow/blob/main/packages/byethrow/README.md Demonstrates the usage of the @praha/byethrow Result type for validating an ID and finding a user. It showcases chaining operations using `pipe`, `andThrough`, and `andThen`, along with conditional handling of success and failure states. ```TypeScript import { Result } from '@praha/byethrow'; const validateId = (id: string) => { if (!id.startsWith('u')) { return Result.fail(new Error('Invalid ID format')); } return Result.succeed(); }; const findUser = Result.try({ try: (id: string) => { return { id, name: 'John Doe' }; }, catch: (error) => new Error('Failed to find user', { cause: error }), }); const result = Result.pipe( Result.succeed('u123'), Result.andThrough(validateId), Result.andThen(findUser), ); if (Result.isSuccess(result)) { console.log(result.value); // User found: John Doe } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.