mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 13:23:04 +00:00
728a275fef
The card that opened claude.ai's custom connector dialog for this instance goes, with its phone twin, the line in the assistant setup that jumped to it, its endpoint and its contract. Anyone who wants Claude uses TREK's MCP server under Integrations, or an Anthropic key in the assistant. It came with the assistant and never shipped in a release.
35 lines
1.8 KiB
TypeScript
35 lines
1.8 KiB
TypeScript
import MPhotoProvidersSection from './MPhotoProvidersSection'
|
|
import MAirTrailConnectionSection from './MAirTrailConnectionSection'
|
|
import MDawarichConnectionSection from './MDawarichConnectionSection'
|
|
import MLlmConnectionSection from './MLlmConnectionSection'
|
|
import MAiConnectionSection from './MAiConnectionSection'
|
|
import MSettingsMcp from './MSettingsMcp'
|
|
import { useIntegrationGates } from '../../../components/Settings/useIntegrationGates'
|
|
|
|
/**
|
|
* "Integrations" section. The photo-provider / AirTrail / LLM connection forms
|
|
* are the existing (responsive) desktop sections rendered as-is — they carry
|
|
* their own cards and addon gating — while the MCP configuration named in the
|
|
* function audit is rebuilt natively in the mobile design language.
|
|
*/
|
|
export default function MSettingsIntegrations() {
|
|
const { mcpEnabled, airtrailEnabled, llmEnabled, aiAssistantEnabled, aiConnectionEnabled, ownParsing, dawarichEnabled, managed } = useIntegrationGates({ reloadAddons: true })
|
|
|
|
return (
|
|
<>
|
|
{/* Immich, Synology Photos, AirTrail and Dawarich all reach a server the reader
|
|
runs themselves, which a managed install has no route to: the same gate the
|
|
desktop shell puts on them. */}
|
|
{!managed && <MPhotoProvidersSection />}
|
|
{airtrailEnabled && !managed && <MAirTrailConnectionSection />}
|
|
{dawarichEnabled && !managed && <MDawarichConnectionSection />}
|
|
{aiConnectionEnabled && !managed && <MAiConnectionSection assistant={aiAssistantEnabled} parsing={llmEnabled} />}
|
|
{/* Which model reads a booking, and what that costs, comes with the instance on
|
|
a managed install. The per-user fallback exists for people who supply their
|
|
own key, and there nobody does. */}
|
|
{llmEnabled && ownParsing && !managed && <MLlmConnectionSection />}
|
|
{mcpEnabled && <MSettingsMcp />}
|
|
</>
|
|
)
|
|
}
|