refacil-pay-mcp 1.0.0 → 1.0.1
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.md +17 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Servidor MCP (Model Context Protocol) generado automáticamente para la API refa
|
|
|
5
5
|
## 🚀 Características
|
|
6
6
|
|
|
7
7
|
- **21 herramientas** generadas automáticamente desde la colección Postman
|
|
8
|
-
- **Autenticación flexible**:
|
|
8
|
+
- **Autenticación flexible**: Username/Password con renovación automática de tokens
|
|
9
9
|
- **Servidor HTTP** con Fastify
|
|
10
10
|
- **Protocolo MCP** estándar para integración con IDEs
|
|
11
11
|
|
|
@@ -45,7 +45,10 @@ refacil-pay-mcp --version
|
|
|
45
45
|
"command": "refacil-pay-mcp",
|
|
46
46
|
"env": {
|
|
47
47
|
"BASE_URL": "https://pay-api.qa.refacil.co",
|
|
48
|
-
|
|
48
|
+
"USERNAME": "tu-usuario",
|
|
49
|
+
"PASSWORD": "tu-contraseña",
|
|
50
|
+
"AUTH_ENDPOINT": "/auth/login",
|
|
51
|
+
"TOKEN_CACHE_TTL": "3600"
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
}
|
|
@@ -71,7 +74,10 @@ Editar archivo de configuración:
|
|
|
71
74
|
"command": "refacil-pay-mcp",
|
|
72
75
|
"env": {
|
|
73
76
|
"BASE_URL": "https://pay-api.qa.refacil.co",
|
|
74
|
-
|
|
77
|
+
"USERNAME": "tu-usuario",
|
|
78
|
+
"PASSWORD": "tu-contraseña",
|
|
79
|
+
"AUTH_ENDPOINT": "/auth/login",
|
|
80
|
+
"TOKEN_CACHE_TTL": "3600"
|
|
75
81
|
}
|
|
76
82
|
}
|
|
77
83
|
}
|
|
@@ -92,7 +98,10 @@ Reiniciar Claude Desktop.
|
|
|
92
98
|
"command": "refacil-pay-mcp",
|
|
93
99
|
"env": {
|
|
94
100
|
"BASE_URL": "https://pay-api.qa.refacil.co",
|
|
95
|
-
|
|
101
|
+
"USERNAME": "tu-usuario",
|
|
102
|
+
"PASSWORD": "tu-contraseña",
|
|
103
|
+
"AUTH_ENDPOINT": "/auth/login",
|
|
104
|
+
"TOKEN_CACHE_TTL": "3600"
|
|
96
105
|
}
|
|
97
106
|
}
|
|
98
107
|
}
|
|
@@ -144,6 +153,10 @@ nano .env
|
|
|
144
153
|
| `BASE_URL` | URL base de la API | `https://pay-api.qa.refacil.co` |
|
|
145
154
|
|
|
146
155
|
|
|
156
|
+
| `USERNAME` | Usuario para autenticación | `your_username_here` |
|
|
157
|
+
| `PASSWORD` | Contraseña para autenticación | `your_password_here` |
|
|
158
|
+
| `AUTH_ENDPOINT` | Endpoint de autenticación | `/auth/login` |
|
|
159
|
+
| `TOKEN_CACHE_TTL` | TTL del caché de tokens (segundos) | `3600` |
|
|
147
160
|
| `MCP_TOKEN` | Token de autenticación del MCP | `mcp-secret-token-refacil-pay` |
|
|
148
161
|
|
|
149
162
|
## 🐳 Docker
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { appConfig as config } from './config.js';
|
|
|
11
11
|
const mode = process.argv.includes('--http') || process.env.MCP_MODE === 'http' ? 'http' : 'stdio';
|
|
12
12
|
const server = new McpServer({
|
|
13
13
|
name: 'refacil-pay-mcp',
|
|
14
|
-
version: '1.0.
|
|
14
|
+
version: '1.0.1'
|
|
15
15
|
});
|
|
16
16
|
// Registrar herramientas MCP
|
|
17
17
|
for (const tool of tools) {
|