mcp-emtrafesa 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.es.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  > Un servidor del Protocolo de Contexto de Modelo (MCP) para acceder a los servicios de transporte de autobuses de Emtrafesa en Perú
4
4
 
5
+ [![NPM Version](https://img.shields.io/npm/v/mcp-emtrafesa?style=flat&logo=npm&logoColor=red)](https://www.npmjs.com/package/mcp-emtrafesa)
5
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=flat&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
6
7
  [![Bun](https://img.shields.io/badge/Bun-000000?style=flat&logo=bun&logoColor=white)](https://bun.sh)
7
8
  [![MCP](https://img.shields.io/badge/MCP-Model%20Context%20Protocol-blue)](https://modelcontextprotocol.io)
@@ -55,9 +56,8 @@ Configura tu cliente MCP para conectarse a este servidor:
55
56
  {
56
57
  "mcpServers": {
57
58
  "mcp-emtrafesa": {
58
- "command": "bun",
59
- "args": ["run", "index.ts"],
60
- "cwd": "/ruta/a/mcp-emtrafesa"
59
+ "command": "npx",
60
+ "args": ["mcp-emtrafesa@latest"]
61
61
  }
62
62
  }
63
63
  }
@@ -103,8 +103,6 @@ mcp-emtrafesa/
103
103
  │ └── emtrafesa/ # Código específico de Emtrafesa
104
104
  │ ├── services.ts # Funciones del cliente API
105
105
  │ └── types.ts # Definiciones de tipos TypeScript
106
- ├── 📁 sandbox/ # Utilidades de desarrollo
107
- │ └── post-consulta.html # Referencia para análisis HTML
108
106
  ├── 📄 index.ts # Punto de entrada del servidor MCP
109
107
  ├── 📄 package.json # Dependencias y scripts
110
108
  ├── 📄 tsconfig.json # Configuración de TypeScript
@@ -146,15 +144,6 @@ bunx biome check
146
144
  - Esquemas Zod para validación en tiempo de ejecución
147
145
  - Mapeo exacto de campos de API en definiciones de tipos
148
146
 
149
- ### Pruebas de Análisis HTML
150
-
151
- Usa el archivo de referencia para probar cambios:
152
-
153
- ```bash
154
- # Ver la referencia de estructura HTML
155
- open sandbox/post-consulta.html
156
- ```
157
-
158
147
  ## 🤝 Contribuciones
159
148
 
160
149
  1. **Haz fork** del repositorio
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  > A Model Context Protocol (MCP) server for accessing Emtrafesa bus transportation services in Peru
4
4
 
5
+ [![NPM Version](https://img.shields.io/npm/v/mcp-emtrafesa?style=flat&logo=npm&logoColor=red)](https://www.npmjs.com/package/mcp-emtrafesa)
5
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=flat&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
6
7
  [![Bun](https://img.shields.io/badge/Bun-000000?style=flat&logo=bun&logoColor=white)](https://bun.sh)
7
8
  [![MCP](https://img.shields.io/badge/MCP-Model%20Context%20Protocol-blue)](https://modelcontextprotocol.io)
@@ -55,9 +56,8 @@ Configure your MCP client to connect to this server:
55
56
  {
56
57
  "mcpServers": {
57
58
  "mcp-emtrafesa": {
58
- "command": "bun",
59
- "args": ["run", "index.ts"],
60
- "cwd": "/path/to/mcp-emtrafesa"
59
+ "command": "npx",
60
+ "args": ["mcp-emtrafesa@latest"]
61
61
  }
62
62
  }
63
63
  }
@@ -103,8 +103,6 @@ mcp-emtrafesa/
103
103
  │ └── emtrafesa/ # Emtrafesa-specific code
104
104
  │ ├── services.ts # API client functions
105
105
  │ └── types.ts # TypeScript type definitions
106
- ├── 📁 sandbox/ # Development utilities
107
- │ └── post-consulta.html # HTML parsing reference
108
106
  ├── 📄 index.ts # MCP server entry point
109
107
  ├── 📄 package.json # Dependencies and scripts
110
108
  ├── 📄 tsconfig.json # TypeScript configuration
@@ -146,15 +144,6 @@ bunx biome check
146
144
  - Zod schemas for runtime validation
147
145
  - Exact API field mapping in type definitions
148
146
 
149
- ### Testing HTML Parsing
150
-
151
- Use the reference file for testing changes:
152
-
153
- ```bash
154
- # View the HTML structure reference
155
- open sanbox/post-consulta.html
156
- ```
157
-
158
147
  ## 🤝 Contributing
159
148
 
160
149
  1. **Fork** the repository
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "mcp-emtrafesa",
3
3
  "description": "A Model Context Protocol (MCP) server for accessing Emtrafesa bus transportation services in Peru",
4
- "version": "1.0.1",
5
- "module": "index.ts",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
4
+ "version": "1.1.0",
5
+ "module": "src/index.ts",
6
+ "main": "dist/src/index.js",
7
+ "types": "dist/src/index.d.ts",
8
8
  "type": "module",
9
9
  "bin": {
10
- "mcp-emtrafesa": "dist/index.js"
10
+ "mcp-emtrafesa": "dist/src/index.js"
11
11
  },
12
12
  "private": false,
13
13
  "keywords": [
@@ -34,27 +34,27 @@
34
34
  "url": "git+https://github.com/georgegiosue/mcp-emtrafesa"
35
35
  },
36
36
  "files": [
37
- "dist/*.js",
38
- "dist/*.d.ts"
37
+ "dist/src/*.js",
38
+ "dist/src/*.d.ts"
39
39
  ],
40
40
  "scripts": {
41
- "build": "bun build --target=node ./index.ts --outfile=dist/index.js && bun run build:declaration",
41
+ "build": "bun build --target=node ./src/index.ts --outfile=dist/src/index.js && bun run build:declaration",
42
42
  "build:declaration": "tsc --emitDeclarationOnly --project tsconfig.types.json",
43
43
  "format": "bunx biome check --write",
44
44
  "prepare": "husky",
45
- "inspect": "bunx @modelcontextprotocol/inspector bun index.ts"
45
+ "inspect": "bunx @modelcontextprotocol/inspector bun src/index.ts"
46
46
  },
47
47
  "devDependencies": {
48
- "@biomejs/biome": "2.1.1",
49
- "@types/bun": "1.2.18",
48
+ "@biomejs/biome": "2.3.10",
49
+ "@types/bun": "1.3.5",
50
50
  "husky": "9.1.7"
51
51
  },
52
52
  "peerDependencies": {
53
- "typescript": "^5.8.3"
53
+ "typescript": "5.8.3"
54
54
  },
55
55
  "dependencies": {
56
- "@modelcontextprotocol/sdk": "1.15.1",
57
- "cheerio": "1.1.0",
56
+ "@modelcontextprotocol/sdk": "1.25.1",
57
+ "cheerio": "1.1.2",
58
58
  "zod": "3.25.76"
59
59
  }
60
60
  }
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};