Skip to content

Commit 3e761a3

Browse files
author
Lasim
committed
feat(frontend): update repository info endpoint to use GitHub API
1 parent 19afec7 commit 3e761a3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

services/frontend/src/i18n/locales/en/mcp-catalog.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default {
4848
subtitle: 'Create a new global MCP server for the catalog',
4949

5050
steps: {
51+
github: 'GitHub Repository',
5152
repository: 'Repository',
5253
claudeConfig: 'Claude Desktop Config',
5354
configurationSchema: 'Configuration Schema',
@@ -59,6 +60,7 @@ export default {
5960
},
6061

6162
errors: {
63+
githubFetch: 'Failed to fetch repository information',
6264
repositoryFetch: 'Failed to fetch repository information'
6365
},
6466

@@ -754,6 +756,7 @@ export default {
754756
descriptionRequired: 'Description is required',
755757
languageRequired: 'Programming language is required',
756758
runtimeRequired: 'Runtime environment is required',
759+
githubUrlInvalid: 'Please enter a valid GitHub repository URL',
757760
repositoryUrlInvalid: 'Please enter a valid repository URL from GitHub, GitLab, or Bitbucket',
758761
homepageUrlInvalid: 'Please enter a valid URL',
759762
jsonInvalid: 'Please enter valid JSON'

services/frontend/src/services/mcpCatalogService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export class McpCatalogService {
404404
* Get repository information from any supported platform
405405
*/
406406
static async getRepositoryInfo(repoUrl: string, branch: string = 'main'): Promise<any> {
407-
const url = new URL(`${this.baseUrl}/api/mcp/repository/info`)
407+
const url = new URL(`${this.baseUrl}/api/mcp/github/repo-info`)
408408
url.searchParams.append('url', repoUrl)
409409
url.searchParams.append('branch', branch)
410410

0 commit comments

Comments
 (0)