Closed
Description
Summary
The SKIP_FETCH_TOOLS_EXAMPLE environment variable pattern is an anti-pattern. This should be replaced with per-tool configuration.
Context
From PR #148 review comment by @glebedel:
It seems that this should be a per tool configuration rather than based on an env variable
Affected Files
examples/human-in-the-loop.ts- Any other files using
SKIP_FETCH_TOOLS_EXAMPLEor similar env-based feature toggles
Current Implementation
if (process.env.SKIP_FETCH_TOOLS_EXAMPLE) {
// skip behaviour
}Proposed Changes
Replace environment variable checks with explicit per-tool or per-instance configuration:
const toolset = new StackOneToolSet({
skipFetch: true, // or similar configuration option
});Or use per-tool configuration as appropriate for the use case.
Related
- PR feat!: remove deprecated OAS-based getTools, migrate to fetchTools only #148 (feat!: remove deprecated OAS-based getTools, migrate to fetchTools only)
- Work in progress on branch
feat/migrate-to-pnpm-vitestaddressing env variable anti-patterns
Metadata
Metadata
Assignees
Labels
No labels
Activity
ryoppippi commentedon Dec 9, 2025
Closing as the
SKIP_FETCH_TOOLS_EXAMPLEenvironment variable no longer exists in the codebase - it was already removed.