mirror of
https://github.com/ArthurDanjou/artapi.git
synced 2026-01-14 22:09:27 +01:00
refactor: transition from MCP to REST API for portfolio data
- Removed MCP server integration and related components from index.vue and contact.json. - Updated project documentation to reflect the new ArtAPI server, including changes to project metadata and descriptions. - Eliminated MCP toolkit dependencies from nuxt.config.ts and package.json. - Introduced new REST API endpoints for chat prompts, replacing previous MCP prompts. - Deleted obsolete MCP resources and prompts, streamlining the codebase for a more focused API approach.
This commit is contained in:
71
server/api/chat/prompts.get.ts
Normal file
71
server/api/chat/prompts.get.ts
Normal file
@@ -0,0 +1,71 @@
|
||||
interface Prompt {
|
||||
title: string
|
||||
description: string
|
||||
text: string
|
||||
}
|
||||
|
||||
export default defineCachedEventHandler(async () => {
|
||||
const prompts: Prompt[] = [
|
||||
{
|
||||
title: 'Real-time Activity Status',
|
||||
description: 'Generates a prompt to retrieve Arthur Danjou\'s current real-time activity status, including what he is currently working on.',
|
||||
text: `Provide me the realtime activity of Arthur Danjou.`
|
||||
},
|
||||
{
|
||||
title: 'Contact Information and Social Links',
|
||||
description: 'Generates a prompt to retrieve Arthur Danjou\'s contact information and social media links, including email, LinkedIn, GitHub, Twitter, Discord, and personal websites.',
|
||||
text: `How can I contact Arthur Danjou? Provide all contact methods and social links.`
|
||||
},
|
||||
{
|
||||
title: 'Hobbies and Interests',
|
||||
description: 'Generates a prompt to retrieve information about Arthur Danjou\'s personal hobbies, interests, and passions outside of professional work.',
|
||||
text: `What are the hobbies, interests and passions of Arthur Danjou?`
|
||||
},
|
||||
{
|
||||
title: 'Languages and Proficiency Levels',
|
||||
description: 'Generates a prompt to retrieve the languages spoken by Arthur Danjou along with detailed proficiency levels for each language.',
|
||||
text: `What languages does Arthur Danjou speak and at what proficiency level?`
|
||||
},
|
||||
{
|
||||
title: 'Comprehensive Professional Profile',
|
||||
description: 'Generates a prompt to retrieve comprehensive professional profile information about Arthur Danjou, including biography, location, availability status, career goals, and work preferences.',
|
||||
text: `Provide me comprehensive profile information about Arthur Danjou including his bio, location, availability, career goals, and work preferences.`
|
||||
},
|
||||
{
|
||||
description: 'Generates a prompt to retrieve a comprehensive list of personal and professional projects developed by Arthur Danjou, showcasing his technical skills and achievements.',
|
||||
title: 'Projects',
|
||||
text: `Provide me a list of projects done by Arthur Danjou.`
|
||||
},
|
||||
{
|
||||
description: 'Generates a prompt to request and retrieve Arthur Danjou\'s professional resume in the specified language (English or French).',
|
||||
title: 'Resume',
|
||||
text: `Provide me the link to download Arthur Danjou's resume in {lang}.`
|
||||
},
|
||||
{
|
||||
description: 'Generates a prompt to retrieve a comprehensive list of technical skills, programming languages, frameworks, and tools mastered by Arthur Danjou.',
|
||||
title: 'Skills',
|
||||
text: `Provide me a list of skills that Arthur Danjou masters.`
|
||||
},
|
||||
{
|
||||
description: 'Generates a prompt to retrieve Arthur Danjou\'s detailed coding statistics and analytics powered by WakaTime, including programming languages, time spent coding, and productivity metrics.',
|
||||
title: 'Stats',
|
||||
text: `Provide me the stats of Arthur Danjou powered by Wakatime.`
|
||||
},
|
||||
{
|
||||
description: 'Generates a prompt to retrieve the real-time status page of Arthur Danjou\'s homelab infrastructure, including uptime monitoring and incident reports powered by UptimeKuma.',
|
||||
title: 'Status Page Activity',
|
||||
text: `Provide me the status page activity of Arthur Danjou's homelab, including uptime and incidents.`
|
||||
},
|
||||
{
|
||||
description: 'Generates a prompt to retrieve tools, software, and hardware used by Arthur Danjou, filtered by a specific category (homelab, IDE, hardware, or software).',
|
||||
title: 'Uses by Category',
|
||||
text: `Provide me the tools, software, and hardware used by Arthur Danjou in the category of {categoryName}.`
|
||||
}
|
||||
]
|
||||
|
||||
return prompts
|
||||
},
|
||||
{
|
||||
maxAge: 60 * 60 * 24, // 24 hours
|
||||
name: 'chat-prompts'
|
||||
})
|
||||
Reference in New Issue
Block a user