Merge socials into contact resource to eliminate duplication

Co-authored-by: ArthurDanjou <29738535+ArthurDanjou@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-14 22:14:59 +00:00
parent cbc93091e5
commit b7f6eaafc4
5 changed files with 23 additions and 104 deletions

View File

@@ -1,10 +0,0 @@
import { queryCollection } from '@nuxt/content/server'
export default defineCachedEventHandler(async (event) => {
return await queryCollection(event, 'socials')
.where('extension', '=', 'json')
.first()
}, {
name: 'socials-list',
maxAge: 3600 // 1 hour
})

View File

@@ -147,7 +147,7 @@ function createServer() {
'resource://artmcp/contact',
{
title: 'ArtMCP Contact',
description: 'Get Contact Information of Arthur Danjou'
description: 'Get Contact Information and Social Links of Arthur Danjou including email, LinkedIn, GitHub, Twitter, Discord, and websites'
},
async (uri) => {
const result = await $fetch('/api/contact')
@@ -256,25 +256,6 @@ function createServer() {
}
)
server.registerResource(
'artmcp-socials',
'resource://artmcp/socials',
{
title: 'ArtMCP Social Links',
description: 'Get social media profiles and online presence of Arthur Danjou'
},
async (uri) => {
const result = await $fetch('/api/socials')
return {
contents: [{
uri: uri.href,
mimeType: 'application/json',
text: JSON.stringify(result, null, 2)
}]
}
}
)
// Tools
server.registerTool(
'get_resume_link',
@@ -379,8 +360,8 @@ function createServer() {
server.registerPrompt(
'artmcp-contact',
{
title: 'Get Contact Information of Arthur Danjou',
description: 'Get Contact Information of Arthur Danjou'
title: 'Get Contact Information and Social Links of Arthur Danjou',
description: 'Get Contact Information and Social Links of Arthur Danjou including email, social media, and websites'
},
async () => {
return {
@@ -388,7 +369,7 @@ function createServer() {
role: 'user',
content: {
type: 'text',
text: `How can I contact Arthur Danjou?`
text: `How can I contact Arthur Danjou? Provide all contact methods and social links.`
}
}]
}
@@ -553,25 +534,6 @@ function createServer() {
}
)
server.registerPrompt(
'artmcp-socials',
{
title: 'Get Social Media Links of Arthur Danjou',
description: 'Get social media profiles and online presence'
},
async () => {
return {
messages: [{
role: 'user',
content: {
type: 'text',
text: `What are Arthur Danjou's social media profiles and online presence?`
}
}]
}
}
)
return server
}