export default defineMcpResource({
  title: 'Arthur Danjou - Spoken Languages & Proficiency Levels',
  description: 'Languages spoken by Arthur Danjou with detailed proficiency levels for each language',
  uri: 'resource://artmcp/languages',
  cache: '1 hour',
  handler: async (uri: URL) => {
    const result = await $fetch('/api/languages')

    return {
      contents: [{
        uri: uri.toString(),
        mimeType: 'text/json',
        text: JSON.stringify(result, null, 2)
      }]
    }
  }
})
