mirror of
https://github.com/ArthurDanjou/artmcp.git
synced 2026-01-14 18:39:27 +01:00
- Deleted old API endpoints for contact, education, experiences, hobbies, languages, profile, projects, skills, and uses. - Introduced new resource handlers for contact, education, experiences, hobbies, languages, profile, projects, skills, and uses with structured responses. - Added new MCP prompts for real-time activity, contact information, hobbies, languages, profile, projects, skills, stats, and status page. - Implemented tools for fetching real-time activity, resume links, coding stats, and weather information. - Removed legacy MCP server route and replaced it with a modular approach for better maintainability.
22 lines
623 B
TypeScript
22 lines
623 B
TypeScript
export default defineMcpResource({
|
|
title: 'Arthur Danjou - Professional Profile',
|
|
description: 'Comprehensive professional profile of Arthur Danjou, including biography, location, availability status, career goals, and work preferences',
|
|
uri: 'resource://artmcp/profile',
|
|
cache: '1 hour',
|
|
handler: async (uri: URL) => {
|
|
const event = useEvent()
|
|
|
|
const result = await queryCollection(event, 'profile')
|
|
.where('extension', '=', 'md')
|
|
.first()
|
|
|
|
return {
|
|
contents: [{
|
|
uri: uri.toString(),
|
|
mimeType: 'text/json',
|
|
text: JSON.stringify(result)
|
|
}]
|
|
}
|
|
}
|
|
})
|