Skip to content

Add validate, status tools and local transport#99

Merged
jonchun merged 1 commit intomainfrom
feat/validate-status-local-transport
Mar 5, 2026
Merged

Add validate, status tools and local transport#99
jonchun merged 1 commit intomainfrom
feat/validate-status-local-transport

Conversation

@jonchun
Copy link
Copy Markdown
Collaborator

@jonchun jonchun commented Mar 5, 2026

Summary

  • Add validate MCP tool — checks commands against the security policy without executing them (returns {ok, reason})
  • Add status MCP tool — returns connection state for all servers (transport type + connected flag)
  • Add local transport — LocalExecutor runs commands on the local machine via sh -c instead of over SSH, selected by passing transport: "local" to connect
  • Add Transport field to AutoConnectConfig and SHELLGUARD_TRANSPORT env var support

Test plan

  • go build ./... compiles cleanly
  • go test ./... — all tests pass (13 new tests)
  • Pre-commit hooks (lint, formatting) pass
  • Manual: run MCP server, call validate with valid/invalid commands
  • Manual: call connect with transport: "local", then execute, then status

🤖 Generated with Claude Code

Add validate MCP tool for checking commands against the security policy
without execution, status tool for showing connection state, and local
transport for running commands on the local machine instead of over SSH.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@jonchun jonchun merged commit 59483de into main Mar 5, 2026
2 checks passed
@jonchun jonchun deleted the feat/validate-status-local-transport branch March 5, 2026 21:37
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