Back to Home
fabianbartsch icon

mcp-docs

Verified Safe

by fabianbartsch

Overview

Automatically generates documentation pages for Laravel Model Context Protocol (MCP) servers by extracting metadata from server classes.

Installation

Run Command
php artisan serve

Environment Variables

  • MCP_DOCS_SERVER_CLASS
  • APP_URL
  • APP_KEY

Security Notes

The package utilizes PHP reflection to extract metadata from trusted, user-configured classes, which is generally safe. Input values (like server instructions) are properly escaped with `htmlspecialchars` and `nl2br` before rendering to prevent XSS. Copy-to-clipboard functionality uses `navigator.clipboard.writeText` or a secure `execCommand` fallback, parsing configuration-derived data via `JSON.parse`. There are no clear indications of 'eval', obfuscation, hardcoded secrets (beyond standard Laravel `APP_KEY`), or direct malicious patterns. Configuration options for `installation_commands` could theoretically suggest malicious commands if the application's configuration itself is compromised, but this falls outside the direct scope of the package's code vulnerabilities.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2025-11-19

Tags

LaravelMCPdocumentationAPI docsPHP