Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: onboarding

Nevo David8b84b0dc2767
diff --git a/apps/frontend/src/components/onboarding/onboarding.modal.tsx b/apps/frontend/src/components/onboarding/onboarding.modal.tsx
index 2f4bb8db0..e5b81009f 100644
--- a/apps/frontend/src/components/onboarding/onboarding.modal.tsx
+++ b/apps/frontend/src/components/onboarding/onboarding.modal.tsx
@@ -15,12 +15,12 @@ import {
AnyMcpClient,
CopyButton,
getMcpConfig,
- getMcpOauthUrl,
isChatOnlyMcpClient,
localCliSteps,
McpAuth,
McpClient,
mcpClients,
+ mcpConnectorUrls,
} from '@gitroom/frontend/components/public-api/public.component';
import { McpClientIcon } from '@gitroom/frontend/components/public-api/mcp.client.icons';
@@ -276,24 +276,6 @@ type OnboardingTab = OnboardingAgent | typeof otherTab | typeof apiTab;
const cliCommands = localCliSteps.map((step) => step.code);
-// Cursor one-click install: https://cursor.com/docs/mcp/install-links
-const getCursorInstallUrl = (
- auth: McpAuth,
- mcpBase: string,
- apiKey: string
-) => {
- const server =
- auth === 'oauth'
- ? { url: getMcpOauthUrl(mcpBase) }
- : {
- url: `${mcpBase}/mcp`,
- headers: { Authorization: `Bearer ${apiKey}` },
- };
- return `cursor://anysphere.cursor-deeplink/mcp/install?name=postiz&config=${btoa(
- JSON.stringify(server)
- )}`;
-};
-
const OnboardingStep2: FC<{ onBack: () => void; onNext: () => void }> = ({
onBack,
onNext,
@@ -328,14 +310,24 @@ const OnboardingStep2: FC<{ onBack: () => void; onNext: () => void }> = ({
const connector =
agent === 'Claude' && billingEnabled
? {
- href: 'https://claude.ai/directory/postiz',
+ href: mcpConnectorUrls.Claude,
label: t('add_to_claude', 'Add to Claude'),
}
- : agent === 'Cursor'
+ : agent === 'ChatGPT' && billingEnabled
? {
- href: getCursorInstallUrl(auth, mcpBase, apiKey),
+ href: mcpConnectorUrls.ChatGPT,
+ label: t('add_to_chatgpt', 'Add to ChatGPT'),
+ }
+ : agent === 'Cursor' && billingEnabled
+ ? {
+ href: mcpConnectorUrls.Cursor,
label: t('add_to_cursor', 'Add to Cursor'),
}
+ : agent === 'Grok Bot' && billingEnabled
+ ? {
+ href: mcpConnectorUrls['Grok Bot'],
+ label: t('add_to_grok_bot', 'Add to Grok Bot'),
+ }
: null;
const maskedApiKey = revealed ? apiKey : '*'.repeat(apiKey.length);
@@ -610,7 +602,10 @@ const OnboardingStep2: FC<{ onBack: () => void; onNext: () => void }> = ({
{agent === apiTab ? (
apiSection
) : isChatOnlyMcpClient(agent) ? (
- chatSection
+ <>
+ {connectorSection}
+ {chatSection}
+ </>
) : (
<>
{connectorSection}
diff --git a/apps/frontend/src/components/public-api/public.component.tsx b/apps/frontend/src/components/public-api/public.component.tsx
index 24afb92bc..a47f576cc 100644
--- a/apps/frontend/src/components/public-api/public.component.tsx
+++ b/apps/frontend/src/components/public-api/public.component.tsx
@@ -21,6 +21,16 @@ export const remoteMcpClients = {
'In ChatGPT go to Settings > Connectors > Create and paste this URL.',
} as const;
+// Official one-click connectors listed in the assistants' directories.
+// Only for the hosted Postiz (billingEnabled), they point at the public MCP server.
+export const mcpConnectorUrls = {
+ Claude: 'https://claude.ai/directory/postiz',
+ ChatGPT:
+ 'https://chatgpt.com/plugins/plugin_asdk_app_6aaaf1a529808191a2a15fde824bb013',
+ Cursor: 'https://cursor.com/marketplace/postiz',
+ 'Grok Bot': 'https://x.ai/bot/plugin/58737848',
+} as const;
+
// Clients with no MCP or CLI settings: you paste instructions into the chat,
// the agent installs the CLI itself and asks you for the API key
export const chatOnlyMcpClients = {
@@ -333,14 +343,24 @@ const McpSection = ({
</div>
<div className="flex gap-[6px] shrink-0 pt-[2px]">
{billingEnabled && (
- <a
- className="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"
- href="https://claude.ai/directory/postiz"
- target="_blank"
- >
- <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6" /><polyline points="15 3 21 3 21 9" /><line x1="10" y1="14" x2="21" y2="3" /></svg>
- {t('add_to_claude', 'Add to Claude')}
- </a>
+ <>
+ <a
+ className="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"
+ href={mcpConnectorUrls.Claude}
+ target="_blank"
+ >
+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6" /><polyline points="15 3 21 3 21 9" /><line x1="10" y1="14" x2="21" y2="3" /></svg>
+ {t('add_to_claude', 'Add to Claude')}
+ </a>
+ <a
+ className="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"
+ href={mcpConnectorUrls.ChatGPT}
+ target="_blank"
+ >
+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6" /><polyline points="15 3 21 3 21 9" /><line x1="10" y1="14" x2="21" y2="3" /></svg>
+ {t('add_to_chatgpt', 'Add to ChatGPT')}
+ </a>
+ </>
)}
<a
className="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"
@@ -461,13 +481,33 @@ const McpSection = ({
{activeClient === 'Claude' && billingEnabled && (
<a
className="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"
- href="https://claude.ai/directory/postiz"
+ href={mcpConnectorUrls.Claude}
target="_blank"
>
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6" /><polyline points="15 3 21 3 21 9" /><line x1="10" y1="14" x2="21" y2="3" /></svg>
{t('add_to_claude', 'Add to Claude')}
</a>
)}
+ {activeClient === 'ChatGPT' && billingEnabled && (
+ <a
+ className="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"
+ href={mcpConnectorUrls.ChatGPT}
+ target="_blank"
+ >
+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6" /><polyline points="15 3 21 3 21 9" /><line x1="10" y1="14" x2="21" y2="3" /></svg>
+ {t('add_to_chatgpt', 'Add to ChatGPT')}
+ </a>
+ )}
+ {activeClient === 'Grok Bot' && billingEnabled && (
+ <a
+ className="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"
+ href={mcpConnectorUrls['Grok Bot']}
+ target="_blank"
+ >
+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6" /><polyline points="15 3 21 3 21 9" /><line x1="10" y1="14" x2="21" y2="3" /></svg>
+ {t('add_to_grok_bot', 'Add to Grok Bot')}
+ </a>
+ )}
</div>
</div>
</div>