MCPcopy
hub / github.com/docker/docker-agent / UpdateSessionTitle

Method UpdateSessionTitle

pkg/runtime/remote_runtime.go:651–657  ·  view source on GitHub ↗

UpdateSessionTitle updates the title of the current session on the remote server.

(ctx context.Context, sess *session.Session, title string)

Source from the content-addressed store, hash-verified

649
650// UpdateSessionTitle updates the title of the current session on the remote server.
651func (r *RemoteRuntime) UpdateSessionTitle(ctx context.Context, sess *session.Session, title string) error {
652 sess.Title = title
653 if r.sessionID == "" {
654 return errors.New("cannot update session title: no session ID available")
655 }
656 return r.client.UpdateSessionTitle(ctx, r.sessionID, title)
657}
658
659// CurrentMCPPrompts returns available MCP prompts from the server.
660func (r *RemoteRuntime) CurrentMCPPrompts(ctx context.Context) map[string]mcp.PromptInfo {

Callers

nothing calls this directly

Calls 2

UpdateSessionTitleMethod · 0.65
NewMethod · 0.45

Tested by

no test coverage detected