1
0
Files
VARAM_classification_schema/mcp-config.yaml
ProcessGit viewer manifest error: manifest must include at least one viewer binding
2026-02-08 22:11:07 +00:00

154 lines
5.3 KiB
YAML

# VDVC Classification Schema — MCP Server Configuration
# ProcessGit standard format for auto-generated MCP endpoints
# Q5a: Serves V2 (proposed) only
# Q5b: generate_document uses clean normalized structure
mcp:
name: "VARAM Document Classification Schema"
description: >
Machine-readable classification schema for VARAM DVS Namejs document management system.
Functional categories (V2 proposed) with programme/project/audience metadata.
Restructured per MK noteikumi Nr. 282 §33 — function-based classification.
version: "1.0.0"
sources:
- id: classification
type: xml
file: classification-v2-proposed.xml
namespace: "urn:vdvc:classification:2026"
entity_mappings:
- type: domain
xpath: "//vdvc:domain"
id_attribute: "code"
name_xpath: "vdvc:name"
- type: group
xpath: "//vdvc:group"
id_attribute: "code"
name_xpath: "vdvc:name"
parent_xpath: "ancestor::vdvc:domain/@code"
- type: category
xpath: "//vdvc:category"
id_attribute: "code"
name_xpath: "vdvc:name"
parent_xpath: "ancestor::vdvc:group/@code | ancestor::vdvc:domain/@code"
attributes:
- name: retention
xpath: "vdvc:retention"
- name: departmentRef
xpath: "vdvc:departmentRef"
multiple: true
- name: requiresTag
xpath: "vdvc:requiresTag/@type"
multiple: true
- type: retentionRule
xpath: "//vdvc:retentionRule"
parent_xpath: "ancestor::vdvc:category/@code"
attributes:
- name: label
xpath: "@label"
- name: condition
xpath: "vdvc:condition/*"
- name: retention
xpath: "vdvc:retention"
- id: vocabularies
type: xml
file: vocabularies.xml
namespace: "urn:vdvc:classification:2026"
entity_mappings:
- type: department
xpath: "//vdvc:department"
id_attribute: "id"
name_xpath: "vdvc:name"
attributes:
- name: nmrCode
xpath: "vdvc:nmrCode"
- type: programme
xpath: "//vdvc:programme"
id_attribute: "id"
name_xpath: "vdvc:name"
attributes:
- name: officialCode
xpath: "vdvc:officialCode"
- name: v1Code
xpath: "vdvc:v1Code"
- type: project
xpath: "//vdvc:project"
id_attribute: "id"
name_xpath: "vdvc:name"
attributes:
- name: officialNumber
xpath: "vdvc:officialNumber"
- name: programmeRef
xpath: "vdvc:programmeRef"
- name: v1Code
xpath: "vdvc:v1Code"
- type: audience
xpath: "//vdvc:audience"
id_attribute: "id"
name_xpath: "vdvc:name"
tools:
search:
enabled: true
description: "Search classification categories, departments, programmes, projects by name or code"
searchable_types: [category, group, domain, department, programme, project, audience]
get_entity:
enabled: true
description: "Retrieve a specific entity by type:code (e.g., category:3.1, project:PRJ-005, department:IPD)"
list_entities:
enabled: true
description: "List all entities of a given type, optionally filtered by parent"
describe_model:
enabled: true
description: "Returns the VDVC data model: entity types, attributes, hierarchy, counts"
generate_document:
enabled: true
description: "Generate formatted classification document in Markdown or JSON"
format_options:
markdown:
template: |
# VARAM Dokumentu vadības klasifikācijas shēma (V2)
## Metadati
- Organizācija: {meta.organisation}
- Spēkā no: {meta.effectiveDate}
- Juridiskais pamats: {meta.legalBasis}
## Domēni un kategorijas
{for domain in domains}
### {domain.code} — {domain.name}
{for group in domain.groups}
#### {group.code} — {group.name}
| Kods | Nosaukums | Glabāšana | Departaments | Obligātie tagi |
|------|-----------|-----------|--------------|----------------|
{for cat in group.categories}
| {cat.code} | {cat.name} | {cat.retention} | {cat.departmentRef} | {cat.requiresTag} |
{endfor}
{endfor}
{endfor}
## Vārdnīcas
### Programmas
| ID | Nosaukums | V1 kods |
|----|-----------|---------|
{for prg in programmes}
| {prg.id} | {prg.name} | {prg.v1Code} |
{endfor}
### Projekti
| ID | Nosaukums | Oficiālais Nr. | V1 kods |
|----|-----------|---------------|---------|
{for prj in projects}
| {prj.id} | {prj.name} | {prj.officialNumber} | {prj.v1Code} |
{endfor}
identity:
operator: "VARAM"
contact: "lietvediba@varam.gov.lv"
repository: "https://processgit.org/VARAM/Document_classification_schema"