Bake the former Python bridge.py into emby-mcp as internal/bridge.
/mcp and /call/{tool} share one process. Session init errors are
returned instead of swallowed, and 401/400/404 trigger a fresh
initialize plus retry with the caller's Authorization header.
530 B
530 B
Development guidance
Upstream endpoint changes
Every new or changed REST call in internal/emby must update the endpoint
manifest and known-issues registry in
internal/emby/spec_conformance_test.go. Add or update the corresponding row
in docs/api/endpoint_validation.md when the call inventory or findings
change. The conformance test is static; it does not require a live Emby
server.
Verification commands
go build ./...
go vet ./...
go test ./...
go test ./internal/emby/ -run TestSpecConformance -v