AppServer交互管理工具

OEMANAGER MCP Server是一款支持与OpenEdge PASOE AppServer进行基本交互的工具,主要用于在开发过程中修剪AppServer代理进程,确保开发者测试最新的代码。

  • by consultingwerk
  • C#
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 consultingwerk/oemanager-mcp

使用说明

OEMANAGER MCP服务器

此MCP服务器支持与OpenEdge PASOE AppServer的基本交互。主要目的是能够修剪AppServer代理进程,以确保开发人员在开发时测试最新的代码。

MCP服务器配置

MCP服务器目前仅支持stdio协议。oemanager-mcp.exe支持两组启动参数:

  • --pasoeUrl-指向OEMANAGER的URL,例如。https://localhost:8811/oemanager
  • --appName-要监视的ABL应用程序的名称,例如oepas1
  • --username-用于身份验证的用户名,例如tomcat
  • --密码-用于身份验证的密码,例如tomcat

或

  • --defaultConnection-默认连接的标签或应用程序名称,例如oepas1
  • --configFile-带有oemanager连接的配置文件的路径,请参阅https://marketplace.visualstudio.com/items?itemName=ConsultingwerkApplicationModernizationSolutionsLtd.oemanager

当未指定--configFile时,我们默认为%AppData%\Consultingwerk\oemanager.conf

示例mcp_config.json

{
    "mcpServers": {
        "oemanmager-mcp": {
            "command": "C:\\Path\\oemanager-mcp\\bin\\Debug\\net8.0\\win-x64\\oemanager-mcp.exe",
            "args": [
                "--defaultConnection",
                "smartpas_stream"
            ],
            "disabledTools": [],
            "disabled": false
        }        
    }
}

MCP服务器工具

显示已配置的连接

    [McpServerTool]
    [Description("Returns all configured AppServer or OEMANAGER connections (Label, Url, applicationName)")]
    public string ShowConnections()

返回AppServer(PASOE)代理的状态

    [McpServerTool]
    [Description("Returns the status of the AppServer (PASOE) Agents")]
    public string ShowAppServerAgentStatus([Description("The Label of the connection to use (optional)")] string connectionName)

终止或修剪所有AppServer(PASOE)代理

    [McpServerTool]
    [Description("Terminates or Trims all AppServer (PASOE) Agents")]
    public string TrimAppServerAgents([Description("The Label of the connection to use (optional)")] string connectionName)