@ansvar/singapore-law-mcp
Version:
Complete Singapore law database — 523 Acts, 28K+ provisions from Singapore Statutes Online (sso.agc.gov.sg) with full-text search, definitions, and citation support
23 lines • 841 B
JavaScript
/**
* Response metadata utilities for Singapore Law MCP.
*/
export function generateResponseMetadata(db) {
let freshness;
try {
const row = db.prepare("SELECT value FROM db_metadata WHERE key = 'built_at'").get();
if (row)
freshness = row.value;
}
catch {
// Ignore
}
return {
data_source: 'Singapore Statutes Online (sso.agc.gov.sg) — Attorney-General\'s Chambers of Singapore',
jurisdiction: 'SG',
disclaimer: 'This data is sourced from Singapore Statutes Online under the Singapore Open Data Licence. ' +
'The authoritative versions are published by the Attorney-General\'s Chambers. ' +
'Always verify with the official SSO portal at https://sso.agc.gov.sg/.',
freshness,
};
}
//# sourceMappingURL=metadata.js.map