MCP ExplorerExplorer

Mastra Playwright Mcp

@walnut-proon 9 months ago
18 MIT
FreeCommunity
AI Systems
Template project for browser automation using Mastra and Playwright MCP.

Overview

What is Mastra Playwright Mcp

Mastra-playwright-mcp is a template project designed to implement browser automation using Playwright with Mastra integration.

Use cases

Use cases include automated testing of web applications, web scraping, and creating browser-based bots for various tasks.

How to use

To use mastra-playwright-mcp, install the necessary dependencies with ‘npm install’, and start the development server using ‘npm run dev’. Configure environment variables in the ‘.env.development’ file as needed.

Key features

Key features include browser automation using Mastra, integration of Playwright with Model-Control-Protocol (MCP), and type-safe implementation with TypeScript.

Where to use

Mastra-playwright-mcp can be used in web development, automated testing, and any scenario requiring browser automation.

Content

Mastra Playwright MCP

このプロジェクトは、Mastraを使用してPlaywrightのブラウザ自動化を実装するためのテンプレートプロジェクトです。

機能

  • Mastraを使用したブラウザ自動化
  • PlaywrightのMCP(Model-Control-Protocol)統合
  • TypeScriptによる型安全な実装

必要条件

  • Node.js (v20以上推奨)
  • npm または yarn

インストール

# 依存パッケージのインストール
npm install

開発環境の起動

# 開発サーバーの起動
npm run dev

プロジェクト構成

  • src/ - ソースコードディレクトリ
    • mastra/ - Mastra関連の設定とエージェント
      • agents/ - Playwrightエージェントの実装
      • mcp/ - MCPサーバーの登録
      • index.ts - Mastraのメインセットアップ

環境変数

開発時は .env.development ファイルに必要な環境変数を設定してください。

依存パッケージ

主な依存パッケージ:

  • @mastra/core: ^0.7.0
  • @mastra/mcp: ^0.3.6
  • @playwright/mcp: ^0.0.5
  • mastra: ^0.4.4

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers