承接 artisan-build/hone-server 相关项目开发

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

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

artisan-build/hone-server

Composer 安装命令:

composer require artisan-build/hone-server

包简介

The receive/store/serve side of Hone: ingest endpoint, Postgres storage, rollups, prune, and the read-only MCP server. Consumed by the Hone app.

README 文档

README

The receive side of Hone. It is consumed by the Hone app and provides everything between the ingest endpoint and the coding agent: receive, store, roll up, prune, and serve over MCP.

Read-only mirror. This repository is a read-only split of the artisan-build/hone monorepo. Issues and pull requests are disabled here — please open them on the monorepo.

What it provides

  • Ingest endpoint — validates the per-app HONE_TOKEN against the registry, resolves the source app, version-checks the envelope (parse if known, 4xx if newer), and enqueues raw payloads to Redis. Returns fast; no synchronous DB writes.
  • Capabilities endpoint — advertises the envelope majors this server supports, so a client's hone:update can check compatibility.
  • Worker — drains Redis and writes raw events to Postgres, tagged by (app, record_type, deploy, occurred_at).
  • App registry — source apps plus hashed tokens, config-file driven from .env. Adding an app is a config entry plus a deploy.
  • Rollups & prune — scheduled jobs that compute percentiles from raw data (before it is pruned) and persist daily aggregates that survive pruning.
  • MCP server — a read-only, multi-app-aware surface a coding agent queries.

Storage model

Telemetry is stored generically rather than as twelve bespoke schemas. Every record type — requests, queries, jobs, exceptions, commands, cache, mail, notifications, outgoing HTTP, scheduled tasks, logs, users — flows through the same three tables. app and deploy are first-class dimensions on all of them.

Table Lifetime Shape
raw_events short (~72h) id, app, record_type, deploy, occurred_at, normalized_key, payload (jsonb)
aggregates long (~90d) app, record_type, normalized_key, deploy, bucket_date, metric, value, sample_count
samples short (~7d) a few slowest exemplars per (app, record_type, normalized_key) window

The Nightwatch record bodies are stored opaquely as jsonb and interpreted only at rollup and query time — so a change in Nightwatch's payload shape degrades to "a rollup misses a field," never an ingest failure.

Rollups & retention

  • The rollup job runs before the prune job. Percentiles (p95/p99) are computed from raw data with Postgres percentile_cont within the raw-retention window and persisted to aggregates, surviving the prune.
  • Daily bucketing is the regression unit.
  • Retention is configurable per install from .env: raw_events ~72h · aggregates ~90d · samples ~7d.

MCP server

  • Transport: Streamable HTTP with a per-environment bearer token (for remote agents and CI), plus stdio for local Claude Code.
  • Read-only and multi-app aware: every tool takes an optional app filter and otherwise aggregates across the environment's apps.
  • Tools (v1): slow_requests, slow_queries, slow_jobs, slow_outgoing_requests, exceptions, cache_stats, queue_throughput, mail_volume, notification_volume, scheduled_task_health, command_stats, log_volume_by_level, top_users, regression_check, deploys, ingest_freshness, query_metric, record_types, list_apps.

Output is PII-safe by construction — bindings are never captured and redaction happens upstream — so feeding tool results into an agent context doesn't leak customer data.

Installation

composer require artisan-build/hone-server

This package is consumed by the Hone app. See the Hone app README for environment setup, the app registry, scheduling the rollup/prune jobs, and running the queue worker.

License

MIT. See LICENSE.

artisan-build/hone-server 适用场景与选型建议

artisan-build/hone-server 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 06 月 11 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 artisan-build/hone-server 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-11