Download the PHP package netresearch/nr-mcp-agent without Composer
On this page you can find all versions of the php package netresearch/nr-mcp-agent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download netresearch/nr-mcp-agent
More information about netresearch/nr-mcp-agent
Files in netresearch/nr-mcp-agent
Package nr-mcp-agent
Short Description AI Chat - AI chat assistant for the TYPO3 backend, using nr-llm and an MCP server for tool calling.
License GPL-2.0-or-later
Homepage https://github.com/netresearch/t3x-nr-mcp-agent
Informations about the package nr-mcp-agent
AI Chat for TYPO3
[!NOTE] Proof of concept. This extension explores a concrete question: is agent-like behavior possible within the TYPO3 backend? It is not intended to answer whether this is the right architectural approach — the space is moving fast, and the tradeoffs between MCP, tool-calling, browser-side agents, and custom integrations are far from settled. The goal here is to show that it works, and to invite feedback from anyone thinking about the same problem. If you have thoughts, open an issue.
AI Chat integrates a conversational AI assistant into the TYPO3 backend. It runs on nr-llm's agent runtime and works through the tools nr-llm registers: its builtin set, plus any Model Context Protocol (MCP) server configured there. Backend users manage content through natural language.
Features
- Integrated chat module -- A dedicated backend module under Admin Tools with a modern chat interface built as a Lit web component.
- Tools from nr-llm -- The chat runs on nr-llm's agent runtime and tool registry: its builtin read and write tools, and any MCP server configured in nr-llm's MCP Servers module.
- Conversation history -- Persistent conversations with resume, rename, pin, and auto-archive support. Every list names a chat by its context — a guided tour by its skill and page — with the time of its last message and its status in words.
- Background processing -- Messages are processed via CLI commands (
execorworkermode), keeping the web server responsive. - Floating chat panel -- A toolbar-triggered bottom panel that stays visible across module navigation, allowing users to chat while working in the page tree.
- Markdown rendering -- LLM responses are rendered as rich Markdown (headings, lists, code blocks, tables) using vendored marked.js v15 and DOMPurify v3. No build step required.
- Missing alt texts -- A list in the chat module of every image without an alt text the editor may fix, across pages and records, reached from the dashboard widgets "Check website" and "Recommended for your website". "Optimise" opens the chat beside the list on one image: the assistant proposes an alt text for that use, which the editor applies, varies, marks as decorative or skips, and moves on to the next hit.
- Decorative images -- A "Decorative image" checkbox on each use of an
image; fluid_styled_content then outputs it with
alt=""(with its static template right away, with site sets or an@importonce the extension's set or setup is added; see the installation documentation), and the check for missing alt texts counts it as done. The assistant sets it with the toolset_file_reference_decorative, after an approval, once an administrator has enabled the tool. - Secure by design -- Group-based access control, message length limits, concurrency caps, sanitized error messages, and XSS-safe Markdown rendering.
Supported file formats
The AI chat supports file uploads for use as conversation attachments. Supported formats depend on your configured LLM provider:
| Format | MIME type | Availability |
|---|---|---|
application/pdf |
Always (text extracted server-side) | |
| DOCX | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
Always (text extracted server-side) |
| TXT | text/plain |
Always |
| XLSX | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
Requires phpoffice/phpspreadsheet (see below) |
| Images (JPEG, PNG, GIF, WebP; HEIC/HEIF on Gemini) | various | Requires a vision-capable provider; the exact set is whatever the provider advertises |
| Native PDF/DOCX | various | Requires a DocumentCapable provider (e.g. Anthropic Claude) |
When a provider natively supports a format (e.g. Claude natively handles PDFs), the file is sent as-is. Otherwise, text is extracted server-side and injected into the prompt.
XLSX support (optional)
XLSX uploads require the optional phpoffice/phpspreadsheet library:
If not installed, XLSX files will be rejected at upload time with a 422 response.
Quick Start
-
Install the extension:
This also installs EXT:filelist (
typo3/cms-filelist); the file picker opens its element browser, so it must stay active. -
In nr-llm, create a Task record that configures your LLM provider (e.g. OpenAI, Anthropic). Note the UID.
- Go to Admin Tools > Settings > Extension Configuration > nr_mcp_agent and
set
llmTaskUidto the Task UID from step 2.
The AI Chat module is now available under Admin Tools > AI Chat.
DDEV Development
Run quality checks:
Run JavaScript unit tests (Jest):
For Docker-based testing that mirrors CI exactly (no DDEV required):
Configuration
All settings are in Admin Tools > Settings > Extension Configuration > nr_mcp_agent:
| Setting | Default | Description |
|---|---|---|
llmTaskUid |
0 |
UID of the nr-llm Task record (required) |
processRunMaxIterations |
12 |
Model rounds a run of a guided process may take; nr-llm caps it at 20, ordinary chat runs keep nr-llm's default |
processingStrategy |
exec |
exec (fork per request) or worker (long-running) |
allowedGroups |
(empty) | Comma-separated group UIDs (empty = all) |
maxMessageLength |
10000 |
Max characters per message |
maxActiveConversationsPerUser |
3 |
Max concurrent processing conversations |
maxConversationsPerUser |
50 |
Max conversations kept per user |
autoArchiveDays |
30 |
Auto-archive after N days of inactivity |
attachmentFolder |
ai-chat |
Folder for chat attachments in the default storage; a per-user subfolder is created inside it |
altTextExcludedTables |
(empty) | Tables the check for missing alt texts leaves out |
altTextExcludedFields |
pages.og_image,pages.twitter_image,pages.nav_icon,be_users.avatar,backend_layout.icon |
Image fields (table.field) the check leaves out |
For the full documentation, see the Documentation/ folder or the rendered docs on docs.typo3.org.
Architectural decisions are documented as ADRs in Documentation/Developer/ADR/.
Acknowledgments
- nr-llm -- The Netresearch LLM abstraction layer for TYPO3.
- nr-vault -- Secure credential storage for TYPO3.
Security
What the extension protects and what it does not, its trust boundaries and the checks behind them: Netresearch security policy, not in public issues.
License
GPL-2.0-or-later. See LICENSE for details.
All versions of nr-mcp-agent with dependencies
netresearch/nr-llm Version ^0.45.0 || ^0.46.0 || ^0.47.0 || ^0.48.0 || ^0.49.0 || ^0.50.0 || ^0.51.0 || ^0.52.0
phpoffice/phpword Version ^1.0
smalot/pdfparser Version ^2.0
typo3/cms-backend Version ^13.4 || ^14.3
typo3/cms-core Version ^13.4 || ^14.3
typo3/cms-filelist Version ^13.4 || ^14.3
typo3/cms-install Version ^13.4 || ^14.3