Feat/opencode configuration - #1
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR scaffolds an Apify plugin package for Open Code, including TypeScript configuration, package metadata/docs, and a GitHub Actions workflow to publish the plugin to npm on GitHub Releases.
Changes:
- Adds an Open Code plugin entrypoint (
index.ts) that configures the Apify MCP server, agent prompt, skills path, tool allowlist, and env passthrough. - Introduces npm packaging metadata (
package.json), TypeScript config (tsconfig.json), and release-time publishing workflow (.github/workflows/publish.yml). - Adds project documentation and release metadata (
README.md,CHANGELOG.md,LICENSE,.gitignore).
Reviewed changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
index.ts |
Plugin entrypoint that wires MCP/agent/skills/instructions into the Open Code config. |
package.json |
Declares the npm package and its published files/scripts/dependencies. |
tsconfig.json |
TypeScript compiler configuration for the plugin entrypoint. |
.github/workflows/publish.yml |
Publishes the package to npm on GitHub Release publication. |
README.md |
User-facing installation/usage docs for the Open Code plugin. |
CHANGELOG.md |
Initial changelog entry for v1.0.0. |
LICENSE |
Apache-2.0 license text. |
.gitignore |
Ignores node_modules. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
jirispilka
approved these changes
Jun 23, 2026
jirispilka
left a comment
Contributor
There was a problem hiding this comment.
I'm not sure how it should work but the README could be improved.
It is kind of mixing MCP, CLI, and SKD integration, which is a bit confusing at a first glance.
I understand it now but I was confused at the beginning.
Otherwise it looks ok.
Co-authored-by: Jiří Spilka <jiri.spilka@apify.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds complete Open Code configuration. Most important files are index.ts, package.json and ci/cd publish yaml.
OpenCode has different approach to plugins - plugins are NPM packages that set up Open Code instance (including agents/skills/rules/MCP and even ENVs) to use specific capabilities. Actual package is basically one file that provides Plugin type (defined by open-code SDK) and dependencies definition in package.json
Dependencies of this PR
NPM_TOKEN GitHub secret must be set on this repo
Internal repo token will likely has to be updated to have rights to write content to this repo.
Testing the Open Code plugin
There are two levels of testing:
Intended flow from OpenCode perspective:
Intended flow from Apify perspective: