Skip to content

Commit 470da2b

Browse files
authored
Merge pull request #911 from helixml/fix_ide_integration
fix server url
2 parents 1c9bd78 + 9cb939a commit 470da2b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

frontend/src/components/app/IdeIntegrationSection.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const IdeIntegrationSection: React.FC<IdeIntegrationSectionProps> = ({
3737

3838

3939
const getGenericMCPConfig = () => {
40+
const serverUrl = window.location.origin;
4041
return `{
4142
"mcpServers": {
4243
"helix-mcp": {
@@ -46,7 +47,7 @@ const IdeIntegrationSection: React.FC<IdeIntegrationSectionProps> = ({
4647
"run",
4748
"--app-id", "${appId}",
4849
"--api-key", "${apiKey}",
49-
"--url", "http://localhost:8080"
50+
"--url", "${serverUrl}"
5051
]
5152
}
5253
}

frontend/src/pages/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ const App: FC = () => {
297297
</Grid>
298298
{/* For API keys section show */}
299299
{tabValue === 'apikeys' ? (
300-
<CodeExamples apiKey={account.apiKeys[0]?.key || ''} />
300+
<CodeExamples apiKey={account.appApiKeys[0]?.key || ''} />
301301
) : (
302302
<PreviewPanel
303303
loading={appTools.isInferenceLoading}

0 commit comments

Comments
 (0)