定制 stumason/laravel-kick 二次开发

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

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

stumason/laravel-kick

最新稳定版本:v0.4.0

Composer 安装命令:

composer require stumason/laravel-kick

包简介

Secure remote introspection and control for Laravel applications via HTTP API and MCP

README 文档

README

Tests Code Style Latest Version License

MCP server and REST API for Laravel application introspection.

Connect your MCP client directly to your Laravel app. Check health, read logs, inspect queues, run commands - all through natural conversation.

Documentation

Installation

composer require stumason/laravel-kick

Add to .env:

KICK_ENABLED=true
KICK_TOKEN=your-secure-random-token

MCP Setup

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "my-app": {
      "command": "npx",
      "args": [
        "mcp-remote@latest",
        "https://your-app.com/mcp/kick",
        "--transport",
        "http-only",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer your-kick-token"
      }
    }
  }
}

Then ask the LLM:

  • "Check the health of my app"
  • "Show me the last 20 ERROR entries in the logs"
  • "What's failing in the queue?"
  • "Clear the config cache"

Available Tools

Tool Description
kick_health Database, cache, storage, redis connectivity
kick_stats CPU, memory, disk, uptime
kick_logs_list List log files
kick_logs_read Read logs with filtering
kick_queue_status Queue overview, failed jobs
kick_queue_retry Retry failed jobs
kick_artisan_list List available commands
kick_artisan_run Execute whitelisted commands

REST API

The same functionality is available via HTTP:

curl -H "Authorization: Bearer $TOKEN" https://app.com/kick/health
curl -H "Authorization: Bearer $TOKEN" https://app.com/kick/stats
curl -H "Authorization: Bearer $TOKEN" "https://app.com/kick/logs/laravel.log?level=ERROR"
curl -X POST -H "Authorization: Bearer $TOKEN" -d '{"command":"cache:clear"}' https://app.com/kick/artisan

See the API documentation for all endpoints.

Security

  • Disabled by default (KICK_ENABLED=false)
  • Token-based authentication with scopes
  • Artisan command whitelist
  • Path traversal protection
  • Automatic PII scrubbing from logs

Requirements

  • PHP 8.4+
  • Laravel 12

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固