@orgsdk/cli
v3.0.0
Published
Project-local CLI and MCP tools for turning working TypeScript into tested, reusable actions
Readme
OrgSDK
When your coding agent works out how to do a recurring job, keep the working steps in the repository. OrgSDK lets the agent run TypeScript, inspect the result, and save the code and its tests as a versioned action. The next time the job comes up, a caller can read that version and run it with different inputs.
Use OrgSDK in your project
Use Linux with Node.js 22.22.0 or newer and npm. Open the repository where you want to keep the action. If this computer already runs an OrgSDK server, follow the 2.10 installation transition to keep its command on its existing version.
# Install the command that your agent will use.
npm install -g @orgsdk/cli
# Check that OrgSDK finds your repository. Look for its path in projects[0].root.
orgsdk tool call list_projectsFor OpenCode, save the following as opencode.json in the repository. If a configuration already exists, add the orgsdk entry to its mcp object. The harness must be able to find orgsdk on its PATH.
{
"mcp": {
"orgsdk": {
"type": "local",
"command": ["orgsdk", "mcp", "--stdio"],
"enabled": true
}
}
}Open this repository in OpenCode and ask the agent, “Use OrgSDK's list_projects to show me the project root, then use execute_code to run return 6 * 7;. Show me the cell result.” You should see the same directory and 42. If your harness launches tools elsewhere, append "--project", "/absolute/path/to/repository" to the command array, using your repository's actual path.
Next, ask the agent to decide whether a dashboard project name identifies one row or several. In a named session the agent checks one list and finds one match. It saves that check with tests for zero, one and two matches. On a different list, the same saved version returns two, so the caller knows to ask which row you meant before opening one. Run the example and replay it from a clone
Each version under orgsdk/actions/ includes readable TypeScript, its input and output definitions, tests and package pins. Commit the versions you want to share. Session history and exploratory files stay under the project's ignored orgsdk/.local/ directory. Credentials and browser sign-ins stay private to the user. Workers run trusted project code with the permissions of the local OS account. Project files and credentials
Already running an installation? Keep its release pinned and transfer eligible actions one at a time. Installation operation and backups
Project guide · Build and test the CLI · Report an issue · Contributing · License
