A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
import { Trans } from "@lingui/react/macro";
import { useState } from "react";
import { useCopyToClipboard } from "usehooks-ts";
import { Button } from "@reactive-resume/ui/components/button";
import { Swap } from "@reactive-resume/ui/components/swap";
import { SettingsSection } from "../section";
export function McpSection() {
const address = `${window.location.origin}/mcp`;
const [copied, setCopied] = useState(false);
const [, copy] = useCopyToClipboard();
return (
<SettingsSection
title={<Trans>MCP server</Trans>}
description={<Trans>Sign in from your AI client, or use an API key.</Trans>}
>
<div className="flex h-[38px] items-center rounded-lg border border-line-2 bg-raised ps-3 pe-1.5 font-mono text-[13px] font-medium">
<span className="min-w-0 flex-1 truncate">{address}</span>
<Button
size="sm"
variant="secondary"
aria-live="polite"
onClick={async () => {
await copy(address);
setCopied(true);
setTimeout(() => setCopied(false), 2000);
}}
>
<Swap swapped={copied} from={<Trans>Copy</Trans>} to={<Trans>Copied</Trans>} />
</Button>
</div>
<a
href="https://docs.rxresu.me/guides/using-the-mcp-server"
target="_blank"
rel="noopener noreferrer"
className="w-fit text-sm text-ink-2 underline underline-offset-2"
>
<Trans>Setup guide</Trans>
</a>
</SettingsSection>
);
}