fix: mettre à jour les URL de l'API et ajouter la gestion des collections dans la configuration

This commit is contained in:
2025-12-16 16:43:30 +01:00
parent 579f7b4030
commit e49fc32e52
10 changed files with 362 additions and 325 deletions

View File

@@ -6,7 +6,7 @@ export default defineMcpTool({
lang: z.enum(['en', 'fr']).describe('The language for the resume: \'en\' for English or \'fr\' for French.')
},
handler: async ({ lang }) => {
const base_url = import.meta.dev ? 'http://localhost:3000/api' : 'https://mcp.arthurdanjou.fr/api'
const base_url = import.meta.dev ? 'http://localhost:3000/api' : 'https://api.arthurdanjou.fr/api'
const url = `${base_url}/resumes/${lang}`
return {
content: [{ type: 'text', text: JSON.stringify(url) }]