xiaohongshu
xiaohongshu
configure-mcp-server
Configure un serveur MCP (Model Context Protocol) dans Cursor en ajoutant l'entrée appropriée dans le fichier mcp.json. Supporte les serveurs Supabase Edge Functions, n8n et les serveurs locaux via npx. Utilise ce skill lorsque l'utilisateur demande d'ajouter, modifier ou configurer un serveur MC...
Full skill instructions
Ce skill guide la configuration d'un serveur MCP (Model Context Protocol) dans Cursor pour permettre à l'agent d'accéder à des outils et ressources externes.
Utilisez ce skill lorsque :
⚠️ Note : Adaptez les URLs, noms de serveurs et tokens à votre environnement. Les exemples Supabase ci-dessous utilisent votre-project-id comme placeholder.
Le fichier de configuration MCP pour Cursor se trouve à :
~/.cursor/mcp.json%APPDATA%\Cursor\mcp.json~/.cursor/mcp.json (peut aussi utiliser .cursor/mcp.json.gitpod comme référence)⚠️ Important : Le fichier mcp.json peut contenir des tokens secrets. Ne jamais le commiter dans Git avec des secrets. Utiliser .gitignore si nécessaire.
Les serveurs MCP peuvent être déployés sur Supabase Edge Functions. Chaque domaine peut posséder sa propre Edge Function.
Structure de base :
{
"mcpServers": {
"nom-serveur": {
"url": "https://votre-project-id.supabase.co/functions/v1/{module}-mcp/mcp"
}
}
}
Exemples de serveurs (adaptez selon votre projet) :
{domaine}-mcp : domaine métier (ex: contacts-mcp, documents-mcp)docs-reader : lecture de documentation (si applicable)URL complète : https://votre-project-id.supabase.co/functions/v1/{module}-mcp/mcp
Pour Agent Builder : Utiliser l'endpoint /sse au lieu de /mcp :
https://votre-project-id.supabase.co/functions/v1/{module}-mcp/sseAuthorization: Bearer <JWT> + apikey: <SUPABASE_ANON_KEY>Exemple complet :
{
"mcpServers": {
"contacts": {
"url": "https://votre-project-id.supabase.co/functions/v1/contacts-mcp/mcp"
},
"documents": {
"url": "https://votre-project-id.supabase.co/functions/v1/documents-mcp/mcp"
}
}
}
n8n expose un serveur MCP pour permettre aux clients MCP d'exécuter des workflows n8n.
Configuration :
{
"mcpServers": {
"n8n": {
"type": "streamable-http",
"url": "https://votre-instance-n8n.up.railway.app/mcp-server/http",
"headers": {
"Authorization": "Bearer YOUR_N8N_MCP_ACCESS_TOKEN"
}
}
}
}
Prérequis :
Pour les serveurs MCP disponibles via npm/npx, principalement pour le développement local ou des outils externes.
Pour tout serveur MCP disponible via npm/npx :
{
"mcpServers": {
"nom-serveur": {
"command": "npx",
"args": ["-y", "@package/nom-package"],
"env": {
"VARIABLE_ENV": "valeur"
}
}
}
}
Exemple : Supabase MCP local :
{
"mcpServers": {
"supabase-project": {
"command": "npx",
"args": [
"-y",
"@supabase/mcp-server-supabase@latest",
"--project-ref=votre-project-id"
],
"env": {
"SUPABASE_ACCESS_TOKEN": "sbp_..."
}
}
}
}
Railway fournit un serveur MCP officiel pour gérer des déploiements depuis Cursor. Utilisez-le uniquement si votre projet utilise Railway.
Configuration Railway (pour autres services) :
{
"mcpServers": {
"railway": {
"type": "streamable-http",
"url": "https://railway-mcp.railway.app/mcp",
"headers": {
"Authorization": "Bearer YOUR_RAILWAY_TOKEN"
}
}
}
}
Déterminer le type de serveur MCP à configurer :
~/.cursor/mcp.json existe{
"mcpServers": {}
}
mcp.json existantmcpServers selon le type de serveurcontacts, documents, railway)⚠️ Sécurité :
mcp.json avec des tokens dans Gitmcp.json à .gitignore si nécessaire.cursor/mcp.json.gitpod comme référence (sans secrets)Après modification de mcp.json :
Cmd+Shift+P > "MCP: Restart Server"Cmd+Shift+P > "MCP: Show Server Logs"{
"mcpServers": {
"contacts": {
"url": "https://votre-project-id.supabase.co/functions/v1/contacts-mcp/mcp"
},
"documents": {
"url": "https://votre-project-id.supabase.co/functions/v1/documents-mcp/mcp"
},
"api": {
"url": "https://votre-project-id.supabase.co/functions/v1/api-mcp/mcp"
}
}
}
{
"mcpServers": {
"contacts": {
"url": "https://votre-project-id.supabase.co/functions/v1/contacts-mcp/mcp"
},
"documents": {
"url": "https://votre-project-id.supabase.co/functions/v1/documents-mcp/mcp"
},
"n8n": {
"type": "streamable-http",
"url": "https://votre-instance-n8n.up.railway.app/mcp-server/http",
"headers": {
"Authorization": "Bearer YOUR_N8N_MCP_ACCESS_TOKEN"
}
}
}
}
Cmd+Shift+P > "MCP: Show Server Logs"Le serveur ne démarre pas :
Token invalide :
mcp.jsonServeur non trouvé :
curl ou un navigateurErreur de connexion :
Exemple Orbit (optionnel) : references/SERVEURS_ORBIT.md
Documentation projet : adaptez selon votre repo (ex: docs/mcp/, docs/deployment/)
supabase/functions/_shared/mcp-core/)src/components/admin/AdminMCP.tsx)/sse pour compatibilité Agent Builderxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience