MCPcopy Create free account
hub / github.com/anus-dev/ANUS / initialize

Method initialize

packages/cli/src/zed-integration/zedIntegration.ts:73–101  ·  view source on GitHub ↗
(
    _args: acp.InitializeRequest,
  )

Source from the content-addressed store, hash-verified

71 ) {}
72
73 async initialize(
74 _args: acp.InitializeRequest,
75 ): Promise<acp.InitializeResponse> {
76 const authMethods = [
77 {
78 id: AuthType.LOGIN_WITH_GOOGLE,
79 name: 'Log in with Google',
80 description: null,
81 },
82 {
83 id: AuthType.USE_GROK,
84 name: 'Use Grok API key',
85 description: 'Requires setting the `GROK_API_KEY` environment variable',
86 },
87 {
88 id: AuthType.USE_VERTEX_AI,
89 name: 'Vertex AI',
90 description: null,
91 },
92 ];
93
94 return {
95 protocolVersion: acp.PROTOCOL_VERSION,
96 authMethods,
97 agentCapabilities: {
98 loadSession: false,
99 },
100 };
101 }
102
103 async authenticate({ methodId }: acp.AuthenticateRequest): Promise<void> {
104 const method = z.nativeEnum(AuthType).parse(methodId);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected