open-index/open-npm huggingface dataset:
npm package: @kang_tao/lanhu-developer-mcp
Description: Enhanced MCP server for Lanhu integration - supports custom download directory and parallel downloads
Author: kangtao
Latest version: 1.6.1

# @kangtao/lanhu-developer-mcp

基于 [lanhu-developer-mcp](https://www.npmjs.com/package/lanhu-developer-mcp) v1.0.6 的增强版本，解决并行下载冲突和目录不可配置的问题。

## 相比原版的改进

### 1. 自定义下载目录

通过工具参数 `download_dir` 指定每次调用的下载路径：

```json
{
  "project_id": "xxx",
  "image_id": "yyy",
  "download_dir": "src/assets/MyDesign"
}
```

### 2. 全局默认目录配置

通过 CLI 参数或环境变量配置默认下载目录：

```bash
# CLI 参数
lanhu-developer-mcp --download-dir "src/assets/CustomDir"

# 环境变量
LANHU_DOWNLOAD_DIR=src/assets/CustomDir
```

优先级：工具参数 `download_dir` > CLI `--download-dir` > 环境变量 `LANHU_DOWNLOAD_DIR` > 默认值 `src/assets/LanHuImgFile`

### 3. 并行下载安全

当目标目录已存在时，自动创建带数字后缀的目录，避免并行下载冲突：

```
src/assets/LanHuImgFile/     ← 第 1 次下载
src/assets/LanHuImgFile_1/   ← 第 2 次并行下载
src/assets/LanHuImgFile_2/   ← 第 3 次并行下载
```

### 4. 动态输出路径

- 图片引用路径根据实际下载目录动态生成（不再硬编码 `@/src/assets/LanHuImgFile/`）
- JSON 数据文件名根据目录名动态生成（如 `MyDesign_PageData.json`）

## 安装

```bash
npm install -g @kangtao/lanhu-developer-mcp
```

## 使用

与原版相同，额外支持 `--download-dir` 参数：

```bash
# stdio 模式（MCP 集成）
lanhu-developer-mcp --stdio --token YOUR_TOKEN

# HTTP 模式
lanhu-developer-mcp --token YOUR_TOKEN --port 8000 --download-dir src/assets/MyDesign
```

### MCP 配置示例

```json
{
  "mcpServers": {
    "lanhu-developer-mcp": {
      "command": "npx",
      "args": ["-y", "@kangtao/lanhu-developer-mcp", "--stdio"],
      "env": {
        "LANHU_TOKEN": "<your-lanhu-token>",
        "LANHU_DOWNLOAD_DIR": "src/assets/LanHuImgFile"
      }
    }
  }
}
```

## 环境变量

| 变量 | 说明 | 默认值 |
|------|------|--------|
| `LANHU_TOKEN` | 蓝湖用户 Token | 必填 |
| `PORT` | HTTP 服务端口 | 3333 |
| `LANHU_DOWNLOAD_DIR` | 默认图片下载目录 | `src/assets/LanHuImgFile` |

## 可用工具

### get_lanhu_data

获取蓝湖设计稿的布局信息。

参数：

- `project_id`（字符串，必需）：蓝湖项目 ID
- `image_id`（字符串，可选）：设计稿节点 ID
- `download_dir`（字符串，可选）：自定义图片下载目录（相对于项目根目录）

## License

MIT
npm package: @kangafinance/core
Description: Core contracts for Kanga Finance
Latest version: 0.0.30

# KangaFinance

https://kangafinance.com/

https://demo.kangafinance.com/

## Deployed Contracts

https://testing.kanga.finance

## Docs

[Development](docs/DEVELOPMENT.md)

[Deployment](docs/DEPLOYMENT.md)

[History](docs/HISTORY.md)

## Security

[Security Policy](SECURITY.md)

## License

[MIT](LICENSE.txt)
npm package: @kangafinance/hardhat-framework
Description: Common test utilities for hardhat development
Author: BoringCrypto, Keno, I'm Software
Latest version: 0.0.2

# hardhat-framework
 
This package helps configuring a repo for hardhat development. This is very opinionated :)

### How to include this?
All the packages needed are included in this package, so all you need to add in your repo's `package.json` is:

```
    "scripts": {
        "test": "hardhat test",
        "format": "prettier --write contracts/**/*.sol *.js *.json test/**/*.js",
        "pretty-quick": "pretty-quick",
        "coverage": "hardhat coverage"
    },
    "devDependencies": {
        "@sushiswap/hardhat-framework": "sushiswap/hardhat-framework"
    }
```

### Setting up your .env
You can include your environment variables in a `.env` file in the root of your repo. Alternatively you can set an actual environment variable called `DOTENV_PATH` to point to a central `.env` file to be used. This way you can use the same environment settings accross multiple projects.

Some useful settings:
```
ALCHEMY_API_KEY=
COINMARKETCAP_API_KEY=
HARDHAT_NETWORK=hardhat
HARDHAT_MAX_MEMORY=4096
HARDHAT_SHOW_STACK_TRACES=true
HARDHAT_VERBOSE=true
```

### Use default settings for configuration
Many settings are pre-defined in hardhat-framework. The following changes import all those settings as well as allow you to make any changes/additions to them in a central settings.js file.

To use the defaults defined in hardhat-framework, change or create the following files:

**hardhat.config.js**
```
module.exports = require("@sushiswap/hardhat-framework").config.hardhat(require("./settings").hardhat)
```

**.prettierrc.js**
```
module.exports = require("@sushiswap/hardhat-framework").config.prettier(require("./settings").prettier)
```

**.solcover.js**
```
module.exports = require("@sushiswap/hardhat-framework").config.solcover(require("./settings").solcover)
```

And add a `settings.js` file:
```
module.exports = {
    hardhat: { },
    solcover: { },
    prettier: { }
}
```

TODO:

- Manage deployments
- Github hooks
- Getting husky to work properly (pre-commit in package.json)
- Integrate Certora
- Integrate Slither
npm package: @kangafinance/limit-order-v2
Description: Limit Orders for Kanga Finance
Latest version: 0.0.12

# HardHat Foundation

## Env

```sh
cp .env.example .env
```

## Test

```sh
yarn test
```

```sh
yarn test test/Greeter.ts
```

## Coverage

```sh
yarn test:coverage
```

<https://hardhat.org/plugins/solidity-coverage.html#tasks>

## Gas

```sh
yarn test:gas
```

<https://github.com/cgewecke/hardhat-gas-reporter>

## Lint

```sh
yarn lint
```

## Watch

```sh
npx hardhat watch compile
```

## Deployment

### Local

Running the following command will start a local node and run the defined deploy script on the local node.

```sh
npx hardhat node
```

### Mainnet

```sh
yarn mainnet:deploy
```

```sh
yarn mainnet:verify
```

```sh
hardhat tenderly:verify --network mainnet ContractName=Address
```

```sh
hardhat tenderly:push --network mainnet ContractName=Address
```

### Ropsten

```sh
yarn ropsten:deploy
```

```sh
yarn ropsten:verify
```

```sh
hardhat tenderly:verify --network ropsten ContractName=Address
```
npm package: @kangafinance/sdk
Description: 🛠 An SDK for building applications on top of Kanga.
Latest version: 0.0.36

# Kanga SDK

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

This modifies uniswap-sdk's UniswapV2Factory address. The new address for kanga on harmony-testnet is  `0xFc92cD6E5c40B8AdEd835bA9AD937B29255E9c14`.

**Note:** the latest address can be found [here](https://github.com/KangaFinance/kanga/blob/canary/docs/DEPLOYMENT.md#harmony-testnet). If deploying new contracts then need to update [addresses.ts](./src/constants/addresses.ts).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone git@github.com:KangaFinance/kanga-sdk.git
```

Move into the kanga-sdk working directory

```sh
cd kanga-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @kangafinance/sdk-core
Description: 🛠 An SDK for building applications on top of Uniswap.
Latest version: 0.0.1

# Uniswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/Uniswap/uniswap-sdk/workflows/CI/badge.svg)](https://github.com/Uniswap/uniswap-sdk)
[![npm version](https://img.shields.io/npm/v/@uniswap/sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/Uniswap/uniswap-sdk.git
```

Move into the uniswap-sdk working directory

```sh
cd uniswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```