OpenClaw plugin: RAG over Vietnamese government procurement docs (TBMT/KHLCNT/KQLCNT). Connects agent to openclaw-egp-server via remote MCP.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
WIN-88OI7J0B6KB\vietnd ddbfc855fd feat: align skills with real eGP data (lowercase types, IB codes, bid status)
The skills shipped fictional examples (entity_type="TBMT", code TBMT-2026-001)
that fail against the live openclaw-egp-server: entity_type is exact-match and
stored lowercase, so "TBMT" returns 0 rows (verified: tbmt=722, TBMT=0).

Fixes:
- entity_type guidance -> lowercase tbmt/khlcnt/kqlcnt across all skills + README
- entity_code examples -> real eGP format IB<digits>-<version> (e.g. IB2600250575-00)
- index_status values -> indexed/changed/indexing/converting/converted/uploaded/deleted
  (failed only exists at chunk level)

Exploit new entity columns now populated by the crawler:
- bid_close_date/bid_open_date (VN-time, UTC+7) -> dong/mo thau status computed in
  Vietnam time, never host clock
- title/investor_name/status_code -> fill DISCOVERY candidate table directly
- version_no -> detect amendments/extensions (>"00")

Bump plugin to v0.3.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
4 weeks ago
docs/superpowers docs(plan): procurement-analysis skill implementation plan 1 month ago
skills feat: align skills with real eGP data (lowercase types, IB codes, bid status) 4 weeks ago
.gitignore feat: openclaw-egp plugin v0.1.0 1 month ago
LICENSE feat: openclaw-egp plugin v0.1.0 1 month ago
README.md feat: align skills with real eGP data (lowercase types, IB codes, bid status) 4 weeks ago
openclaw.plugin.json feat: align skills with real eGP data (lowercase types, IB codes, bid status) 4 weeks ago

README.md

OpenClaw EGP Plugin

RAG over Vietnamese government procurement documents (TBMT, KHLCNT, KQLCNT). Connects an OpenClaw agent to a running openclaw-egp-server instance via remote MCP.

Install

openclaw plugins install git:git.pkhtech.com/vietnd11/openclaw-egp-plugin@v0.3.0

Configure

Point the plugin at your openclaw-egp-server instance:

openclaw plugins config openclaw-egp set serverUrl=http://100.123.9.15:8000
openclaw plugins restart

The plugin reads serverUrl from its config; the agent connects to {serverUrl}/mcp for the 5 MCP tools below.

Note on MCP wiring. OpenClaw's manifest schema does not currently declare a dedicated field for remote MCP server URLs. If openclaw plugins inspect openclaw-egp --runtime does not list the 5 tools after install, you may need to add an entry to the OpenClaw global config pointing the MCP runtime at {serverUrl}/mcp. See the server repo's /mcp endpoint for the canonical URL.

Capabilities

Tool Purpose
search_procurement_docs(query, limit?, entity_type?, entity_code?, mode?) Semantic search over the corpus
list_entities(entity_type?, status?, limit?) Enumerate TBMT/KHLCNT/KQLCNT records
describe_entity(entity_code) Metadata + file list for one entity
fetch_raw_file_url(file_id) Public download URL for the original file
entity_types_glossary() Static domain reference

Each tool has an accompanying SKILL.md in skills/ telling the agent when to use it. Skills are loaded automatically when the plugin is installed.

Server requirements

The plugin depends on an openclaw-egp-server instance with:

  • /mcp endpoint mounted (FastMCP Streamable HTTP transport).
  • /files/{id}/raw endpoint for raw file download.
  • PUBLIC_BASE_URL env var set to the externally-reachable URL (required for fetch_raw_file_url).

See the server README for setup.

Verify install

openclaw plugins inspect openclaw-egp --runtime

Expected: openclaw-egp enabled, 5 skills loaded, serverUrl shown as configured.

Then in chat, try:

"Liệt kê các TBMT đã indexed"

The agent should call list_entities(entity_type="tbmt", status="indexed") and return a markdown table.

entity_type is case-sensitive and lowercase (tbmt / khlcnt / kqlcnt). The server stores lowercase types and filters by exact match, so entity_type="TBMT" returns zero rows. Entity codes follow the eGP format IB<digits>-<version> (e.g. IB2600250575-00), not TBMT-2026-001.

Update

openclaw plugins install git:git.pkhtech.com/vietnd11/openclaw-egp-plugin@v0.3.0
openclaw plugins restart

Uninstall

openclaw plugins uninstall openclaw-egp

Server repository

openclaw-egp-server — FastAPI app exposing /mcp (5 tools), /files/{id}/raw, plus the admin dashboard and ingestion pipeline.

License

MIT — see LICENSE.