Skip to content

Add X-Pplx-Integration attribution header to API requests - #139

Closed
qirh wants to merge 1 commit into
mainfrom
psi/saleh/attribution-integration-header
Closed

Add X-Pplx-Integration attribution header to API requests#139
qirh wants to merge 1 commit into
mainfrom
psi/saleh/attribution-integration-header

Conversation

@qirh

@qirh qirh commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Perplexity logs the opt-in X-Pplx-Integration header at API ingress for integration attribution. This adds X-Pplx-Integration: perplexity-mcp/<version> to every outbound API request using the existing MCP server version, with no behavior change.

Outbound headers

  • Content-Type: application/json
  • Authorization: Bearer <API key>
  • User-Agent: perplexity-mcp/<version>
  • X-Source: pplx-mcp-server
  • X-Pplx-Integration: perplexity-mcp/<version> (new)
  • X-Service: <service origin> when a service origin is provided

Verification

  • npm test (89 tests passed)
  • npm run build
  • No lint script is defined in package.json

@qirh qirh closed this Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant