Quick start
Requirements
Section titled “Requirements”- Go 1.23 or newer
- optional
pdftotextfor local PDF extraction - optional
tesseractfor local image OCR
Clone and validate
Section titled “Clone and validate”git clone https://github.com/MrQwenty/fast-context-protocol.gitcd fast-context-protocol
go test -race ./...go vet ./...Run the reference provider
Section titled “Run the reference provider”go run ./cmd/fcpd \ -listen :8080 \ -catalog examples/basic-provider/context.jsonThe current compatibility namespace is still fcp while the public technical name migrates to CGP.
Resolve context
Section titled “Resolve context”go run ./cmd/fcpctl \ -endpoint http://localhost:8080 \ -intent code.review \ -target pull-request:482 \ -max-tokens 4000 \ -max-latency-ms 80Sanitize a document locally
Section titled “Sanitize a document locally”go run ./cmd/fcpprivacy \ -input examples/privacy/sample.txt \ -output /tmp/sample.sanitized.txt \ -report /tmp/sample.privacy.json \ -custom-terms examples/privacy/custom-terms.txt \ -mode anonymizeThe command emits sanitized content and a PrivacyReceipt. Original detected values are not included in the receipt.
Validate a provider
Section titled “Validate a provider”go run ./cmd/fcpconform -endpoint http://localhost:8080The conformance runner exits non-zero when baseline discovery, version negotiation, budget enforcement or error semantics do not conform.