OM

onbirdev/moodle-webservice_mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

18 stars 9 forks 품질 47 트렌드 26

Moodle 웹 서비스 플러그인은 AI 조수와 완벽하게 통합하기위한 MCP를 구현합니다

개요

Moodle 웹 서비스 플러그인은 AI 조수 및 외부 시스템과의 원활한 통합을 구현합니다. 이 플러그인은 Moodle의 외부 기능을 JSON-RPC 2.0을 사용하여 MCP 도구로 노출하여 MCP 호환 클라이언트가 발견하고 호출할 수 있습니다. - : JSON-RPC 2.0을 사용하여 모델 콘텍스 프로토콜에 대한 전체 지원 - : MCP 도구로 Moodle 외부 기능을 자동 노출 - : 더 나은 도구 문서에 JSON Schema에 Moodle 매개 변수 설명을 변환 - : Moodle의 외부 서비스 토큰을 사용하여 보안 액세스 - : 인증 된 서비스에 사용할 수있는 기능을 노출 - : 포괄적 인 PHPUnit 테스트 적용 - : 다른 시스템과 빠른 통합을위한 내장 클라이언트 클래스 애플리케이션이 AI Assistants 및 Large Language Models(LLMs)에 대한 컨텍스트를 제공하는 방법을 표준화하는 개방형 프로토콜입니다.

개요(AI 번역)

**Model Context Protocol (MCP)**을 구현하는 Moodle 웹 서비스 플러그인은 AI 조수 및 외부 시스템과의 원활한 통합을 위한 것입니다. 이 플러그인은 Moodle의 외부 기능을 JSON-RPC 2.0을 사용하여 MCP 도구로 노출하여 MCP 호환 클라이언트가 발견하고 호출할 수 있습니다.

특징

  • MCP 프로토콜 구현: JSON-RPC 2.0을 사용하여 Model Context Protocol에 대한 전체 지원
  • Dynamic Tool Discovery: MCP 도구로서의 Moodle External기능을 자동 노출
  • JSON Schema Generation: 더 나은 도구 문서에 JSON Schema에 Moodle 매개 변수 설명을 변환
  • 토큰 기반 인증: Moodle의 외부 서비스 토큰을 사용하여 보안 액세스
  • 서비스: 인증된 서비스에서만 사용할 수 있는 기능 노출 -Well-tested: 종합 PHPUnit 테스트 적용
  • ** 쉬운 통합 **: 다른 시스템과의 빠른 통합을위한 내장 클라이언트 클래스

MCP는 무엇입니까?

** Model Context Protocol (MCP)**는 애플리케이션이 AI Assistants 및 Large Language Models (LLMs)에 컨텍스트를 제공하는 방법을 표준화하는 개방형 프로토콜입니다. AI 조수는 다음과 같습니다.

  • 사용 가능한 도구 및 기능 발견

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Moodle MCP Web Service Plugin

A Moodle web service plugin that implements the Model Context Protocol (MCP) for seamless integration with AI assistants and external systems. This plugin exposes Moodle’s external functions as MCP tools using JSON-RPC 2.0, making them discoverable and callable by MCP-compatible clients.

Features

  • MCP Protocol Implementation: Full support for Model Context Protocol using JSON-RPC 2.0
  • Dynamic Tool Discovery: Automatically exposes Moodle external functions as MCP tools
  • JSON Schema Generation: Converts Moodle parameter descriptions to JSON Schema for better tool documentation
  • Token-based Authentication: Secure access using Moodle’s external service tokens
  • Service-aware: Only exposes functions available to the authenticated service
  • Well-tested: Comprehensive PHPUnit test coverage
  • Easy Integration: Built-in client class for quick integration with other systems

What is MCP?

The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to AI assistants and Large Language Models (LLMs). It allows AI assistants to:

  • Discover available tools and their capabilities
  • Invoke tools with proper parameters
  • Receive structured responses

This plugin bridges Moodle’s web services with the MCP protocol, enabling AI assistants to interact with your Moodle instance in a standardized way.

Requirements

  • Moodle: 4.5 or higher
  • PHP: 8.1 or higher
  • Moodle Web Services: Must be enabled

Installation

  1. Visit Site administration → Plugins → Install plugins
  2. Search for “MCP Web Service”
  3. Click Install and follow the on-screen instructions

Method 2: Manual Installation

  1. Download the plugin or clone from repository:

    cd /path/to/moodle/webservice
    git clone https://github.com/onbirdev/moodle-webservice_mcp.git mcp
    
  2. Visit Site administration → Notifications to complete the installation

  3. The plugin will be installed as webservice_mcp

Configuration

1. Enable Web Services

  1. Go to Site administration → Advanced features
  2. Enable Enable web services
  3. Save changes

2. Enable MCP Protocol

  1. Go to Site administration → Plugins → Web services → Manage protocols
  2. Enable Model Context Protocol (MCP)

3. Create an External Service

  1. Go to Site administration → Server → Web services → External services
  2. Click Add to create a new service
  3. Configure the service:
    • Name: e.g., “MCP Service”
    • Short name: e.g., “mcp_service”
    • Enabled: Yes
    • Authorized users only: Yes (recommended)
  4. Add the external functions your service should expose

4. Create a Token

  1. Go to Site administration → Server → Web services → Manage tokens
  2. Click Add to create a new token
  3. Select:
    • User: The user this token will authenticate as
GitHub에서 전체 README 보기

설치

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

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →