integrations/external-context/examples/provider-extension-remote/README.md
This manifest is the preferred External Context Provider Extension Profile v1 shape for a provider-operated service.
Before release, the provider owner must:
context_search input and output contracts under
../../contracts/v1/.includeTools restricted to context_search, even when the same MCP
service exposes other tools.The manifest contains no static credential and cannot set MCP trust. The MCP
service is responsible for OAuth authorization, token audience validation,
rate limiting, request bounds, output sanitization, and provider-side logging.
For a one-off deployment, skip the Extension and register the endpoint directly:
qwen mcp add \
--scope project \
--transport http \
--include-tools context_search \
--oauth-scopes context.read \
--timeout 8000 \
provider-context \
https://context.example.com/mcp
The CLI does not currently expose an OAuth audience flag. If the provider
requires an explicit audience, use the manifest/configuration JSON above or add
oauth.audiences to the generated settings entry before authenticating.
The service should use a shorter internal Provider timeout than this 8000ms MCP call budget so it can return the profile's stable, redacted error before the client terminates the call.