Cover image
Try Now
2025-04-14

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

MCP Test Sheet Builder

GoogleスプレッドシートとGoogleドライブを使用して、テスト項目を自動生成するMCPサーバーです。

機能

  • GoogleDriveにアクセス可能
  • GoogleDrive内のスプレッドシートを閲覧・編集可能
  • 指定したテンプレートのスプレッドシートをコピーしてファイルを作成可能
  • プロンプトで指定された要件をテストするための因子水準を作成し、スプレッドシートに記載可能
  • 因子水準に基づいてテスト項目をスプレッドシートに作成可能

MCPツール

このサーバーは以下のMCPツールを提供します:

  1. mcp_test_sheet_builder_generate_test: テストシートを生成するツール

    • パラメータ:
      • templateId: テンプレートとなるスプレッドシートのID(必須)
      • title: 生成するスプレッドシートのタイトル(必須)
      • prompt: テスト要件を記述したプロンプト(必須)
      • useOrthogonalArray: 直交表を使用するかどうか(省略可、デフォルト: false)
  2. mcp_test_sheet_builder_get_spreadsheet: スプレッドシートの情報を取得するツール

    • パラメータ:
      • id: スプレッドシートのID(必須)
      • range: 取得する範囲(例: Sheet1!A1:Z100)(省略可)

セットアップ方法

  1. Google Cloud Consoleでプロジェクトを作成
  2. Google Drive APIとGoogle Sheets APIを有効化
  3. OAuth同意画面を設定
  4. OAuth 2.0クライアントIDを作成し、認証情報をダウンロード
  5. ダウンロードしたJSONファイルをcredentials/client_secret.jsonとして保存
  6. 以下のコマンドでトークンを生成:
    node simple-token-generator.js
    
    • このコマンドを実行すると、認証URLが表示されます
    • URLをコピーしてブラウザで開き、Google認証を行います
    • 認証が完了すると自動的にmcp-test-sheet-builder/credentials/token.jsonが生成されます
    • 「トークンが保存されました」と表示されれば認証は成功です
  7. Cursor SettingsのMCP Serversで「Add new global MCP server」を押下し、mcp.jsonに以下を追記
    "mcp_test_sheet_builder": {
       "command": "node",
       "args": [
         "[実際のパスを設定する]/MCP-TestSheetBuilder/mcp-test-sheet-builder/build/index.js"
       ]
     }
    
  8. mcp_test_sheet_builderを有効にする

トラブルシューティング

  • トークンが期限切れになった場合は、simple-token-generator.jsを使用して新しいトークンを生成してください
  • Google APIの権限が不足している場合は、Google Cloud Consoleでプロジェクトの権限を確認してください
  • トークン生成プロセスで問題が発生した場合の対処法:
    • client_secret.jsonの内容が正しいか確認する
    • OAuth同意画面で適切なスコープが設定されているか確認する
    • Google Cloud Consoleでリダイレクトにhttp://localhost:8080が登録されているか確認する
    • Node.jsのバージョンが17以上であることを確認する(ESMサポートのため)

技術詳細

  • このバージョンではMCPプロトコルのみをサポートしています
  • パラメータのバリデーションにZodを使用しています
  • GoogleスプレッドシートとGoogleドライブの操作にGoogle API Node.js クライアントライブラリを使用しています
  • 認証にはOAuth 2.0を使用し、ブラウザ経由でのユーザー認証を実装しています

相关推荐

  • av
  • Effortlessly run LLM backends, APIs, frontends, and services with one command.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.

  • 1Panel-dev
  • 🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.

  • rulego
  • ⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.

  • Azure
  • This repository is for development of the Azure MCP Server, bringing the power of Azure to your agents.

  • Onelevenvy
  • Flock is a workflow-based low-code platform for rapidly building chatbots, RAG, and coordinating multi-agent teams, powered by LangGraph, Langchain, FastAPI, and NextJS.(Flock 是一个基于workflow工作流的低代码平台,用于快速构建聊天机器人、RAG、Agent和Muti-Agent应用,采用 LangGraph、Langchain、FastAPI 和 NextJS 构建。)

  • caio-moliveira
  • This project was created to demonstrate how we can connect with different Model Context Protocols (MCPs).

    Reviews

    4 (5)
    Avatar
    user_9VbAfZrZ
    2025-04-24

    As a loyal user of MCP applications, I highly recommend the MCP-TestSheetBuilder created by Takatoshi-Miura. This tool has significantly improved my workflow by providing a seamless and efficient way to build test sheets. Its user-friendly interface and robust functionality make it an indispensable resource for any professional needing to create and manage test sheets with ease. A must-have for anyone in need of streamlined test sheet creation!

    Avatar
    user_zQ5ktZlP
    2025-04-24

    As a dedicated user of MCP applications, I must say the MCP-TestSheetBuilder by Takatoshi-Miura is an outstanding tool. Its user-friendly interface makes creating test sheets a breeze, saving me a significant amount of time. The functionality and performance are impressive, making it an invaluable asset in my daily workflow. Highly recommend it!

    Avatar
    user_6fI0gx96
    2025-04-24

    MCP-TestSheetBuilder by Takatoshi-Miura is a fantastic tool that simplifies the process of creating test sheets. Its user-friendly interface and seamless functionality make it a must-have for anyone in need of efficient test sheet generation. Highly recommended for professionals seeking a reliable and efficient solution!

    Avatar
    user_9TgOMqfh
    2025-04-24

    The MCP-TestSheetBuilder by Takatoshi-Miura is an incredible tool for creating detailed test sheets effortlessly. Its user-friendly interface and robust features make it an essential for anyone needing to build professional test sheets quickly. Highly recommend it for its efficiency and simplicity!

    Avatar
    user_pOV5gItg
    2025-04-24

    As an avid user of MCP applications, I found MCP-TestSheetBuilder by Takatoshi-Miura incredibly efficient. This tool streamlines the testing process, offering seamless integration and a user-friendly interface. Its robust capabilities have significantly improved our workflow. Highly recommended for anyone looking to optimize their testing procedures!