forked from microsoft/copilot-for-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIMcpRegistrationProvider.java
More file actions
23 lines (19 loc) · 899 Bytes
/
Copy pathIMcpRegistrationProvider.java
File metadata and controls
23 lines (19 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package com.microsoft.copilot.eclipse.ui.extensions;
import java.util.concurrent.CompletableFuture;
/**
* Interface for providing MCP (Model Context Protocol) server configurations.
* Implementations of this interface can be contributed via the mcpRegistration extension point
* to dynamically provide MCP server configurations to the GitHub Copilot plugin.
*/
public interface IMcpRegistrationProvider {
/**
* Provides MCP server configurations in JSON format asynchronously.
*
* @return CompletableFuture containing JSON string with MCP server configurations in the format:
* {"servers":{"serverName1":{...config...},"serverName2":{...config...}}}
* Returns null or empty string if no configurations are available.
*/
CompletableFuture<String> getMcpServerConfigurations();
}