
mcp test
一个用 JavaScript 编写的 FizzBuzz 问题解决方案。
Repository Info
About This Server
一个用 JavaScript 编写的 FizzBuzz 问题解决方案。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
FizzBuzz実装
このリポジトリは、FizzBuzz問題を解く関数の実装を含んでいます。
機能
fizzBuzz関数は以下の仕様に従って実装されています:
- 1から指定された上限値までの数をプリント
- 3の倍数のときは「Fizz」
- 5の倍数のときは「Buzz」
- 3と5の両方の倍数のときは「FizzBuzz」
- それ以外の場合は数字をそのまま出力
使用方法
// デフォルト値(100)で実行
const result1 = fizzBuzz();
// 任意の上限値(例:15)で実行
const result2 = fizzBuzz(15);
テスト
テストを実行するには:
node fizzbuzz.js
以下のテストケースが含まれています:
- limit=15での出力テスト
- 通常の数字の出力テスト(limit=5)
- デフォルト値(100)でのテスト
Quick Start
Clone the repository
git clone https://github.com/showtech-prog/mcp-testInstall dependencies
cd mcp-test
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.