android / debug (push) Successful in 2m16s
android / release (push) Successful in 2m9s
ci / checks (push) Successful in 3m39s
ci / test (push) Successful in 2m5s
ci / docker (push) Successful in 1m52s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m56s
ci / chart (push) Successful in 6s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 20s
ci / publish-edge-chart (push) Successful in 4s
The web client kept its own dark shell: an icon rail, neon jade accents, and rows that reported state with colored dots and pills. Rhema Together had since settled on a warmer, quieter language, and the two surfaces no longer looked like one product. The shell is now one 232px sidebar plus a view. Chat lists sessions in the sidebar and renders the transcript in a 760px column; settings moves its searchable nav into the same sidebar and its pages onto an 880px column. The palette, type scale, controls, cards, and markdown come from Together's light theme, with its dark values following the OS. FiraCode Nerd Font Mono sets code, and the product mark, logo, and lucide icons replace the glyph characters. Status is a word now: running, waiting, held, connected, live, snapshot. The rail, its dots, the duplicate consent deny action, and the session key tag are gone. The model backend moved into the chat topbar beside the stream state. The mobile shell keeps the composer fixed in chat and lets settings scroll as a document. README and component docs follow the new layout. nuxt typecheck and build pass; checked light and dark at 1280x800 and 390x844 against mock API data.
174 lines
4.1 KiB
Vue
174 lines
4.1 KiB
Vue
<script setup lang="ts">
|
|
// The MCP page: the standalone client's configured servers and the
|
|
// names claw.yaml mutes. Read-only by design — the config file belongs
|
|
// to the client, and the claw only names it through MCP_CONFIG.
|
|
import type { McpState } from '~/composables/useClaw'
|
|
|
|
const props = defineProps<{
|
|
state: McpState | null
|
|
loading: boolean
|
|
}>()
|
|
|
|
defineEmits<{ refresh: [] }>()
|
|
|
|
// The missing-file line is the callout's job; every other notice is a
|
|
// parse or shape problem worth its own warn.
|
|
const notices = computed(() =>
|
|
(props.state?.notices ?? []).filter((notice) => !notice.startsWith('no MCP config file')),
|
|
)
|
|
|
|
const TRANSPORTS: Record<string, string> = {
|
|
stdio: 'local process',
|
|
http: 'HTTP',
|
|
unknown: 'unrecognized',
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div class="page">
|
|
<PageHeader title="MCP" subtitle="Servers the agent's shell can call.">
|
|
<template #actions>
|
|
<button :disabled="loading" @click="$emit('refresh')">
|
|
{{ loading ? 'Refreshing…' : 'Refresh' }}
|
|
</button>
|
|
</template>
|
|
</PageHeader>
|
|
|
|
<div class="scroll">
|
|
<p v-if="!state" class="muted">loading MCP servers…</p>
|
|
|
|
<template v-else>
|
|
<AppCallout v-if="!state.exists" variant="info" title="No MCP config file">
|
|
The client has no servers configured at
|
|
<span class="mono">{{ state.config }}</span>. Add a
|
|
<code>servers</code> object there, then refresh.
|
|
</AppCallout>
|
|
|
|
<AppCallout
|
|
v-for="notice in notices"
|
|
:key="notice"
|
|
variant="warn"
|
|
title="MCP config"
|
|
>
|
|
{{ notice }}
|
|
</AppCallout>
|
|
|
|
<SettingCard
|
|
title="Servers"
|
|
:meta="`${state.servers.length} configured${state.disabled.length ? `, ${state.disabled.length} muted` : ''}`"
|
|
>
|
|
<p v-if="state.servers.length === 0 && state.exists" class="empty">
|
|
The config exists but holds no servers.
|
|
</p>
|
|
|
|
<template v-else>
|
|
<div v-for="server in state.servers" :key="server.name" class="server">
|
|
<div class="server-head">
|
|
<span class="server-name mono">{{ server.name }}</span>
|
|
<span class="server-transport">{{ TRANSPORTS[server.transport] }}</span>
|
|
<span class="server-state" :class="{ off: state.disabled.includes(server.name) }">
|
|
{{ state.disabled.includes(server.name) ? 'muted' : 'active' }}
|
|
</span>
|
|
</div>
|
|
<p v-if="server.description" class="server-description">{{ server.description }}</p>
|
|
<p v-if="server.program" class="server-program mono">{{ server.program }}</p>
|
|
</div>
|
|
</template>
|
|
</SettingCard>
|
|
|
|
<p class="footnote">
|
|
Config: <span class="mono">{{ state.config }}</span>.
|
|
Mutes: <code>disabled_mcp_servers</code> in <code>claw.yaml</code>.
|
|
The page is read-only; the client owns the file.
|
|
</p>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.scroll {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0 var(--sp-8) var(--sp-10);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-4);
|
|
width: 100%;
|
|
max-width: 880px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--text3);
|
|
}
|
|
|
|
.empty {
|
|
margin: 0;
|
|
padding: 13px 16px;
|
|
color: var(--text3);
|
|
}
|
|
|
|
.server {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.server-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 12px;
|
|
}
|
|
|
|
.server-name {
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.server-transport {
|
|
color: var(--text3);
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.server-state {
|
|
margin-left: auto;
|
|
color: var(--ok);
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.server-state.off {
|
|
color: var(--text3);
|
|
}
|
|
|
|
.server-description {
|
|
margin: 0;
|
|
color: var(--text2);
|
|
font-size: 12.5px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.server-program {
|
|
margin: 0;
|
|
color: var(--text3);
|
|
font-size: 11.5px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.footnote {
|
|
margin: 0;
|
|
padding: 0 2px;
|
|
color: var(--text3);
|
|
font-size: 12px;
|
|
}
|
|
</style>
|