Installation¶
Coming soon
The plugin is not published yet. The ZIP download, source repository and Moodle directory listing are coming soon.
Option A — ZIP upload¶
- Get the plugin ZIP (coming soon).
- Go to Site administration → Plugins → Install plugins and upload it.
- Follow the installer.
Option B — Copy the folder¶
- Copy the plugin directory to
local/mcpserverin the Moodle code tree. On Moodle 5.x that path ispublic/local/mcpserver. - Visit Site administration → Notifications and install the plugin.
Folder name matters
The folder must be local/mcpserver. Entry points find config.php from the script path, so the same tree works in both the 4.5 and 5.x layouts.
After installing¶
Open Site administration → Plugins → Local plugins → MCP server.
- The endpoint URL is shown at the top of the page.
- Write tools are off. See Enabling write mode.
- Review the other settings.
Apache with PHP-FPM¶
Apache with PHP-FPM does not pass the Authorization header to PHP unless you allow it. Without it, the Bearer token never arrives and every call gets HTTP 401. Add this to the virtual host or to the Moodle directory:
If your Apache build has no CGIPassAuth, copy the header instead:
Check the configuration with apachectl configtest and reload Apache gracefully.