Evidence snapshot reviewed Sep 3, 2026GitHub checked Aug 21, 2026
Source-reviewedStandalone SkillDeveloper ToolsMobius Profile

mobius-self-test

Verify a Mobius deployment with HTTP smoke checks for health, auth, core APIs, and optional write operations.

At a glance

What it does

Verify a Mobius deployment with HTTP smoke checks for health, auth, core APIs, and optional write operations.

Capabilities
Developer ToolsTestingDebuggingWorkflow Automation

Before you choose it

Use this skill after deploying or restarting a Mobius backend, when users report service failures, or after backend changes. It can run from the server with `npm run test:self-test` or call the local admin self-test endpoint. Results mark each check as passed, failed, or skipped and include a JSON report.

Best for

Mobius operators and developers validating a deployment or investigating basic service availability.

Common tasks

  • Confirm a Mobius backend is usable after deployment or restart.
  • Investigate reports that the service or APIs are failing.
  • Run a regression smoke test after backend changes.
  • Optionally verify memory create/list/delete behavior.

Permissions and data

Reads Mobius service endpoints; some checks require administrator authentication and optional mode performs writes.

Permissions
  • Server shell access for the CLI method, or access to the local admin HTTP endpoint.
  • An admin bearer token for the HTTP endpoint.
Data handling
  • Reads health, authentication, project, model, task, extension, search, conversation, session, and voice configuration responses.
  • Optional write mode creates, lists, and deletes a memory; upload testing is write-only.
External services
  • A running Mobius backend, normally reached at localhost on port 33316.
Credentials
  • Admin bearer token for the HTTP endpoint.

Limitations

  • It is specific to Mobius and the documented endpoints.
  • Optional write checks can modify and delete test data.
  • A failed check needs investigation of that check's error details.
  • Commercial use is restricted by the supplied source-available license unless a separate commercial license is obtained.

What DSHub checked

  • The pinned skill document was captured completely.
  • The source commit is pinned.
  • The skill documents CLI and HTTP invocation, test coverage, result meanings, and optional write mode.

What DSHub did not check

  • DSHub did not run the self-test or confirm a live Mobius deployment.
  • No Harness version range is declared in the supplied evidence.

Pinned install

Primary action

This standalone skill does not have a DSH Plugin install action. Use its source documentation for the delivery method.

Visit the source project

Maintainer source

Skill instructions

View at commit 1eb8750
Maintainer-authored contentCaptured from skills/mobius-self-test/SKILL.md on Aug 30, 2026. The text and repository-relative media are fixed to commit 1eb8750d2d90 with content hash 80b77d2ece7b; provider-hosted badges may update independently. SKILL.md commands are upstream documentation; use the type-correct primary action above and verify it against this pinned source.

name: mobius-self-test description: Mobius 自我测试能力。部署后自动跑、也可手动跑一组 HTTP 冒烟(健康/鉴权/核心读 API/语音配置, 可选写往返), 快速确认重新部署后系统是否真的可用。当你怀疑系统异常、或刚部署完需要验收时使用。

何时使用

  • 刚部署/重启完 Mobius 后端,需要确认服务正常
  • 用户反馈"系统好像坏了"、"打不开"、"接口报错"
  • 用户要求"跑个自检"、"检查下服务"
  • 自我迭代修改后端代码后,验证没有破坏基本功能

触发方式

1. CLI(服务器上直接跑)

cd /app/mobius
npm run test:self-test

带写往返(建 memory → 列 memory → 删 memory):

MOBIUS_SELF_TEST_WRITE=1 npm run test:self-test

2. HTTP 端点(agent/网页可触发)

curl -sS http://localhost:33316/api/admin/self-test \
  -H "Authorization: Bearer <admin-token>"

怎么看结果

  • = 通过, = 失败, = 跳过
  • 末行 SELF_TEST_JSON 包含完整 JSON 报告
  • 部署后自检日志:/data/logs/self-test.log
  • exit 0 = 系统正常
  • → 逐个检查失败项的错误信息

检查项目

# 类别 端点 说明
1 健康 GET /api/health {"status":"ok"}
2 健康 GET /api/v2/health 版本信息
3 鉴权 GET /api/auth/config 认证配置
4 鉴权 GET /api/auth/me system token
5 核心读 GET /api/projects 项目列表
6 核心读 GET /api/sessions/model-options 模型列表
7 核心读 GET /api/tasks/recent 最近任务
8 核心读 GET /api/extensions 扩展列表
9 搜索 GET /api/search?q=test 全局搜索
10 群聊 GET /api/conversations 群聊列表
11 会话 GET /api/sessions?limit=5 会话列表
12 语音 GET /api/assistant/tts/voices TTS 配置
13 上传 POST /api/upload 文件上传 (仅 write)
14 SSE GET /api/sessions/:id/events 流式连接 + 首事件
15 POST→DELETE /api/memories 往返 (仅 write)

部署后自动自检

server.js 启动后自动跑(MOBIUS_SELF_TEST_ON_BOOT=0 可关闭):

  • 延迟 5s(等 server 完全就绪)
  • 结果 append 到 /data/logs/self-test.log
  • 失败绝不阻塞/崩 server

Operate deliberately

Install and manage

Prerequisites and target Profile

Target Mobius Profile

Delivery Skill Files — https://raw.githubusercontent.com/nutshellai-tech/mobius/1eb8750d2d9012e1f50a18f7c60c2ad040c04889/skills/mobius-self-test/SKILL.md

Compatibility and access

For a running Mobius backend with server or admin API access Not declared in supplied evidence

Review compatibility evidence

Risk facts

Credentials

The HTTP self-test endpoint requires an admin bearer token.

Evidence
Data Modification

Optional write mode creates, lists, and deletes a memory; the upload check is also write-only.

Evidence
License

Commercial use requires a separate commercial license under the supplied source-available license.

Evidence
Evidence and editorial reviewManifest, Bundle patch, distribution and freshness

Immutable evidence

Review status and source activity

Human approved

Approved for publication after reviewing the source-linked content and immutable release record. AI assisted with the draft; the publication decision was human.

Human reviewed Sep 4, 2026, 11:48 AM UTCGitHub facts last checked Sep 3, 2026, 3:47 PM UTC

No material source change has been recorded since this evidence baseline.

Next step

Compare ecosystem artifact types

Subscribe to material changes for mobius-self-test