{{/* SEP (Spec Enhancement Proposals) Page Content */}} {{/* Only available for modelcontextprotocol/modelcontextprotocol */}} {{ $context := . }} {{ $repoKey := "" }} {{ if reflect.IsMap . }} {{ with .context }}{{ $context = . }}{{ end }} {{ with .repoKey }}{{ $repoKey = . }}{{ end }} {{ end }} {{/* Load SEP data directly */}} {{ $seps := false }} {{ $parts := split $repoKey "/" }} {{ if eq (len $parts) 2 }} {{ $owner := index $parts 0 }} {{ $repo := index $parts 1 }} {{ with index site.Data.repos $owner }} {{ with index . $repo }} {{ $seps = .seps }} {{ end }} {{ end }} {{ end }} {{/* Check if this is a non-MCP repo */}} {{ $isMCPRepo := and (eq (index $parts 0) "modelcontextprotocol") (eq (index $parts 1) "modelcontextprotocol") }} {{ if not $isMCPRepo }}

Spec Enhancement Proposals (SEPs) are only tracked for the MCP Specification repository.

{{ else if not $seps }}
No SEP data available. Run the aggregation script with --sep to populate SEP metrics.
{{ else }} {{/* Build GitHub filter URLs */}} {{ $ghBase := printf "https://github.com/%s/pulls" $repoKey }} {{ $proposalLink := printf "%s?q=is:pr+is:open+label:SEP+label:proposal" $ghBase }} {{ $draftLink := printf "%s?q=is:pr+is:open+label:SEP+label:draft" $ghBase }} {{ $inReviewLink := printf "%s?q=is:pr+is:open+label:SEP+label:in-review" $ghBase }} {{ $acceptedLink := printf "%s?q=is:pr+is:open+label:SEP+label:accepted" $ghBase }} {{ $mergedLink := printf "%s?q=is:pr+is:merged+label:SEP" $ghBase }} {{ $allSEPLink := printf "%s?q=is:pr+label:SEP" $ghBase }}

Overview

{{ partial "metric-card.html" (dict "label" "Total SEPs" "value" $seps.counts.total "link" $allSEPLink) }} {{ partial "metric-card.html" (dict "label" "Proposals" "value" $seps.counts.proposal "descriptor" "awaiting sponsor" "link" $proposalLink) }} {{ partial "metric-card.html" (dict "label" "Drafts" "value" $seps.counts.draft "descriptor" "being developed" "link" $draftLink) }} {{ partial "metric-card.html" (dict "label" "In Review" "value" $seps.counts.inReview "descriptor" "ready for review" "link" $inReviewLink) }} {{ partial "metric-card.html" (dict "label" "Accepted" "value" $seps.counts.accepted "descriptor" "pending merge" "link" $acceptedLink) }} {{ partial "metric-card.html" (dict "label" "Merged" "value" $seps.counts.merged "descriptor" "completed" "link" $mergedLink) }}
{{ if $seps.proposals }}

Proposals Awaiting Sponsor

SEPs that need a maintainer to sponsor them

{{ range $seps.proposals }} {{ end }}
PR Title Author Sponsor Size Waiting
#{{ .number }} {{ .title }} {{ if .author }}{{ .author }}{{ else }}unknown{{ end }} +{{ .additions }} -{{ .deletions }} {{ if gt .daysWaiting 30 }} {{ .daysWaiting }}d {{ else if gt .daysWaiting 7 }} {{ .daysWaiting }}d {{ else }} {{ .daysWaiting }}d {{ end }}
{{ end }} {{ if $seps.drafts }}

Drafts in Development

SEPs with a sponsor actively working on them

{{ range $seps.drafts }} {{ end }}
PR Title Author Sponsor Size Age
#{{ .number }} {{ .title }} {{ if .author }}{{ .author }}{{ else }}unknown{{ end }} {{ if .sponsor }}{{ .sponsor }}{{ else }}{{ end }} +{{ .additions }} -{{ .deletions }} {{ if gt .daysWaiting 30 }} {{ .daysWaiting }}d {{ else if gt .daysWaiting 7 }} {{ .daysWaiting }}d {{ else }} {{ .daysWaiting }}d {{ end }}
{{ end }} {{ if $seps.inReview }}

SEPs In Review

SEPs ready for community and maintainer review

{{ range $seps.inReview }} {{ end }}
PR Title Author Sponsor Reviews Waiting
#{{ .number }} {{ .title }} {{ if .author }}{{ .author }}{{ else }}unknown{{ end }} {{ if .sponsor }}{{ .sponsor }}{{ else }}{{ end }} {{ if gt .reviewCount 0 }} {{ .reviewCount }} {{ else }} 0 {{ end }} {{ if gt .daysWaiting 14 }} {{ .daysWaiting }}d {{ else if gt .daysWaiting 7 }} {{ .daysWaiting }}d {{ else }} {{ .daysWaiting }}d {{ end }}
{{ end }} {{ if $seps.accepted }}

Accepted SEPs

SEPs approved and awaiting merge

{{ range $seps.accepted }} {{ end }}
PR Title Author Sponsor Size Waiting
#{{ .number }} {{ .title }} {{ if .author }}{{ .author }}{{ else }}unknown{{ end }} {{ if .sponsor }}{{ .sponsor }}{{ else }}{{ end }} +{{ .additions }} -{{ .deletions }} {{ .daysWaiting }}d
{{ end }} {{ if $seps.merged }}

Merged SEPs

Successfully completed spec enhancements

{{ range $seps.merged }} {{ end }}
PR Title Author Sponsor Size Merged
#{{ .number }} {{ .title }} {{ if .author }}{{ .author }}{{ else }}unknown{{ end }} {{ if .sponsor }}{{ .sponsor }}{{ else }}{{ end }} +{{ .additions }} -{{ .deletions }} {{ if .mergedAt }} {{ $mergedTime := time .mergedAt }} {{ $mergedTime.Format "Jan 2, 2006" }} {{ end }}
{{ end }} {{ end }}