finhay-mcp-server 1.1.2 → 1.1.4

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/dist/install.js CHANGED
@@ -134,14 +134,16 @@ async function main() {
134
134
  console.log(`Cai dat config Finhay MCP Claude Desktop thanh cong ${configPath}`);
135
135
  console.log();
136
136
  let credsAction = 'create';
137
+ console.log('Xac thuc ket noi tai khoan FHSC');
137
138
  if (fs.existsSync(CREDENTIALS_PATH)) {
138
139
  const content = fs.readFileSync(CREDENTIALS_PATH, 'utf-8');
139
140
  const keyMatch = content.match(/FINHAY_API_KEY=(.+)/);
140
141
  const secretMatch = content.match(/FINHAY_API_SECRET=(.+)/);
141
142
  if (keyMatch && secretMatch) {
142
143
  const maskedKey = keyMatch[1].trim().slice(0, 8) + '***';
143
- console.log(` Tim thay credentials tai ${CREDENTIALS_PATH}`);
144
- console.log(` API Key: ${maskedKey}\n`);
144
+ console.log(`Tim thay thong tin Credentials ${CREDENTIALS_PATH}`);
145
+ console.log(`API Key: ${maskedKey}`);
146
+ console.log('Secret Key: ******\n');
145
147
  const replace = await ask('Ban co muon thay the khong? (y/n): ');
146
148
  credsAction = replace.toLowerCase() === 'y' ? 'update' : 'reuse';
147
149
  console.log();
@@ -167,8 +169,8 @@ async function main() {
167
169
  FINHAY_API_SECRET: apiSecret,
168
170
  FINHAY_BASE_URL: 'https://open-api.fhsc.com.vn',
169
171
  });
172
+ console.log();
170
173
  }
171
- console.log();
172
174
  if (credsAction === 'create') {
173
175
  console.log(`Tao Credentials thanh cong tai ${CREDENTIALS_PATH}`);
174
176
  }
@@ -167,8 +167,8 @@ export function registerMarketTools(server, client) {
167
167
  // --- Macro ---
168
168
  server.tool('get_macro_data', 'Get macroeconomic indicators for Vietnam or US (CPI, PMI, IIP, FED rate, etc.). JP and DE are only valid when type=GOVERNMENT_10Y_BOND_YIELD.', {
169
169
  type: z.enum([
170
- 'IIP', 'CPI', 'PMI', 'PCE', 'CORE_PCE', 'NFP', 'GOODS_RETAIL', 'SERVICE_RETAIL',
171
- 'TOTAL_EXPORT', 'FDI_EXPORT', 'DOMESTIC_EXPORT', 'FED_FUNDS_RATE', 'INTERBANK_RATE',
170
+ 'IIP', 'CPI', 'PMI', 'PCE', 'CORE_PCE', 'NFP',
171
+ 'FED_FUNDS_RATE', 'INTERBANK_RATE',
172
172
  'GOVERNMENT_10Y_BOND_YIELD', 'UNEMPLOYMENT_RATE',
173
173
  ]).describe('Macro indicator type'),
174
174
  country: z.enum(['VN', 'US', 'JP', 'DE']).describe('Country code (JP/DE only for GOVERNMENT_10Y_BOND_YIELD)'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finhay-mcp-server",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "mcpName": "io.github.finhay/mcp-server",
5
5
  "description": "Finhay MCP Server — xem gia co phieu, danh muc dau tu qua Claude AI",
6
6
  "type": "module",