mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-23 15:34:27 +01:00
fix: use fetch servers from url (#761)
This commit is contained in:
@@ -3,8 +3,8 @@ import type { MCPServer } from '../types/server';
|
||||
export async function fetchMCPServers(): Promise<MCPServer[]> {
|
||||
try {
|
||||
// Use absolute path from root
|
||||
const url = '/servers.json';
|
||||
const response = await fetch(url);
|
||||
const serverUrl = "https://block.github.io/goose/v1/extensions/servers.json";
|
||||
const response = await fetch(serverUrl);
|
||||
if (!response.ok) {
|
||||
throw new Error(`Failed to fetch servers: ${response.status} ${response.statusText}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user