Skip to content

Commit d948cb5

Browse files
tadasantconnor4312
andauthored
Apply suggestions from Connor
Co-authored-by: Connor Peet <[email protected]>
1 parent 112442f commit d948cb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/server-json/generic-server-json.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ This example demonstrates URL templating for local/package servers, where variab
743743
"version": "1.0.0",
744744
"transport": {
745745
"type": "streamable-http",
746-
"url": "http://localhost:{port}/mcp"
746+
"url": "http://localhost:{--port}/mcp"
747747
},
748748
"packageArguments": [
749749
{
@@ -759,4 +759,4 @@ This example demonstrates URL templating for local/package servers, where variab
759759
}
760760
```
761761

762-
The `{port}` variable in the URL references either the `--port` argument name or the `port` valueHint from packageArguments. When the package runs with `--port 8080`, the URL becomes `http://localhost:8080/mcp`.
762+
The `{--port}` variable in the URL references the `--port` argument `name` from packageArguments. For positional arguments, an argument with the `valueHint` of `port` could similarly be referened as `{port}`. When the package runs with `--port 8080`, the URL becomes `http://localhost:8080/mcp`.

0 commit comments

Comments
 (0)