Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Tools.dll Namespace: Microsoft.OData.Mcp.Tools.Commands Inheritance: System.Object

Syntax

Summary

Interactive wizard command that generates the claude mcp add registration line for a remote OData service, including the outbound OAuth flags odata-mcp start needs to sign in.

Remarks

This command provides an interactive experience for users to configure their OData service connection and generates the appropriate claude mcp add command for Claude Code. Tests must assign Input and Output instead of calling TextReader). Windows testhost wraps SetIn in SyncTextReader and leaves IsInputRedirected false, so Boolean) blocks the Visual Studio Test Explorer. Per specs/v3/AUTHENTICATION.md “CLI UX → odata-mcp add” the generated command never carries an access or refresh token, and never carries --env: claude mcp add --env takes KEY=VALUE, so a bare name is either invalid or empty. A client secret is an instruction, not a value. An API key, a Basic password, and a pasted bearer token do reach the configuration file, and each one is warned about at the moment it is collected.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

OnExecuteAsync

Executes the interactive wizard for generating MCP registration commands.

Syntax

Returns

Type: System.Threading.Tasks.Task<int> Exit code: 0 for success, 1 when the wizard could not finish.

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?