KM

kimtth/mcp-aoai-web-browsing

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

35 stars 14 forks Качество 77 Тренд 8MIT

kimtth/mcp-aoai-web-browsing - кандидат на сервер MCP, импортированный из https://github.com/kimtth/mcp-aoai-web-browsing.

Обзор

kimtth/mcp-aoai-web-browsing - кандидат на сервер MCP, импортированный из https://github.com/kimtth/mcp-aoai-web-browsing.

Обзор (машинный перевод)

Приложение для просмотра Playwright с Azure OpenAI / OpenAI плюс сфокусированные примеры MCP v1/v2, OAuth и интерактивные приложения MCP.

1.Оригинальное приложение для просмотра - интеграция Azure OpenAI/OpenAI, настройка и клиентские соединения. 2. Образцы MCP v1 и v2 — инструменты браузера и локальные потоки OAuth. 3. MCP Образцы приложений — интерактивные пользовательские интерфейсы, созданные с помощью Prefab.

# 1 Веб-браузер MCP приложение

Приложение для локального просмотра с интерфейсом чата Tkinter и мостом MCP-to-LLM.

  • Оригинальный сервер использует автономный пакет fastmcp; элементы управления Playwright видимый браузер Chromium и сохраняет текущую страницу между вызовами инструмента. Реализация локального клиент-моста адаптирует MCP Определения инструментов для вызова OpenAI Chat Completions. Поддерживает один Встроенный сервер FastMCP или внешний сервер stdio. GUI использует Azure OpenAI. Абоненты Python могут настроить мост для стандарта OpenAI, но оригинальный сервер браузера отдельно инициализирует собственный Azure клиент для инструмента селекторного извлечения.

###Настройка и запуск

Требования: Python **3.13 или новее **, Tkinter, графический рабочий стол, и т.д. Повеления

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

MCP in Practice: Web Browsing, Protocols, and Apps

A Playwright browsing application with Azure OpenAI/OpenAI, plus focused examples of MCP v1/v2, OAuth, and interactive MCP Apps.

  1. Original browsing application — Azure OpenAI/OpenAI integration, setup and client connections.
  2. MCP v1 and v2 samples — browser tools and local OAuth flows.
  3. MCP Apps samples — interactive tool-response UIs built with Prefab.

1. Web browsing MCP application

A local browsing application with a Tkinter chat UI and an MCP-to-LLM bridge.

  • The original server uses the standalone fastmcp package; Playwright controls a visible Chromium browser and keeps the current page between tool calls.
  • The local client_bridge implementation adapts MCP tool definitions to OpenAI Chat Completions function calling. It supports an in-process FastMCP server or an external stdio server.
  • The GUI uses Azure OpenAI. Python callers can configure the bridge for standard OpenAI, but the original browser server separately initializes its own Azure client for the selector-extraction tool.

Setup and run

Requirements: Python 3.13 or newer, Tkinter, a graphical desktop session, and uv. The commands below use uv to manage this project’s environment; MCP itself does not require a particular Python package manager. Run them from the repository root.

  1. Copy .env.template to a local .env file, keeping the template intact. Configure an existing Azure OpenAI deployment that supports Chat Completions tool calling:

    AZURE_OPEN_AI_ENDPOINT=
    AZURE_OPEN_AI_API_KEY=
    AZURE_OPEN_AI_DEPLOYMENT_MODEL=
    AZURE_OPEN_AI_API_VERSION=
    

    The API version is needed for the legacy Azure endpoint, not the /openai/v1 path described below. Keep .env out of source control; it is gitignored.

  2. Install the Python dependencies and the Chromium browser binary:

    uv sync
    uv run playwright install chromium
    

    On Linux, Playwright may also require system dependencies; see its installation guide. Tkinter must be available in the selected Python installation.

  3. Launch the GUI in the project environment:

    uv run python chatgui.py
    

The root dependency declarations use minimum versions, not compatibility caps. The inspected environment uses FastMCP 3.2.0 and MCP SDK 1.27.0; this is not a guarantee that a fresh resolution of newer major versions will work. Keep the learning samples in their separate environments.

Azure v1 endpoint and model parameters

For an endpoint ending in /openai/v1, set AZURE_OPEN_AI_ENDPOINT to the full

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "browser-navigator": { "command": "uv", "args": ["--directory", "/path/to/mcp-aoai-web-browsing", "run", "fastmcp", "run", "server/browser_navigator_server.py:app", "--transport", "stdio"] } } }