grid402-mcp 1.2.1 → 1.3.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.md CHANGED
@@ -18,6 +18,8 @@ Compatível nativamente com **Claude Desktop**, **Cursor**, **Smithery.ai**, **C
18
18
  | `grid402_asn` | Inteligência BGP, número ASN, organização e país de bloco IP | On-Demand | 0.0005 USDC |
19
19
  | `grid402_cep` | Consulta de endereço postal brasileiro e código IBGE oficial | On-Demand | 0.0005 USDC |
20
20
  | `grid402_cnpj` | Consulta cadastral de CNPJ da Receita Federal com status e CNAE | On-Demand | 0.0020 USDC |
21
+ | `grid402_indicators` | Indicadores macroeconômicos oficiais (Selic meta e diária, CDI anual e IPCA) | On-Demand | 0.0005 USDC |
22
+ | `grid402_holidays` | Calendário oficial de feriados nacionais e bancários ANBIMA por ano | On-Demand | 0.0005 USDC |
21
23
 
22
24
  ---
23
25
 
package/index.mjs CHANGED
@@ -13,7 +13,7 @@ import { MCP_TOOLS_DEFINITIONS, executeGrid402Request, DEFAULT_ENDPOINT } from '
13
13
  const server = new Server(
14
14
  {
15
15
  name: 'grid402-mcp-server',
16
- version: '1.0.0',
16
+ version: '1.3.0',
17
17
  },
18
18
  {
19
19
  capabilities: {
@@ -61,6 +61,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
61
61
  case 'grid402_cnpj':
62
62
  service = 'cnpj';
63
63
  break;
64
+ case 'grid402_indicators':
65
+ service = 'indicators';
66
+ break;
67
+ case 'grid402_holidays':
68
+ service = 'holidays';
69
+ break;
64
70
  default:
65
71
  throw new Error(`Ferramenta MCP desconhecida: ${toolName}`);
66
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grid402-mcp",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Official Model Context Protocol (MCP) Server for Grid402 - Public Open Data e Network Utilities Hub (Forex, Crypto, DNS, SSL, ASN, CEP, CNPJ) with Base x402 micropayments e Sandbox.",
5
5
  "type": "module",
6
6
  "bin": {
package/tools.mjs CHANGED
@@ -137,6 +137,38 @@ export const MCP_TOOLS_DEFINITIONS = [
137
137
  required: ['cnpj'],
138
138
  },
139
139
  },
140
+ {
141
+ name: 'grid402_indicators',
142
+ description: 'Consulta taxas oficiais Selic meta e diária, CDI anual e diário, IPCA acumulado 12m e mensal do Banco Central e IBGE.',
143
+ inputSchema: {
144
+ type: 'object',
145
+ properties: {
146
+ payment_tx_hash: {
147
+ type: 'string',
148
+ description: 'Hash opcional de transação na Base Mainnet comprovando o pagamento de 0.0005 USDC caso não utilize liquidação automática.',
149
+ },
150
+ },
151
+ required: [],
152
+ },
153
+ },
154
+ {
155
+ name: 'grid402_holidays',
156
+ description: 'Consulta o calendário oficial de feriados nacionais e dias sem expediente bancário (ANBIMA e Febraban) com cálculo de feriados móveis.',
157
+ inputSchema: {
158
+ type: 'object',
159
+ properties: {
160
+ year: {
161
+ type: 'integer',
162
+ description: 'Ano calendário de 4 dígitos entre 1900 e 2100 (ex: 2026). Se omitido, consulta o ano corrente.',
163
+ },
164
+ payment_tx_hash: {
165
+ type: 'string',
166
+ description: 'Hash opcional de transação na Base Mainnet comprovando o pagamento de 0.0005 USDC caso não utilize liquidação automática.',
167
+ },
168
+ },
169
+ required: [],
170
+ },
171
+ },
140
172
  ];
141
173
 
142
174
  /**
@@ -180,6 +212,13 @@ export async function executeGrid402Request(service, params = {}, options = {})
180
212
  path = '/api/v1/cnpj';
181
213
  if (params.cnpj) queryParams.set('cnpj', params.cnpj);
182
214
  break;
215
+ case 'indicators':
216
+ path = '/api/v1/indicators';
217
+ break;
218
+ case 'holidays':
219
+ path = '/api/v1/holidays';
220
+ if (params.year) queryParams.set('year', params.year);
221
+ break;
183
222
  default:
184
223
  throw new Error(`Serviço desconhecido: ${service}`);
185
224
  }
@@ -189,7 +228,7 @@ export async function executeGrid402Request(service, params = {}, options = {})
189
228
 
190
229
  const headers = {
191
230
  'Accept': 'application/json',
192
- 'User-Agent': 'Grid402-MCP-Server/1.1',
231
+ 'User-Agent': 'Grid402-MCP-Server/1.3',
193
232
  };
194
233
 
195
234
  if (params.payment_tx_hash) {