Files
Leantime/routes/ai.php
wangruiguo d647428529
Some checks failed
Security Audit / Composer Security Audit (push) Has been cancelled
Security Audit / NPM Security Audit (push) Has been cancelled
Security Audit / CodeQL Analysis (push) Has been cancelled
OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
2026-09-03 18:49:20 +08:00

16 lines
591 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use Laravel\Mcp\Server\Facades\Mcp;
use Leantime\Mcp\Servers\OneBotServer;
/*
|--------------------------------------------------------------------------
| OneBot MCP 端点接线
|--------------------------------------------------------------------------
| laravel/mcp 的 McpServiceProvider 会加载本文件(base_path('routes/ai.php'))。
| 注册一个 web 端点:POST /mcp/onebot —— AI 客户端用 Bearer token 认证后,
| 通过 MCP 协议调用 OneBotServer 暴露的全部 Domain Tools(BOM/项目/待办等)。
*/
Mcp::web('onebot', OneBotServer::class);