Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: respect NO_COLOR environment variable#85

Open
natsirtguy wants to merge 1 commit intof:master from
natsirtguy:feat/no-color
Open

feat: respect NO_COLOR environment variable #85
natsirtguy wants to merge 1 commit intof:master from
natsirtguy:feat/no-color

Conversation

@natsirtguy
Copy link
Contributor

@natsirtguy natsirtguy commented Dec 15, 2025

Adds support for the NO_COLOR standard.

When NO_COLOR environment variable is set (to any value), ANSI color codes are disabled in output.

Changes

  • Modified isTerminal() in pkg/jsonutils/jsonutils.go to check for NO_COLOR
  • Added unit tests

Usage

NO_COLOR=1 mcp call ... # Output without colors

- Export IsTerminal() in jsonutils package as single source of truth
- Check NO_COLOR env var before terminal detection
- Update configs.go to use jsonutils.IsTerminal()
- Follows https://no-color.org/ standard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

Comments

AltStyle によって変換されたページ (->オリジナル) /