OpenCtx Context Providers

Use additional context sources from outside of your codebase by leveraging OpenCtx providers.

MCP is the recommended method for adding external context in Cody due to its broad community adoption and extensive tool support. Read the docs to learn more about configuring MCP.

OpenCtx is an open standard for bringing contextual info about code into your dev tools. OpenCtx context providers are in the Experimental stage for all Cody users. Enterprise users can use this, but with limited support. Cody Free and Pro users can use OpenCtx providers to fetch and use context from the following sources:

Enable OpenCtx context providers

OpenCtx context providers are only supported with Cody VS Code extension.

To try OpenCtx context providers with Cody, you must add to your VS Code extension settings. Go to Cody Settings, and check the box for OpenCtx: Enable. This will enable OpenCtx. You don't need the OpenCtx VS Code extension to use context fetching with OpenCtx. You should uninstall the extension before using this feature in Cody.

For example, to use the DevDocs provider, add the following to your settings.json:

JSON
"openctx.providers": { "https://openctx.org/npm/@openctx/provider-devdocs": { "urls": ["https://devdocs.io/go/", "https://devdocs.io/angular~16/"] } },

Please refer to the context providers docs for instructions and examples of configuring other providers such as Confluence, Jira, GitHub, Slack, Notion, Linear Issues, Linear Docs, Google Docs, and more.

Previous
Prompts