Question formatting
This commit is contained in:
@@ -32,7 +32,7 @@ type exposePortArgs struct {
|
||||
func (m *Manager) exposePortTool(l *live) mcp.Tool {
|
||||
return mcp.Tool{
|
||||
Name: "expose_port",
|
||||
Description: "Show the human a server you are running, such as a dev server, in the task's Preview tab. " +
|
||||
Description: "Show the human a server you are running, such as a dev server, as a link above the task's tabs that opens it in a new window. " +
|
||||
"Start the server yourself first (in the background), listening on 127.0.0.1 (not 0.0.0.0 or localhost) on a port in this task's block. " +
|
||||
"byre then serves it over HTTPS on the same port of byre's host through tailscale serve, and returns the URL. " +
|
||||
"name labels it in the tab (\"web\", \"storybook\"); exposing a name or port again replaces the earlier one. " +
|
||||
@@ -40,7 +40,7 @@ func (m *Manager) exposePortTool(l *live) mcp.Tool {
|
||||
InputSchema: json.RawMessage(`{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {"type": "string", "description": "Short label, shown in the Preview tab."},
|
||||
"name": {"type": "string", "description": "Short label, shown as the link's text."},
|
||||
"port": {"type": "integer", "description": "The port the server listens on, at 127.0.0.1, within this task's block."}
|
||||
},
|
||||
"required": ["name", "port"]
|
||||
@@ -98,7 +98,7 @@ func (m *Manager) exposePort(ctx context.Context, l *live, raw json.RawMessage)
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Sprintf("Exposed %q: https://<byre's host>:%d/ proxies to %s, and the human sees it in the task's Preview tab.", name, args.Port, addr), nil
|
||||
return fmt.Sprintf("Exposed %q: https://<byre's host>:%d/ proxies to %s, and the human sees a link to it above the task's tabs.", name, args.Port, addr), nil
|
||||
}
|
||||
|
||||
func (m *Manager) Unexpose(ctx context.Context, taskID string) {
|
||||
|
||||
Reference in New Issue
Block a user