Skip to main content
Glama
luis0794

Violett MCP Server

by luis0794
README.md
# Violett MCP Server

Servidor MCP (Model Context Protocol) completo basado en el ejemplo de `simpleStreamableHttp.ts` del [typescript-sdk oficial](https://github.com/modelcontextprotocol/typescript-sdk).

## Características

Este servidor MCP incluye:

### 🔧 Herramientas (Tools)
- **fetch_url**: Realiza peticiones HTTP GET para obtener contenido de URLs
- **post_data**: Envía datos mediante peticiones HTTP POST

### 💡 Prompts
- **summarize_url**: Genera un resumen del contenido de una URL
- **analyze_api**: Analiza la estructura de respuesta de una API

### 📊 Recursos (Resources)
- **stream://example**: Recurso de ejemplo con streaming de datos
- **http(s)://...**: Soporte para recursos HTTP dinámicos

## Instalación

```bash
npm install
```

## Compilación

```bash
npm run build
```

## Uso

### Modo desarrollo (TypeScript directo)
```bash
npm run dev
# o específicamente para MCP:
npm run mcp
```

### Modo producción (JavaScript compilado)
```bash
npm start
```

## Integración con Clientes MCP

Para usar este servidor desde un cliente MCP, puedes usar la configuración incluida en `mcp-config.json`:

```json
{
  "mcpServers": {
    "violett-mcp-server": {
      "command": "npx",
      "args": ["-y", "ts-node", "src/examples/single-node-server.ts"],
      "cwd": ".",
      "env": {}
    }
  }
}
```

## Ejemplo de uso

Una vez conectado, el servidor proporciona herramientas para:

1. **Obtener contenido web**:
   - Usar la herramienta `fetch_url` con parámetro `url`
   
2. **Enviar datos a APIs**:
   - Usar la herramienta `post_data` con parámetros `url` y `data`

3. **Generar prompts inteligentes**:
   - `summarize_url`: Para resumir contenido de una URL
   - `analyze_api`: Para analizar respuestas de API

## Estructura del proyecto

```
violett-mcp-server/
├── src/
│   └── examples/
│       └── single-node-server.ts    # Servidor MCP principal
├── dist/                            # JavaScript compilado
├── mcp-config.json                  # Configuración para clientes MCP
├── package.json
└── README.md
```

## Desarrollo basado en el SDK oficial

Este servidor está basado en el ejemplo `simpleStreamableHttp.ts` del [Model Context Protocol TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk/blob/main/src/examples/server/simpleStreamableHttp.ts).

Para más información sobre MCP, consulta la [documentación oficial](https://github.com/modelcontextprotocol/typescript-sdk?tab=readme-ov-file#quick-start).

TDQS

B3.1/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly distinct purposes: fetch_url performs HTTP GET requests to retrieve content, while post_data performs HTTP POST requests to send data. There is no overlap or ambiguity between them, as they target different HTTP methods and actions.

Naming Consistency5/5

Both tools follow a consistent verb_noun pattern: fetch_url and post_data. The naming is predictable and readable, with no deviations in style or convention, making it easy for agents to understand their functions.

Tool Count2/5

With only 2 tools, the server feels thin for a general-purpose HTTP client. While it covers basic GET and POST operations, it lacks other common HTTP methods (e.g., PUT, DELETE, PATCH) and related utilities (e.g., headers, authentication), making it under-scoped for typical HTTP tasks.

Completeness2/5

The tool surface is severely incomplete for an HTTP server. It only supports GET and POST, missing essential operations like PUT, DELETE, PATCH, and configuration tools for headers or authentication. This will cause agent failures when more complex HTTP interactions are needed.

Maintenance

ActivityInactive
ResponsivenessNo issues