Skip to content

Commit a4a66e9

Browse files
committed
feat(website): show the MCP scope levels again
1 parent b569135 commit a4a66e9

1 file changed

Lines changed: 32 additions & 10 deletions

File tree

src/pages/mcp.astro

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,18 @@ const clients = [
5656
},
5757
];
5858
59-
const SCOPED_ENDPOINT = `${ENDPOINT}?organization=ORG&project=PROJECT&namespace=NS`;
59+
const scopes = [
60+
{ url: ENDPOINT, label: 'Your agent asks which one, and remembers it' },
61+
{ url: `${ENDPOINT}?organization=ORG`, label: 'Held inside one organization' },
62+
{
63+
url: `${ENDPOINT}?organization=ORG&project=PROJECT`,
64+
label: 'Held inside one project',
65+
},
66+
{
67+
url: `${ENDPOINT}?organization=ORG&project=PROJECT&namespace=NS`,
68+
label: 'Held inside one namespace',
69+
},
70+
];
6071
6172
const tools = [
6273
{
@@ -309,18 +320,29 @@ const CODE_SHIKI_CLASS = 'not-prose code [&_pre]:!m-0 [&_pre]:!bg-transparent [&
309320
</div>
310321

311322
<div class="mt-14 md:mt-20" data-site-reveal>
312-
<h3 class={CARD_TITLE_CLASS}>Scope it to one namespace</h3>
323+
<h3 class={CARD_TITLE_CLASS}>Scope the connection</h3>
313324
<p class={`mt-2 max-w-2xl ${BODY_CLASS}`}>
314-
Name a namespace on the endpoint and the whole session stays inside it.
315-
The three values are the same slugs as the ones in your dashboard URL,
316-
<span class="whitespace-nowrap font-mono text-[13px] text-ink">/orgs/ORG/projects/PROJECT/ns/NS</span>,
317-
so you can copy them straight out of
318-
<a href="https://dashboard.rivet.dev" class="text-pine caption-underline">the dashboard</a>.
325+
Name as much of the target as you want on the endpoint and the session
326+
cannot leave it. Leave the rest off and your agent asks you to pick,
327+
then stays on that pick for the rest of the session.
319328
</p>
320329

321-
<div class="mt-5 overflow-x-auto rounded-md border border-ink/15 bg-white/55 px-3.5 py-2.5 font-mono text-[13px] text-ink-soft">
322-
<span class="whitespace-nowrap">{SCOPED_ENDPOINT}</span>
323-
</div>
330+
<dl class="mt-5 divide-y divide-ink/10 border-y border-ink/10">
331+
{scopes.map((scope) => (
332+
<div class="flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6">
333+
<dt class="overflow-x-auto font-mono text-[13px] text-ink-soft">
334+
<span class="whitespace-nowrap">{scope.url}</span>
335+
</dt>
336+
<dd class="shrink-0 text-sm text-ink">{scope.label}</dd>
337+
</div>
338+
))}
339+
</dl>
340+
341+
<p class={`mt-5 max-w-2xl ${BODY_CLASS}`}>
342+
Fill in your own values. They are the same slugs as the ones in your
343+
dashboard URL, <span class="whitespace-nowrap font-mono text-[13px] text-ink">/orgs/ORG/projects/PROJECT/ns/NS</span>, so you can copy them
344+
straight out of <a href="https://dashboard.rivet.dev" class="text-pine caption-underline">the dashboard</a>.
345+
</p>
324346
</div>
325347
</div>
326348
</section>

0 commit comments

Comments
 (0)