peppa/apps/web/app/mcp-guide/page.tsx
peppa-bot acb6e3fb81
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 34с
peppa/test test: success за 1325с
peppa-ci / ci (pull_request) Successful in 24m11s
PEP-224: статус функций из мониторинга (сведено с main после PEP-225)
Функция → мониторинги (core/feature-status.ts), серая кнопка входа через eGov и статус MCP,
отказ startEgovFlow, журнал и сообщения в канал. После переезда живых обновлений на
WebSocket (PEP-225): область `features` в LIVE_PLAIN_SCOPES, открыта без входа (SSE и
WebSocket с `anonymous: true` — только открытые области), смотрится по таймеру вместе с
`observe`, смена сбрасывает кэш статусов.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:00:03 +00:00

25 lines
1.3 KiB
TypeScript

import { featureGateView, MCP_GUIDE } from "@peppa/core";
import { FeatureGate } from "@/components/FeatureGate";
import { LiveRefresh } from "@/components/LiveRefresh";
import { Brand } from "@/components/Brand";
import { GuideCopy } from "@/components/GuideCopy";
import { getT } from "@/lib/i18n";
export const dynamic = "force-dynamic";
/** PEP-190: public page (no sign-in) with the same guide that the MCP tool get_started returns. */
export default async function McpGuide() {
const t = await getT();
return (
<main className="mx-auto flex max-w-2xl flex-col gap-4 px-4 py-8 text-sm leading-relaxed">
<Brand />
<h1 className="m-0 text-xl font-semibold">{t("Инструкция для ИИ")}</h1>
<p className="m-0 text-muted-foreground">{t("Памятка для ИИ, подключённого к FORGE. Вставьте её в «Инструкции» проекта ChatGPT или в системное сообщение другого ИИ.")}</p>
<LiveRefresh scope="features" indicator={false} />
<FeatureGate view={featureGateView("mcp")} title={t("MCP временно недоступен")}>
<GuideCopy value={MCP_GUIDE} label={t("Скопировать")} done={t("Скопировано")} />
</FeatureGate>
</main>
);
}