File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 33
33
// for internal use
34
34
EnvCLIName = newEnv ("IBMCLOUD_CLI" , "BLUEMIX_CLI" )
35
35
EnvPluginNamespace = newEnv ("IBMCLOUD_PLUGIN_NAMESPACE" , "BLUEMIX_PLUGIN_NAMESPACE" )
36
+ EnvMCP = newEnv ("IBMCLOUD_MCP_ENABLED" )
36
37
)
37
38
38
39
// Env is an environment variable supported by IBM Cloud CLI for specific purpose
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package bluemix
3
3
import "fmt"
4
4
5
5
// Version is the SDK version
6
- var Version = VersionType {Major : 1 , Minor : 7 , Build : 3 }
6
+ var Version = VersionType {Major : 1 , Minor : 8 , Build : 0 }
7
7
8
8
// VersionType describe version info
9
9
type VersionType struct {
Original file line number Diff line number Diff line change @@ -298,4 +298,7 @@ type PluginContext interface {
298
298
299
299
// CLIName returns binary name of the Bluemix CLI that is invoking the plugin
300
300
CLIName () string
301
+
302
+ // MCPEnabled returns true if the CLI is functioning as an MCP server
303
+ MCPEnabled () bool
301
304
}
Original file line number Diff line number Diff line change @@ -116,6 +116,10 @@ func (c *pluginContext) VersionCheckEnabled() bool {
116
116
return ! c .CheckCLIVersionDisabled ()
117
117
}
118
118
119
+ func (c * pluginContext ) MCPEnabled () bool {
120
+ return bluemix .EnvMCP .Get () != ""
121
+ }
122
+
119
123
func envOrConfig (env bluemix.Env , config string ) string {
120
124
if v := env .Get (); v != "" {
121
125
return v
You can’t perform that action at this time.
0 commit comments