Skip to content

SDK drift: TypeScript ServerManager.getAccessToken() has no Python equivalent #1141

@realfishsam

Description

@realfishsam

Summary

The TypeScript ServerManager exposes a public getAccessToken() method that reads the accessToken field from the sidecar lock file. The Python ServerManager has no equivalent method.

TypeScript (sdks/typescript/pmxt/server-manager.ts, lines 96–100):

/**
 * Get the access token from the lock file.
 */
getAccessToken(): string | undefined {
    const info = this.getServerInfo();
    return info?.accessToken;
}

Python (sdks/python/pmxt/server_manager.py):
get_server_info() is public and returns the raw lock-file dict (which can include accessToken), but there is no get_access_token() convenience method.

Impact

Code that migrates between SDKs cannot use server_manager.get_access_token() in Python; callers must do server_manager.get_server_info().get('accessToken') instead, which is undocumented and relies on internal lock-file structure.

Expected behaviour

Both SDKs should expose an equivalent get_access_token() / getAccessToken() method.

Files

SDK File Lines
TypeScript sdks/typescript/pmxt/server-manager.ts 96–100
Python sdks/python/pmxt/server_manager.py (absent)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions