Phase 13, part 6: each team's Core
On the server and multi-tenant editions a team's admin enters its Core's domain and account under Settings → Core & Hermes, instead of core.conf; Hermes connects from the team's side with an agent's key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,18 +4,29 @@
|
||||
|
||||
<section class="card">
|
||||
<h2>Federated Core</h2>
|
||||
{{if .Server}}
|
||||
<form method="post" action="/settings/core" class="cols">
|
||||
<label>The Core's domain <input name="domain" value="{{with .Core}}{{.Domain}}{{end}}" placeholder="example.com"></label>
|
||||
<label>The Core account Hermes works for <input type="email" name="email" value="{{with .Core}}{{.Email}}{{end}}" placeholder="you@example.com"></label>
|
||||
<div><button type="submit">Save</button> <span class="help">Empty: no Core. Supermarket never holds the Core's admin credentials.</span></div>
|
||||
</form>
|
||||
{{end}}
|
||||
{{if .Core}}
|
||||
<p><strong>{{.Core.Domain}}</strong> · {{.Core.Email}}{{if .Core.Name}} · {{.Core.Name}}{{end}}</p>
|
||||
<p class="help">From CoreDesktop's <code>configure core</code>. To use another Core, change it there and run <code>update</code>.</p>
|
||||
{{if not .Server}}<p class="help">From CoreDesktop's <code>configure core</code>. To use another Core, change it there and run <code>update</code>.</p>{{end}}
|
||||
<div hx-get="/settings/core/checks" hx-trigger="load" hx-swap="outerHTML"><p class="help">Checking the Core's services…</p></div>
|
||||
{{else}}
|
||||
{{else if not .Server}}
|
||||
<p>No Core found. Run <code>configure core</code> in CoreDesktop, then <code>update</code>. Without a Core, everything works except EspoCRM, Plausible and publishing through Gitea.</p>
|
||||
{{end}}
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>Hermes bridge</h2>
|
||||
{{if .Server}}
|
||||
<p>Hermes, on your side, is the only thing that talks to your Core's MCP hub. Make it an agent under <a href="/settings/agents">Settings → Agents</a> with <em>CRM through the Core</em> (read and act), then give Hermes the agent's key and <code>{{.MCPURL}}</code> (streamable HTTP, <code>Authorization: Bearer <key></code>).</p>
|
||||
{{else}}
|
||||
<p>Hermes, CoreDesktop's agent, is the only thing that talks to your Core's MCP hub. It reaches Supermarket through the socket <code>{{.MCPSocket}}</code>; other agents, such as Claude Code, use <code>{{.MCPURL}}</code> with the MCP token.</p>
|
||||
{{end}}
|
||||
{{with .Last}}
|
||||
<p class="ok">Hermes last checked in {{ago .At}}.{{if .Note}} It said: “{{.Note}}”{{end}}</p>
|
||||
{{if .MCPHubTools}}
|
||||
@@ -33,14 +44,14 @@
|
||||
<p class="help">Then reload this page.</p>
|
||||
</section>
|
||||
|
||||
<details class="card">
|
||||
{{if not .Server}}<details class="card">
|
||||
<summary>Set up Hermes by hand</summary>
|
||||
<p><code>install.sh</code> does this for you. To do it yourself, add this to <code>~/.hermes/config.yaml</code>:</p>
|
||||
<div class="copy"><pre id="hermes-config">{{.HermesConfig}}</pre><button type="button" class="secondary" data-copy="hermes-config">Copy</button></div>
|
||||
<p>and this to <code>~/.hermes/.env</code>, so no password is in <code>config.yaml</code>:</p>
|
||||
<pre>{{.HermesEnv}}</pre>
|
||||
<p>Hermes runs in CoreDesktop's sandbox, so also let it reach the hub: add <code>mcphub.{{if .Core}}{{.Core.Domain}}{{else}}<your Core's domain>{{end}}</code> to <code>network.allowedDomains</code> in <code>~/.config/coredesktop/sandbox/hermes.json</code>. Then restart Hermes' gateway: <code>systemctl --user restart hermes-gateway</code>.</p>
|
||||
<details><summary>Show the MCP token</summary><pre>{{.MCPToken}}</pre><p class="help">Also in <code>mcp-token</code> in the data folder.</p></details>
|
||||
<details><summary>Show the MCP token</summary><pre>{{.MCPToken}}</pre><p class="help">Also in <code>mcp-token</code> in the data folder.</p></details>{{end}}
|
||||
</details>
|
||||
{{end}}{{template "settings-end"}}{{end}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user