-
Notifications
You must be signed in to change notification settings - Fork 48
Make endpoint positional argument #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,12 @@ | ||
| ## Quickstart | ||
| ### Running local code | ||
| ``` | ||
| uv run src/aws_mcp_proxy/server.py --endpoint <your endpoint> | ||
| uv run aws_mcp_proxy/server.py <your endpoint> | ||
| ``` | ||
|
|
||
| ### Running local code with MCP inspector | ||
| ``` | ||
| npx @modelcontextprotocol/inspector uv run \ | ||
| src/aws_mcp_proxy/server.py \ | ||
| --endpoint <your endpoint> | ||
| aws_mcp_proxy/server.py <your endpoint> | ||
| ``` | ||
| Then click connect in the opened browser window. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ The proxy handles SigV4 authentication using local AWS credentials and provides | |
| ### Quick start | ||
|
|
||
| ```bash | ||
| uv run src/aws_mcp_proxy/server.py --endpoint <a sigv4 mcp> | ||
| uv run aws_mcp_proxy/server.py <a sigv4 mcp> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets be consistent, either or (or maybe something even more descriptive?)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about |
||
| ``` | ||
|
|
||
| #### Details | ||
|
|
@@ -49,10 +49,9 @@ Example with all options | |
| "command": "uv", | ||
| "args": [ | ||
| "--directory", | ||
| "/path/to/aws_mcp_proxy/src/aws_mcp_proxy", | ||
| "/path/to/aws_mcp_proxy", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While correct, just realized we need documentation on how to run the package version as well. Probs for @wzxxing to add when packaging is added. |
||
| "run", | ||
| "server.py", | ||
| "--endpoint", | ||
| "aws_mcp_proxy/server.py", | ||
| "<remote-server-url>", | ||
| "--service", | ||
| "<service-code>", | ||
|
|
@@ -69,7 +68,7 @@ Example with all options | |
|
|
||
| In MCP mode, the backend server is configured directly through command-line arguments: | ||
|
|
||
| * `--endpoint`: The MCP endpoint URL (required) | ||
| * `endpoint`: The MCP endpoint URL (required, first positional argument) | ||
| * `--service`: AWS service name for SigV4 signing (optional, inferred from endpoint if not provided) | ||
| * `--profile`: AWS profile to use (optional, uses AWS_PROFILE environment variable if not provided) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,19 +75,18 @@ def parse_args(): | |
| epilog=""" | ||
| Examples: | ||
| # Run with EKS MCP endpoint | ||
| aws-mcp-proxy --endpoint https://eks-mcp.us-west-2.api.aws | ||
| aws-mcp-proxy https://eks-mcp.us-west-2.api.aws | ||
|
|
||
| # Run with custom service and profile | ||
| aws-mcp-proxy --endpoint https://eks-mcp.us-west-2.api.aws --service eks-mcp --profile default | ||
| aws-mcp-proxy https://eks-mcp.us-west-2.api.aws --service eks-mcp --profile default | ||
|
|
||
| # Run with write permissions enabled | ||
| aws-mcp-proxy --endpoint https://eks-mcp.us-west-2.api.aws --allow-write | ||
| aws-mcp-proxy https://eks-mcp.us-west-2.api.aws --allow-write | ||
|
Comment on lines
+78
to
+84
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will remove all mentions of eks soon. Not a blocker just an fyi. |
||
| """, | ||
| ) | ||
|
|
||
| parser.add_argument( | ||
| '--endpoint', | ||
| required=True, | ||
| 'endpoint', | ||
| help='MCP endpoint URL (e.g., https://eks-mcp.us-west-2.api.aws)', | ||
| ) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing!