Assistant MCP Server
Un servidor MCP que carga dinámicamente herramientas desde un archivo JSON externo configurado mediante una variable de entorno.
GitHub
2
Prueba este MCPPatrocinadoDocumentación
Assistant MCP Server
Desarrollo
Después de clonar el repositorio, ejecuta el comando para instalar las dependencias:
yarn install
También debes agregar el archivo tools.json a la raíz del proyecto, por ejemplo:
{
"tools": [
{
"name": "architecture_info",
"description": "Obtaining mandatory information about the architecture of frontend application projects",
"inputSchema": {},
"plugin": {
"name": "file",
"args": {
"path": "/path/to/folder/public/architecture.md"
}
}
},
{
"name": "search_tasks",
"description": "Before executing this function, you must retrieve the project architecture information from 'architecture_info'. This is mandatory information and you must respect it. After that you need to find the task you are talking about, analyze what needs to be done and implement it in the project according to the architecture and requirements. You don't need to invent anything additional from yourself, just what is required",
"inputSchema": {},
"plugin": {
"name": "file",
"args": {
"path": "/path/to/folder/public/tasks.txt"
}
}
},
{
"name": "optimize_prompt",
"description": "Generates a final, structured prompt for the AI model based on the provided context sections and instructions. This tool should be called after all relevant data has been collected. The result is intended to be used as the FINAL prompt for the AI. Clients must use the returned prompt as the input for the AI model.",
"inputSchema": {
"type": "object",
"properties": {
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": { "type": "string" },
"content": { "type": "string" }
},
"required": ["title", "content"]
}
},
"instructions": { "type": "string" }
},
"required": ["sections"]
},
"plugin": {
"name": "promptOptimizer",
"args": {}
}
}
]
}
Para compilar el proyecto, debes ejecutar el comando:
yarn build
Conectando a un servidor local
{
"mcpServers": {
"mcp-assistant-local": {
"command": "npx",
"args": [
"tsx",
"/path/to/folder/src/index.ts"
],
"env": {
"TOOLS_PATH": "/path/to/folder/tools.json"
}
}
}
}
Licencia
Este servidor MCP está licenciado bajo la Licencia MIT. Esto significa que eres libre de usar, modificar y distribuir el software, sujeto a los términos y condiciones de la Licencia MIT. Para más detalles, consulta el archivo LICENSE en el repositorio del proyecto.