Skip to content

fix(everything): add key parameter to get-env tool to prevent secret leakage#4013

Closed
Will-hxw wants to merge 4 commits intomodelcontextprotocol:mainfrom
Will-hxw:fix/3986-get-env-security-fix
Closed

fix(everything): add key parameter to get-env tool to prevent secret leakage#4013
Will-hxw wants to merge 4 commits intomodelcontextprotocol:mainfrom
Will-hxw:fix/3986-get-env-security-fix

Conversation

@Will-hxw
Copy link
Copy Markdown

Summary

  • Require key parameter in get-env inputSchema; returns only specified env var instead of full process.env

Why

Issue #3986: The get-env tool inputSchema is {} and returns JSON.stringify(process.env), which exposes all environment variables including API keys and tokens.

Validation

Will-hxw and others added 4 commits April 21, 2026 07:24
Security fix: get-env tool previously returned the entire process.env
object without any filtering, which could leak sensitive environment
variables like API keys, tokens, and credentials.

Now requires a specific 'key' parameter to retrieve individual
environment variables, preventing accidental exposure of sensitive data.

Fixes #3986

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ce-reference

Schema fix: the resourceType property was missing a description,
which caused automated tools to fail parsing the allowed values.

Now documents that resourceType must be 'Text' or 'Blob'.

Fixes #3985

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Schema completeness fix: all tool input schema properties now have
description fields, which enables automated tools and LLMs to
properly understand each parameter's purpose.

Properties now described:
- read_file, read_text_file, read_media_file: path
- write_file: path, content
- edit_file: path, edits
- create_directory: path
- list_directory: path
- list_directory_with_sizes: path
- directory_tree: path, excludePatterns
- move_file: source, destination
- search_files: path, pattern, excludePatterns
- get_file_info: path

Fixes #3984

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Release script was skipping version bumps for packages with only
lockfile changes (e.g. uv.lock from dependabot). Now includes
.lock, package-lock.json, pnpm-lock.yaml, and yarn.lock files.

Fixes #3870

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Will-hxw Will-hxw closed this by deleting the head repository Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant