mirror of
https://github.com/ArthurDanjou/artmcp.git
synced 2026-01-14 18:49:27 +01:00
fix: mettre à jour les URL de l'API et ajouter la gestion des collections dans la configuration
This commit is contained in:
@@ -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) }]
|
||||
|
||||
Reference in New Issue
Block a user