Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default {
projectName: "Prometheus",
projectColor: "#D86444",
projectLogoPath: "/assets/prometheus-logo.svg",
mcpServerUrl: "https://prometheus.mcp.kapa.ai",
},

// Docs to load from repo-local files.
Expand Down
4 changes: 3 additions & 1 deletion src/components/KapaWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function KapaWidget() {
return null;
}

const { websiteId, projectName, projectColor, projectLogoPath } =
const { websiteId, projectName, projectColor, projectLogoPath, mcpServerUrl } =
docsConfig.kapa;
const projectLogoUrl = new URL(
projectLogoPath,
Expand All @@ -37,6 +37,8 @@ export default function KapaWidget() {
data-project-logo={projectLogoUrl}
data-button-hide="true"
data-color-scheme-selector="[data-theme='dark']"
data-mcp-enabled={mcpServerUrl ? "true" : undefined}
data-mcp-server-url={mcpServerUrl}
/>
);
}
1 change: 1 addition & 0 deletions src/docs-config-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type KapaConfig = {
projectName: string;
projectColor: string;
projectLogoPath: string;
mcpServerUrl?: string;
};

export type DocsConfig = {
Expand Down
Loading