Skip to main content
Glama
ofedoren

Foreman MCP Server

by ofedoren

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FOREMAN_URLNoThe URL of the Foreman serverhttps://$hostname
FOREMAN_PASSWORDNoThe password for Foreman authenticationchangeme
FOREMAN_USERNAMENoThe username for Foreman authenticationadmin

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
call_foreman_api

Call an action on a Foreman API resource. Needs Foreman API resource to be available.

fetch_foreman_dsl_docs

Fetches the DSL documentation from Foreman.

get_foreman_api_resource_docs

Fetches the documentation for given Foreman API resource.

Get Foreman DSL Documentation

Reads from cache and returns the documentation of available macros for template writing in Markdown format based on provided section. Refer to foreman://documentation/dsl/sections for available sections.

Prompts

Interactive templates invoked by user choice

NameDescription
Basic Subnets Static ReportA prompt for generating a static report of all subnets in Foreman.
Basic Hosts Pending Security Updates Static ReportA prompt for generating a static report of hosts with pending security updates in Foreman.
Basic Template WritingA prompt for writing a basic template in Foreman

Resources

Contextual data attached and managed by the client

NameDescription
Foreman ResourcesProvides a list of all resources available in the Foreman API.
Foreman API ResourceChecks if the Foreman API is available and can be used.
Foreman DSL SectionsReturns all Foreman DSL sections available for template writing.
Foreman Template KindsProvides a list of all template kinds available in Foreman.
Foreman Template ModelsProvides a list of all template models available in Foreman.
Foreman Template SchemaReturns the schema of a Foreman template.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ofedoren/foreman-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server