定制 marekskopal/typo3-mcp-docs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marekskopal/typo3-mcp-docs

最新稳定版本:v1.1.1

Composer 安装命令:

composer require marekskopal/typo3-mcp-docs

包简介

MCP documentation plugin for TYPO3 CMS

README 文档

README

MCP server tool documentation as a content element in TYPO3. Connects to an MCP (Model Context Protocol) server, fetches available tools with their parameters, and renders them as a browsable reference. Results are cached for 24 hours.

Features

  • Automatic tool introspection via MCP protocol (v2025-03-26)
  • Two display modes: full (with parameter tables) and overview (name + description only)
  • Tool filtering — show only selected tools via comma-separated list
  • Tools grouped by name prefix
  • 24-hour response caching (TYPO3 database-backed cache)
  • Bearer token authentication
  • OAuth 2.0 authentication with PKCE (RFC 7636) and dynamic client registration (RFC 7591)
  • Handles both JSON and SSE (Server-Sent Events) responses
  • Customizable templates and styling

Requirements

  • PHP 8.3+
  • TYPO3 13.4 or 14.x

Installation

composer require marekskopal/typo3-mcp-docs

Setup

Include the TypoScript Set MCP Docs in your site package or via the site configuration sets.

Content Element Options (FlexForm)

Option Description
MCP Server URL URL of the MCP server endpoint (e.g. https://example.com/api/mcp)
Auth type bearer — static API key; oauth — OAuth 2.0 with PKCE
MCP API Key Bearer token for authentication (shown when auth type is bearer)
OAuth Status Shows authorization status and provides authorize/re-authorize button (shown when auth type is oauth)
Display mode full — tool name, description, and parameter table; overview — name and description only
Filter tools Comma-separated list of tool names to display (empty = all tools)

OAuth Authentication

When using OAuth, the extension performs the full OAuth 2.0 authorization code flow with PKCE:

  1. Discovers the server's OAuth metadata via /.well-known/oauth-authorization-server
  2. Dynamically registers a client with the authorization server (RFC 7591)
  3. Redirects to the authorization endpoint with a PKCE code challenge
  4. Exchanges the authorization code for access/refresh tokens
  5. Stores tokens per content element and automatically refreshes them when expired

To set up OAuth: select OAuth as auth type, save the content element, then click the Authorize button.

Customization

Templates

Override templates by setting custom paths in TypoScript:

plugin.tx_msmcpdocs_mcpdocs.view.templateRootPaths.10 = EXT:your_extension/Resources/Private/Templates/MsMcpDocs/
plugin.tx_msmcpdocs_mcpdocs.view.partialRootPaths.10  = EXT:your_extension/Resources/Private/Partials/MsMcpDocs/
plugin.tx_msmcpdocs_mcpdocs.view.layoutRootPaths.10   = EXT:your_extension/Resources/Private/Layouts/MsMcpDocs/

Styling

The extension includes minimal CSS. Key classes:

Class Element
.msmcpdocs-wrapper Outer wrapper
.msmcpdocs__tool Single tool card
.msmcpdocs__tool-name Tool name heading
.msmcpdocs__tool-description Tool description
.msmcpdocs__params Parameters table
.msmcpdocs__error Error message

License

GPL-2.0-or-later

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固