mcp-suse-enterprise

v0.3.5
mcp-suse-enterprise Checked 2 days ago Published 6 months ago

Enterprise MCP for SUSE Linux administration with OBS, openQA, multi-SP support, and contribution pipeline

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

suse.util.sanitize-text

Sanitize text for safe shell execution. Replaces typographic characters with ASCII equivalents and removes emojis.

ParameterTypeDescription
text *string

suse.util.metrics

Get server metrics: tool invocations, durations, error rates.

suse.util.list-profiles

List configured connection profiles. Args: mask_secrets: Whether to mask sensitive fields (default: True).

ParameterTypeDescription
mask_secretsboolean

suse.util.detect-version

Detect SUSE distribution from /etc/os-release content. Args: os_release_content: Raw text content of /etc/os-release.

ParameterTypeDescription
os_release_content *string

suse.util.test-connection

Test SSH connection to a configured host. Args: profile_name: Profile to test (default: default profile).

ParameterTypeDescription
profile_name

suse.util.security-check

Check if a tool requires confirmation in the given security mode. Args: tool_name: Tool name to check (e.g., "suse.obs.branch"). mode: Security mode ("read-only" or "execute").

ParameterTypeDescription
tool_name *string
modestring

suse.admin.service-status

Get status of a systemd service. Args: service: Service name (e.g., "sshd", "firewalld"). profile_name: Connection profile to use.

ParameterTypeDescription
service *string
profile_name

suse.admin.service-restart

Restart a systemd service (requires sudo). Args: service: Service name to restart. profile_name: Connection profile to use.

ParameterTypeDescription
service *string
profile_name

suse.admin.service-enable

Enable a systemd service (requires sudo). Args: service: Service name to enable. profile_name: Connection profile to use.

ParameterTypeDescription
service *string
profile_name

suse.admin.service-disable

Disable a systemd service (requires sudo). Args: service: Service name to disable. profile_name: Connection profile to use.

ParameterTypeDescription
service *string
profile_name

suse.admin.logs

Get system logs from journalctl. Args: unit: Optional systemd unit to filter. lines: Number of lines to return (default: 50). profile_name: Connection profile to use.

ParameterTypeDescription
linesinteger
profile_name
unit

suse.admin.firewall-status

Get firewall status and active zones. Args: profile_name: Connection profile to use.

ParameterTypeDescription
profile_name

suse.admin.execute-command

Execute an arbitrary shell command on the remote SUSE host. Uses the existing SSH connection pool. Requires security_mode = 'execute'. All commands are logged with timestamp for auditability. The timeout is enforced server-side using the `timeout` utility. If a command exceeds the timeout, it is killed and partial output is returned with exit_code=124 and timed_out=true. Args: command: Shell command to execute on the remote host. timeout: Maximum execution time in seconds (default: 30). Command is killed after this duration. Partial ou…

ParameterTypeDescription
command *string
profile_name
sudoboolean
timeoutinteger

suse.admin.run-background

Run a long-running command on the remote host. Returns immediately with a job ID. Uses systemd-run --user --scope when available (jobs survive SSH disconnects and MCP server restarts). Falls back to SSH keep-alive if systemd-run is not available or user lacks permissions. Use get-job-status to poll progress, get-job-output to read logs, kill-job to cancel. Requires security_mode = 'execute'. Args: command: Shell command to run in background. sudo: Whether to run with sudo privileges. profile_name: Connection profile to use. Returns:…

ParameterTypeDescription
command *string
profile_name
sudoboolean

suse.admin.get-job-status

Check if a background job is still running and get its output tail. Args: job_id: Job ID returned by run-background. profile_name: Connection profile to use (for jobs from previous sessions). Returns: Dict with running status, exit_code, output_tail, and diagnostic hints.

ParameterTypeDescription
job_id *string
profile_name

suse.admin.get-job-output

Get the output (stdout + stderr) of a background job. Args: job_id: Job ID returned by run-background. lines: Number of lines to return from end (default: 50). profile_name: Connection profile to use. Returns: Dict with the job's log output.

ParameterTypeDescription
job_id *string
linesinteger
profile_name

suse.admin.kill-job

Kill a background job by its job ID. Args: job_id: Job ID returned by run-background. signal: Signal to send (TERM, KILL, INT, HUP). Default: TERM. profile_name: Connection profile to use. Returns: Dict with success status.

ParameterTypeDescription
job_id *string
profile_name
signalstring

suse.zypper.refresh

Refresh all repositories (requires sudo). Args: profile_name: Connection profile to use.

ParameterTypeDescription
profile_name

suse.zypper.search

Search for packages with zypper. Args: query: Package name or pattern to search. profile_name: Connection profile to use.

ParameterTypeDescription
query *string
profile_name

suse.zypper.info

Get detailed package information. Args: package: Package name. profile_name: Connection profile to use.

ParameterTypeDescription
package *string
profile_name

suse.zypper.list-repos

List configured repositories with details. Args: profile_name: Connection profile to use.

ParameterTypeDescription
profile_name

suse.zypper.list-patches

List available patches. Args: category: Filter by category (security, recommended, optional). profile_name: Connection profile to use.

ParameterTypeDescription
category
profile_name

suse.zypper.list-patterns

List available patterns. Args: profile_name: Connection profile to use.

ParameterTypeDescription
profile_name

suse.zypper.deps

Query package dependencies. Args: package: Package name. profile_name: Connection profile to use.

ParameterTypeDescription
package *string
profile_name

suse.zypper.install

Install a package (requires sudo). Args: package: Package name to install. profile_name: Connection profile to use.

ParameterTypeDescription
package *string
profile_name

suse.zypper.update

Update packages (requires sudo). If no package specified, updates all. Args: package: Optional specific package to update. If None, updates all. profile_name: Connection profile to use.

ParameterTypeDescription
package
profile_name

suse.zypper.remove

Remove a package (requires sudo). Args: package: Package name to remove. profile_name: Connection profile to use.

ParameterTypeDescription
package *string
profile_name

suse.zypper.dup-dry-run

Run distribution upgrade dry-run to see proposed changes. Args: profile_name: Connection profile to use.

ParameterTypeDescription
profile_name

suse.obs.list-projects

List accessible OBS projects.

suse.obs.list-packages

List packages in an OBS project. Args: project: OBS project name.

ParameterTypeDescription
project *string

suse.obs.build-status

Get build status for a package. Args: project: OBS project name. repo: Repository name. arch: Architecture (x86_64, aarch64, etc.). package: Package name.

ParameterTypeDescription
arch *string
package *string
project *string
repo *string

suse.obs.build-log

Get build log for a package (last N lines). Args: project: OBS project name. repo: Repository name. arch: Architecture. package: Package name. lines: Number of lines to return (default: 200).

ParameterTypeDescription
arch *string
package *string
project *string
repo *string
linesinteger

suse.obs.branch

Branch a package into your home project. Args: source_project: Source project to branch from. package: Package name.

ParameterTypeDescription
package *string
source_project *string

suse.obs.submit-request

Create a submit request. Args: source_project: Source project (your branch). package: Package name. target_project: Target project. description: Description of the changes.

ParameterTypeDescription
description *string
package *string
source_project *string
target_project *string

suse.openqa.list-jobs

List recent openQA jobs. Args: limit: Maximum number of jobs to return.

ParameterTypeDescription
limitinteger

suse.openqa.get-job

Get details of a specific openQA job. Args: job_id: openQA job ID.

ParameterTypeDescription
job_id *integer

suse.openqa.trigger-job

Trigger a new openQA test job. Args: test_suite: Test suite name. distri: Distribution identifier. version: Version string. arch: Architecture.

ParameterTypeDescription
arch *string
distri *string
test_suite *string
version *string

suse.openqa.job-modules

Get test modules for a job. Args: job_id: openQA job ID. failed_only: Return only failed modules.

ParameterTypeDescription
job_id *integer
failed_onlyboolean

suse.openqa.list-suites

List available openQA test suites.

suse.sle.list-branches

List your OBS branch projects.

suse.sle.release-status

Get consolidated release status (builds + tests). Args: project: OBS project name. package: Package name.

ParameterTypeDescription
package *string
project *string