Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:

- name: Build
run: npm run build

- name: Type Check
run: npm run check

- name: Lint
run: npm run lint

- name: Test
run: npm test
Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Let Claude / DeepSeek / Qwen directly order your takeout, hail a Didi, check high-speed rail tickets, and pay utility bills.

[Product Requirements (PRD)](.trae/documents/dragon_mcp_prd.md) • [Architecture](.trae/documents/dragon_mcp_technical_architecture.md) • [Contributing](#-contributing)
[Architecture](#-architecture) • [Contributing Guide](CONTRIBUTING.md)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.0-blue.svg)](https://www.typescriptlang.org/)
Expand Down Expand Up @@ -106,7 +106,7 @@ graph TD
end
```

For more details, please refer to the [Technical Architecture Document](.trae/documents/dragon_mcp_technical_architecture.md).
Architecture details are documented in this README and will be expanded in repo docs over time.

---

Expand Down Expand Up @@ -157,6 +157,10 @@ For more details, please refer to the [Technical Architecture Document](.trae/do
# Edit .env (AMAP_API_KEY required for map services)
```

Minimum recommended variables:
- `AMAP_API_KEY`: required for Amap search and routing tools.
- `JWT_SECRET` and `ENCRYPTION_KEY`: required when `NODE_ENV=production`.

### Running the Server

Start the development server with SSE support:
Expand Down Expand Up @@ -230,7 +234,12 @@ A: **No.** The current payment tools are mocks. Do not use them for real transac
Run unit and integration tests:

```bash
# Enable experimental VM modules for Jest (ESM support)
npm test
```

If your local Node/Jest setup requires ESM flags, you can run:

```bash
NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" npm test
```

Expand All @@ -245,7 +254,7 @@ We welcome all contributions! Whether you are a developer, designer, or product
2. **More MTR Lines**: Adding station data for East Rail Line, Tuen Ma Line, etc.
3. **Real API Integration**: Replacing mocks with real APIs for WeChat/Alipay/Didi.

See [CONTRIBUTING.md](CONTRIBUTING.md) (Coming Soon) for details.
See [CONTRIBUTING.md](CONTRIBUTING.md) for details.

---

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
- AMAP_API_KEY=${AMAP_API_KEY}
restart: unless-stopped
volumes:
Expand Down
23 changes: 8 additions & 15 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{ ignores: ['dist', 'node_modules'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
files: ['src/**/*.ts'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
ecmaVersion: 2022,
sourceType: 'module',
globals: globals.node,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'no-console': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
},
},
)
Binary file added output/pdf/dragonmcp_summary.pdf
Binary file not shown.
Loading
Loading