mirror of
https://github.com/ArthurDanjou/artmcp.git
synced 2026-01-14 16:54:22 +01:00
Correction des noms de ressources et des endpoints pour une meilleure cohérence dans l'API
This commit is contained in:
@@ -26,7 +26,7 @@ The server exposes the following resources through the Model Context Protocol:
|
|||||||
### MCP Tools
|
### MCP Tools
|
||||||
|
|
||||||
- **`get_resume_link`** - Get download link for resume in English or French
|
- **`get_resume_link`** - Get download link for resume in English or French
|
||||||
- **`get_uses_by_category`** - Filter uses by category (homelab, ide, hardware, software)
|
- **`get-uses-by-category`** - Filter uses by category (homelab, ide, hardware, software)
|
||||||
|
|
||||||
### MCP Prompts
|
### MCP Prompts
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ All resources are also available as REST API endpoints:
|
|||||||
- `GET /api/hobbies`
|
- `GET /api/hobbies`
|
||||||
- `GET /api/contact`
|
- `GET /api/contact`
|
||||||
- `GET /api/uses`
|
- `GET /api/uses`
|
||||||
- `GET /api/uses_by_category?categoryName={category}`
|
- `GET /api/uses-by-category?categoryName={category}`
|
||||||
- `GET /api/activity`
|
- `GET /api/activity`
|
||||||
- `GET /api/wakatime`
|
- `GET /api/wakatime`
|
||||||
- `GET /api/status_page`
|
- `GET /api/status_page`
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ function createServer() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
server.registerTool(
|
server.registerTool(
|
||||||
'get_uses_by_category',
|
'get-uses-by-category',
|
||||||
{
|
{
|
||||||
title: 'Get Arthur Danjou\'s Tools by Category',
|
title: 'Get Arthur Danjou\'s Tools by Category',
|
||||||
description: 'Retrieves a filtered list of tools, software, and hardware used by Arthur Danjou based on a specific category. Available categories: homelab, IDE, hardware, and software.',
|
description: 'Retrieves a filtered list of tools, software, and hardware used by Arthur Danjou based on a specific category. Available categories: homelab, IDE, hardware, and software.',
|
||||||
@@ -268,7 +268,7 @@ function createServer() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async (params: { categoryName: 'homelab' | 'ide' | 'hardware' | 'software' }) => {
|
async (params: { categoryName: 'homelab' | 'ide' | 'hardware' | 'software' }) => {
|
||||||
const result = await $fetch<unknown>('/api/uses_by_category', { query: params })
|
const result = await $fetch<unknown>('/api/uses-by-category', { query: params })
|
||||||
return {
|
return {
|
||||||
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
|
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
|
||||||
structuredContent: result as unknown
|
structuredContent: result as unknown
|
||||||
@@ -415,7 +415,7 @@ function createServer() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
server.registerPrompt(
|
server.registerPrompt(
|
||||||
'artmcp-get_uses_by_category',
|
'artmcp-get-uses-by-category',
|
||||||
{
|
{
|
||||||
title: 'Request Arthur Danjou\'s Tools by Category',
|
title: 'Request Arthur Danjou\'s Tools by Category',
|
||||||
description: 'Generates a prompt to retrieve tools, software, and hardware used by Arthur Danjou, filtered by a specific category (homelab, IDE, hardware, or software).',
|
description: 'Generates a prompt to retrieve tools, software, and hardware used by Arthur Danjou, filtered by a specific category (homelab, IDE, hardware, or software).',
|
||||||
|
|||||||
Reference in New Issue
Block a user