承接 skylence/laravel-telescope-mcp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

skylence/laravel-telescope-mcp

Composer 安装命令:

composer require skylence/laravel-telescope-mcp

包简介

A simple MCP (Model Context Protocol) server package for Laravel - Easy to extend with custom tools and JSON-RPC 2.0 compliant

README 文档

README

A powerful MCP (Model Context Protocol) server for Laravel Telescope, providing real-time monitoring, performance analysis, and debugging through Claude Code and other MCP clients.

Features

  • STDIO & HTTP Support - Use with Claude Code (stdio) or any HTTP client
  • Route Type Filtering - Separate analysis for API vs Web routes (including Filament panels)
  • Performance Monitoring - Request times, query analysis, N+1 detection
  • Health Scoring - Context-aware health scores with different thresholds per route type
  • Exception Tracking - Monitor and analyze application errors
  • Queue Monitoring - Track job execution and failures
  • Cache Analysis - Hit rates and operation tracking

Installation

composer require skylence/laravel-telescope-mcp

Publish configuration (optional):

php artisan vendor:publish --tag=telescope-mcp-config

Configuration

Claude Code (STDIO Mode)

Add to your .mcp.json:

{
  "mcpServers": {
    "telescope": {
      "type": "stdio",
      "command": "php",
      "args": ["artisan", "mcp:start", "telescope"]
    }
  }
}

Environment Variables

TELESCOPE_MCP_ENABLED=true
TELESCOPE_MCP_AUTH_ENABLED=false
TELESCOPE_MCP_SLOW_REQUEST_MS=1000
TELESCOPE_MCP_SLOW_QUERY_MS=100

Route Type Filtering

Routes are automatically categorized by middleware for separate analysis:

// config/telescope-mcp.php
'overview' => [
    'route_groups' => [
        'api' => [
            'middleware' => ['api'],
        ],
        'web' => [
            'middleware' => ['web', 'panel:*'], // Includes Filament panels
        ],
    ],
    'thresholds' => [
        'api' => [
            'slow_request_ms' => 500,      // APIs should be fast
            'acceptable_error_rate' => 0.01,
        ],
        'web' => [
            'slow_request_ms' => 1500,     // Web pages can be slower
            'acceptable_error_rate' => 0.05,
        ],
    ],
],

The panel:* wildcard matches Filament panel middleware (e.g., panel:app, panel:admin).

Available Tools

telescope_overview

System health overview with performance metrics and route breakdown.

telescope_overview(period="1h", route_type="all", include_breakdown=true)

requests

HTTP request analysis with filtering by route type.

requests(action="stats", route_type="api", period="1h")
requests(action="slow", route_type="web", min_duration=1000)

queries

Database query analysis and N+1 detection.

queries(action="stats", period="1h")
queries(action="slow", min_time=100)
queries(action="duplicates")

exceptions

Exception and error tracking.

exceptions(action="list", period="24h")
exceptions(action="stats")

jobs

Queue job monitoring.

jobs(action="stats", period="1h")
jobs(action="failed")

cache

Cache operation analysis.

cache(action="stats", period="1h")

logs

Application log entries.

logs(action="list", level="error", period="1h")

Quick Examples

Health check:

telescope_overview(period="1h", route_type="all")

API-specific monitoring:

telescope_overview(period="1h", route_type="api")
requests(action="stats", route_type="api")

Find slow endpoints:

requests(action="slow", route_type="api", min_duration=500)

Detect N+1 queries:

queries(action="duplicates", period="1h")

Health Scoring

Health scores (0-100) are calculated with context-aware thresholds:

Score Status Description
90-100 healthy Everything optimal
70-89 good Minor issues
50-69 warning Needs attention
0-49 critical Immediate action required

API and web routes use different thresholds - APIs are judged more strictly.

Requirements

  • PHP 8.1+
  • Laravel 10, 11, or 12
  • Laravel Telescope

License

MIT

skylence/laravel-telescope-mcp 适用场景与选型建议

skylence/laravel-telescope-mcp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 978 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「api」 「tools」 「laravel」 「json-rpc」 「cursor」 「ai」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 skylence/laravel-telescope-mcp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 skylence/laravel-telescope-mcp 我们能提供哪些服务?
定制开发 / 二次开发

基于 skylence/laravel-telescope-mcp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-03