# Hong Kong CourtDB

> Search Hong Kong court cases and read judgment documents.

- name: io.github.IndoTender/hkcourt
- version: 1.0.0
- connection class: R2 (oauth_consent_once)
- trust: 90/100
- quality: 89/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.IndoTender%2Fhkcourt
- tools: https://api.protogrid.dev/v1/servers/io.github.IndoTender%2Fhkcourt/tools

**An agent can connect after a one-time OAuth consent by a human.** Remote endpoint behind OAuth 2. Tokens stay with the agent; the registry only exposes the authorization metadata.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "hkcourt": {
      "type": "http",
      "url": "https://hk.courtdb.org/mcp"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 99
- freshness: 65
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-96% ~updated-101d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 89/100 (good)

### protocol: n/a (weight 25)

- n/a `protocol.modern`, `protocol.stateless`, `protocol.transport`, `protocol.list_ttl`: no remote answered a protocol handshake (not probed yet, unreachable, or local-only)

### authorization: 83 (weight 15)

- pass `auth.prm`: Protected Resource Metadata (RFC 9728) published
- pass `auth.as_metadata`: authorization server metadata reachable
- warn `auth.cimd`: only Dynamic Client Registration, deprecated in 2026-07-28 in favour of CIMD
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 86 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 3 of 3 tools declare readOnlyHint or destructiveHint
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: Hk_get_case (idempotentHint); Hk_list_cases (idempotentHint); Hk_get_document (idempotentHint)
- pass `tools.token_cost`: about 362 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 3, about 362 tokens to load them all
- tool set hash: 2e7f1e6cfb1db145ee4a1d0ff317eb74
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.IndoTender/hkcourt.svg)](https://protogrid.dev/servers/io.github.IndoTender/hkcourt)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

_No tool definition changes recorded._

## Remotes

- https://hk.courtdb.org/mcp (streamable-http, auth oauth2, reachable true, uptime30d 0.96428573)

## Packages

_none_

## Tools (3)

- `Hk_get_case`: A single Hong Kong court case by id (format: caseNo/year, e.g. 12345/2024). Returns { data } with parties and files (null if not found).
- `Hk_get_document`: Plain-text judgment for a Hong Kong court file by file id (judgment DIS id). Returns { data: { id, text } }. text is null when no converted HTML exists.
- `Hk_list_cases`: Paginated Hong Kong court cases. Filter by case_prefix (e.g. hccl, facv), year, category, titleContains, partiesContains (English or Chinese party name substring). Returns { data, total, page, limit }.
