mirror of
https://github.com/ArthurDanjou/artapi.git
synced 2026-01-24 05:20:25 +01:00
Add comprehensive profile enhancements: languages, certifications, profile info, and fix duplicate resource ID bug
Co-authored-by: ArthurDanjou <29738535+ArthurDanjou@users.noreply.github.com>
This commit is contained in:
@@ -162,7 +162,7 @@ function createServer() {
|
||||
)
|
||||
|
||||
server.registerResource(
|
||||
'artmcp-contact',
|
||||
'artmcp-hobbies',
|
||||
'resource://artmcp/hobbies',
|
||||
{
|
||||
title: 'ArtMCP Hobbies',
|
||||
@@ -199,6 +199,63 @@ function createServer() {
|
||||
}
|
||||
)
|
||||
|
||||
server.registerResource(
|
||||
'artmcp-languages',
|
||||
'resource://artmcp/languages',
|
||||
{
|
||||
title: 'ArtMCP Languages',
|
||||
description: 'Get Languages spoken by Arthur Danjou with proficiency levels'
|
||||
},
|
||||
async (uri) => {
|
||||
const result = await $fetch('/api/languages')
|
||||
return {
|
||||
contents: [{
|
||||
uri: uri.href,
|
||||
mimeType: 'application/json',
|
||||
text: JSON.stringify(result, null, 2)
|
||||
}]
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
server.registerResource(
|
||||
'artmcp-certifications',
|
||||
'resource://artmcp/certifications',
|
||||
{
|
||||
title: 'ArtMCP Certifications',
|
||||
description: 'Get Certifications and achievements of Arthur Danjou'
|
||||
},
|
||||
async (uri) => {
|
||||
const result = await $fetch('/api/certifications')
|
||||
return {
|
||||
contents: [{
|
||||
uri: uri.href,
|
||||
mimeType: 'application/json',
|
||||
text: JSON.stringify(result, null, 2)
|
||||
}]
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
server.registerResource(
|
||||
'artmcp-profile',
|
||||
'resource://artmcp/profile',
|
||||
{
|
||||
title: 'ArtMCP Profile',
|
||||
description: 'Get comprehensive profile information of Arthur Danjou including bio, location, availability, career goals, and work preferences'
|
||||
},
|
||||
async (uri) => {
|
||||
const result = await $fetch('/api/profile')
|
||||
return {
|
||||
contents: [{
|
||||
uri: uri.href,
|
||||
mimeType: 'application/json',
|
||||
text: JSON.stringify(result, null, 2)
|
||||
}]
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
// Tools
|
||||
server.registerTool(
|
||||
'get_resume_link',
|
||||
@@ -420,6 +477,63 @@ function createServer() {
|
||||
}
|
||||
)
|
||||
|
||||
server.registerPrompt(
|
||||
'artmcp-languages',
|
||||
{
|
||||
title: 'Get Languages of Arthur Danjou',
|
||||
description: 'Get Languages spoken by Arthur Danjou with proficiency levels'
|
||||
},
|
||||
async () => {
|
||||
return {
|
||||
messages: [{
|
||||
role: 'user',
|
||||
content: {
|
||||
type: 'text',
|
||||
text: `What languages does Arthur Danjou speak and at what proficiency level?`
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
server.registerPrompt(
|
||||
'artmcp-certifications',
|
||||
{
|
||||
title: 'Get Certifications of Arthur Danjou',
|
||||
description: 'Get Certifications and achievements of Arthur Danjou'
|
||||
},
|
||||
async () => {
|
||||
return {
|
||||
messages: [{
|
||||
role: 'user',
|
||||
content: {
|
||||
type: 'text',
|
||||
text: `What certifications and professional achievements does Arthur Danjou have?`
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
server.registerPrompt(
|
||||
'artmcp-profile',
|
||||
{
|
||||
title: 'Get Profile Information of Arthur Danjou',
|
||||
description: 'Get comprehensive profile information including bio, location, availability, and career goals'
|
||||
},
|
||||
async () => {
|
||||
return {
|
||||
messages: [{
|
||||
role: 'user',
|
||||
content: {
|
||||
type: 'text',
|
||||
text: `Provide me comprehensive profile information about Arthur Danjou including his bio, location, availability, career goals, and work preferences.`
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
return server
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user