Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@f
Copy link
Owner

@f f commented Mar 28, 2025

Description

Added a new "proxy" command to the MCP CLI that allows users to register shell scripts as MCP tools and proxy MCP requests to them. This provides an easy way to extend MCP with custom tools without writing Go code.

Features

  • Tool Registration: Register shell scripts as MCP tools with mcp proxy tool
  • Parameter Types: Support for string, int, float, and bool parameter types
  • Environment Variables: Tool parameters are passed as environment variables to shell scripts
  • MCP Protocol Support: Full JSON-RPC compatible server implementation
  • Logging: Comprehensive request/response logging to ~/.mcpt/logs/proxy.log
  • Security: Path validation, executable checks, and secure script execution

@f f force-pushed the feature/proxy branch from 9825f08 to 04a4123 Compare March 28, 2025 06:55
@f f merged commit d788e22 into master Mar 28, 2025
2 checks passed
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.

2 participants