- MCP server at /mcp using github.com/modelcontextprotocol/go-sdk v1.6.1 with Streamable HTTP transport - 9 tools implemented: get_entity, list_entities, get_relations, get_blast_radius, get_health_summary, get_audit_trail, search_knowledge, query_metrics, request_execution (policy-gated) - All tools use the untyped ToolHandler pattern with raw JSON argument parsing - Mounted on the same binary and port with bearer/OIDC auth - SSE stream endpoint now handled by oapi-codegen strict handler Phase 2 acceptance criteria: - GET /entities?type=service ✅ (part 1) - MCP list_entities ✅ (part 5) - PATCH /entities with If-Match → 412 ✅ (part 3) - Idempotency-Key replay ✅ (part 3) - SSE stream shows events ✅ (part 4) - Audit rows carry OIDC sub ✅ (part 4) - Spec-conformance tests ⬜ (CI setup, Phase 2 completing) Remaining stubs: CreateEntityType, PatchEntityType, CreateCheck, PatchCheck, RequestExecution, CancelExecution, ListApprovals, DecideApproval, ListExecutions, GetExecution, ListPatterns, PatchPattern, ListSkills, PatchSkill, etc. (Phase 3)
36 lines
1.2 KiB
Modula-2
36 lines
1.2 KiB
Modula-2
module github.com/dtoro/oikos
|
|
|
|
go 1.26.3
|
|
|
|
require (
|
|
github.com/getkin/kin-openapi v0.140.0
|
|
github.com/go-chi/chi/v5 v5.3.1
|
|
github.com/golang-jwt/jwt/v5 v5.3.1
|
|
github.com/google/uuid v1.6.0
|
|
github.com/jackc/pgx/v5 v5.10.0
|
|
github.com/modelcontextprotocol/go-sdk v1.6.1
|
|
github.com/oapi-codegen/runtime v1.4.2
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
|
|
github.com/go-openapi/jsonpointer v0.22.5 // indirect
|
|
github.com/go-openapi/swag/jsonname v0.25.5 // indirect
|
|
github.com/google/jsonschema-go v0.4.3 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
|
github.com/oasdiff/yaml v0.1.0 // indirect
|
|
github.com/oasdiff/yaml3 v0.0.13 // indirect
|
|
github.com/rogpeppe/go-internal v1.15.0 // indirect
|
|
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect
|
|
github.com/segmentio/asm v1.1.3 // indirect
|
|
github.com/segmentio/encoding v0.5.4 // indirect
|
|
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
|
|
golang.org/x/oauth2 v0.35.0 // indirect
|
|
golang.org/x/sync v0.19.0 // indirect
|
|
golang.org/x/sys v0.41.0 // indirect
|
|
golang.org/x/text v0.32.0 // indirect
|
|
)
|