Skip to content

Commit f6c1d7b

Browse files
committed
Add icons and badges
1 parent 3a3a121 commit f6c1d7b

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

docs/authentication/ai-authentication.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Authenticate MCP Servers
2+
title: MCP Authentication
33
hide_title: true
44
sidebar_position: 8
55
pagination_next: null
@@ -27,6 +27,7 @@ The [MCP authentication flow](https://modelcontextprotocol.io/specification/2025
2727
This means that you will have to use the `OAuth2` recipe in your configuration which is a paid feature.
2828

2929
The functionality is only available alongside the `node` SDK at the moment.
30+
Keep in mind that the feature is currently in beta and might be subject to breaking changes.
3031

3132
## Steps
3233

src/components/MenuItemIcon.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
Shield,
1717
CircleUserRound,
1818
UserPlus,
19+
Brain,
1920
FileTerminal,
2021
FileCode,
2122
HardDrive,
@@ -57,6 +58,7 @@ import AwsLambdaLogo from "/img/logos/aws-lambda.svg";
5758
import GraphqlLogo from "/img/logos/graphql.svg";
5859
import CdiLogo from "/img/logos/cdi.svg";
5960
import FdiLogo from "/img/logos/fdi.svg";
61+
import MCPLogo from "/img/logos/mcp.svg";
6062

6163
const categoryIcons = {
6264
// Main categories
@@ -135,6 +137,9 @@ const categoryIcons = {
135137
"/docs/quickstart/introduction": Book,
136138
"/docs/quickstart/next-steps": NotebookTabs,
137139
"/docs/quickstart/example-applications": Play,
140+
"/docs/quickstart/build-with-ai-tools": Brain,
141+
142+
"/docs/authentication/ai-authentication": MCPLogo,
138143

139144
// Other
140145
"Session Verification": BadgeCheck,

src/theme/DocSidebarItem/Link/index.tsx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,37 @@ export default function DocSidebarItemLink({
7575
<APIRequestMethodBadge method={method as APIRequestMethod} size="1" />
7676
</span>
7777
) : null}
78+
<NewBadge href={href} />
79+
<BetaBadge href={href} />
7880
</Link>
7981
</li>
8082
);
8183
}
84+
85+
const NewPages = ["/docs/quickstart/build-with-ai-tools"];
86+
87+
function NewBadge({ href }: { href: string }) {
88+
if (!NewPages.includes(href)) return null;
89+
90+
return (
91+
<span style={{ marginLeft: "auto" }}>
92+
<Badge variant="outline" color={"orange"} size="1" radius="small">
93+
New
94+
</Badge>
95+
</span>
96+
);
97+
}
98+
99+
const BetaPages = ["/docs/authentication/ai-authentication"];
100+
101+
function BetaBadge({ href }: { href: string }) {
102+
if (!BetaPages.includes(href)) return null;
103+
104+
return (
105+
<span style={{ marginLeft: "auto" }}>
106+
<Badge variant="outline" color="blue" size="1" radius="small">
107+
Beta
108+
</Badge>
109+
</span>
110+
);
111+
}

static/img/logos/mcp.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)