loading…
Search for a command to run...
loading…
Connects AI tools to Vietnamese bid (đấu thầu) lookup service DauThau via MCP, with local key signing for security.
Connects AI tools to Vietnamese bid (đấu thầu) lookup service DauThau via MCP, with local key signing for security.
Node.js wrapper kết nối AI tool (Claude Code, Cursor, Antigravity, Windsurf...) với dịch vụ tra cứu đấu thầu công Việt Nam của DauThau qua giao thức Model Context Protocol.
Wrapper chạy stdio trên máy bạn, ký request local rồi forward HTTPS lên gateway. Apisecret KHÔNG bao giờ rời máy bạn.
npm version Node.js Version License: GPL v2
hashsecret per-request bằng node:crypto (md5) hoặc bcrypt, chỉ gửi chữ ký qua mạng.npx -y @dauthau/mcp-dauthau@latest, không cài cố định, auto-update.@modelcontextprotocol/sdk) + Node stdlib. Mỗi release publish với npm provenance SLSA.KHÔNG cần npm install. Dùng trực tiếp qua npx.
.mcp.json cho Claude Code / Cursor / Windsurf{
"mcpServers": {
"dauthau": {
"command": "npx",
"args": ["-y", "@dauthau/mcp-dauthau@latest"],
"env": {
"DAUTHAU_APIKEY": "<apikey-cua-ban>",
"DAUTHAU_APISECRET": "<apisecret-cua-ban>",
"DAUTHAU_METHOD": "md5_verify",
"MCP_GATEWAY_URL": "<url-gateway-duoc-cap>",
"MCP_GATEWAY_KEY": "<gateway-key-duoc-cap>"
}
}
}
}
Sau khi config, restart MCP client (Claude Code / Cursor) để nạp wrapper. AI assistant sẽ tự discover danh sách tool và bắt đầu dùng được.
.mcp.json theo client| Client | Đường dẫn |
|---|---|
| Claude Code | .mcp.json trong project root, hoặc ~/.claude.json (global) |
| Cursor | ~/.cursor/mcp.json |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| Antigravity | xem doc client tương ứng |
| Env | Mô tả |
|---|---|
DAUTHAU_APIKEY |
Apikey từ tài khoản DauThau của bạn |
DAUTHAU_APISECRET |
Apisecret tương ứng (giữ local, dùng để ký hashsecret) |
MCP_GATEWAY_URL |
URL endpoint gateway (DauThau cấp khi đăng ký) |
MCP_GATEWAY_KEY |
Gateway subscription key (DauThau cấp) |
| Env | Default | Mô tả |
|---|---|---|
DAUTHAU_METHOD |
password_verify |
Phương thức xác thực chữ ký: password_verify (mặc định, dùng bcrypt) hoặc md5_verify (dùng md5). |
LOG_LEVEL |
info |
debug / info / warn / error — log ra stderr (stdout dành cho MCP framing). |
MCP_GATEWAY_TIMEOUT_MS |
30000 |
Timeout HTTPS request lên gateway, range 1000-120000. |
hashsecret = md5(apisecret + "_" + timestamp) local, chỉ gửi hashsecret + timestamp (Unix seconds) qua header..mcp.json, file đó phải được bảo vệ (chmod 600 trên Unix, ACL hạn chế trên Windows). KHÔNG commit .mcp.json chứa apisecret lên git.npx lần đầu mỗi session khoảng 200-500ms để tải package vào cache. Sau đó session sau dùng cache local.Thiếu env: DAUTHAU_APIKEY, ...Kiểm tra block env trong .mcp.json đã có đủ 4 biến bắt buộc. Restart MCP client sau khi sửa.
Node.js >= 22 requiredWrapper yêu cầu Node 22+ (LTS). Cài LTS mới nhất tại https://nodejs.org/.
gateway timeout sau 30000msMạng chậm hoặc gateway tạm thời không phản hồi. Tăng timeout qua MCP_GATEWAY_TIMEOUT_MS=60000 hoặc kiểm tra kết nối internet.
Đồng hồ máy lệch so với server > 60s. Sync NTP:
sudo sntp -sS time.google.com hoặc sudo timedatectl set-ntp onw32tm /resyncnpx -y @dauthau/mcp-dauthau@latest --version
npx -y @dauthau/mcp-dauthau@latest --help
git clone https://github.com/vinades/mcp-dauthau.git
cd mcp-dauthau
npm install
npm run lint # tsc --noEmit
npm test # vitest unit + integration mock
npm run build # tsc → dist/
node dist/index.js --version
Pull request và issue đều welcome. Trước khi PR:
npm run lint && npm test pass..env, key thật, hoặc thông tin nhạy cảm.Báo cáo lỗ hổng bảo mật: vui lòng dùng GitHub Security Advisory (private) trước khi public disclosure.
GNU General Public License v2.0
Выполни в терминале:
claude mcp add mcp-dauthau -- npx Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolProvides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai