finhay-mcp-server 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/dist/install.js +5 -3
  2. package/package.json +1 -1
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
  }
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.3",
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",