loading…
Search for a command to run...
loading…
A Model Context Protocol server that exposes tools and resources for fetching GitHub user profiles and weather data, with a React interface and clean architectu
A Model Context Protocol server that exposes tools and resources for fetching GitHub user profiles and weather data, with a React interface and clean architecture.
Un serveur MCP (Model Context Protocol) avec une interface React, exposant des outils et ressources autour des utilisateurs GitHub et de la météo.
basic-mcp/
├── server/ # Serveur MCP (Node.js / TypeScript)
│ ├── main.ts # Point d'entrée — transport stdio
│ ├── server-http.ts # Point d'entrée — transport HTTP (Streamable HTTP)
│ └── src/
│ ├── application/ # Cas d'usage (GetGitHubUser, GetWeather)
│ ├── domain/ # Entités et ports (interfaces)
│ ├── infrastructure/ # Implémentations des repositories
│ └── interface/mcp/ # Outils et ressources MCP exposés
└── client/ # Interface React + Vite
└── src/
├── application/hooks/ # useMcpTool, useMcpResource
├── domain/ # Entités côté client
├── infrastructure/mcp/ # Adaptateur MCP client
└── presentation/ # Composants React
npm install
cd client && npm install
npm run start
npm run start:http
npm run start:ui
L'interface est accessible sur http://localhost:5173.
Le serveur MCP HTTP écoute sur http://localhost:3001/mcp.
| Outil | Description |
|---|---|
ping |
Vérifie que le serveur répond |
get-github-user |
Retourne les infos d'un utilisateur GitHub |
get-weather |
Retourne la météo pour une latitude/longitude |
| URI | Description |
|---|---|
github-user://{username} |
Profil GitHub d'un utilisateur |
weather://{lat},{lon} |
Météo pour des coordonnées GPS |
Le projet suit les principes de la Clean Architecture :
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"basic-mcp": {
"command": "npx",
"args": []
}
}
}