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 | 1 month ago | |
| skills | 4 weeks ago | |
| .gitignore | 1 month ago | |
| LICENSE | 1 month ago | |
| README.md | 4 weeks ago | |
| openclaw.plugin.json | 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 --runtimedoes 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/mcpendpoint 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:
/mcpendpoint mounted (FastMCP Streamable HTTP transport)./files/{id}/rawendpoint for raw file download.PUBLIC_BASE_URLenv var set to the externally-reachable URL (required forfetch_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_typeis case-sensitive and lowercase (tbmt/khlcnt/kqlcnt). The server stores lowercase types and filters by exact match, soentity_type="TBMT"returns zero rows. Entity codes follow the eGP formatIB<digits>-<version>(e.g.IB2600250575-00), notTBMT-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.