﻿---
title: "诊断"
description: "检查凭证、MCP、LSP、MRM、事件总线和运行环境。"
image: "https://kxen.ai/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://kxen.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 诊断

诊断页面把多个运行真源汇总成结构化状态，用于区分配置存在、组件启动和真实请求成功。

## 产品入口

在 Settings 的诊断区域查看:

- Provider 凭证状态。
- MCP server 状态。
- LSP server 状态。
- MRM 路由和资源状态。
- event bus 状态。

界面加载失败时会显示错误，不把无数据渲染成全部正常。

## Doctor

在 Composer 使用 `/doctor` 执行环境自检。Doctor 与诊断页面读取同一类后端状态，适合在 Session 中让 Agent 协助解释结果。

## 诊断包

Settings 可以导出 Markdown 诊断包，用于保存当前环境和组件状态。导出前仍应检查内容，不要把凭证或其他敏感信息粘贴到公开 issue。

## 状态层级

- 配置存在: 只能说明已经保存设置。
- 凭证在位: 只能说明本地有认证数据。
- 组件运行: 说明进程或连接已经启动。
- 实测通过: 说明当前请求链实际成功。

排查 Provider 和 MCP 时，优先使用对应的实测结果，不要用静态配置推断服务可用。

Source: https://kxen.ai/reference/diagnostics/index.mdx
