Skip to content

Commit c4e0c10

Browse files
fix(mcp): keep Codex key creation action
1 parent 2f8521e commit c4e0c10

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

apps/sim/app/workspace/[workspaceId]/settings/components/workflow-mcp-servers/workflow-mcp-servers.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -621,15 +621,21 @@ function ServerDetailView({
621621
</a>
622622
)}
623623
</div>
624-
{activeConfigTab === 'codex' && (
624+
{activeConfigTab === 'codex' && server.isPublic && (
625625
<p className='mt-2 text-[var(--text-muted)] text-caption'>
626-
Add this to <span className='font-mono'>~/.codex/config.toml</span>
627-
{!server.isPublic && ' and set the SIM_API_KEY environment variable'}.
626+
Add this to <span className='font-mono'>~/.codex/config.toml</span>.
628627
</p>
629628
)}
630-
{activeConfigTab !== 'codex' && !server.isPublic && (
629+
{!server.isPublic && (
631630
<p className='mt-2 text-[var(--text-muted)] text-caption'>
632-
Replace $SIM_API_KEY with your API key
631+
{activeConfigTab === 'codex' ? (
632+
<>
633+
Add this to <span className='font-mono'>~/.codex/config.toml</span> and
634+
set the SIM_API_KEY environment variable with an existing API key
635+
</>
636+
) : (
637+
'Replace $SIM_API_KEY with your API key'
638+
)}
633639
{canManage && (
634640
<>
635641
, or{' '}
@@ -642,6 +648,7 @@ function ServerDetailView({
642648
</button>
643649
</>
644650
)}
651+
{activeConfigTab === 'codex' && '.'}
645652
</p>
646653
)}
647654
</div>

0 commit comments

Comments
 (0)