Configuring your client to use the MCP server
- The PE console host must be reachable from the developer’s machine.
-
The developer’s machine must trust the PE console CA certificate. See Get the Puppet CA certificate chain in Puppet Enterprise.
-
You must have the
infrastructure_assistant:usepermission. -
To use the
get_device_infotool, you must have the task run permission for the taskedgeops::netconf_discover. -
You will need a PE API key. See Generate a token in the console.
Configuring documentation generation
Code assist’s MCP server entity documentation tools require Puppet Server to generate documentation for your environments. This is enabled by default but can be configured by editing the PE Master node group in the console.
To configure documentation generation:
-
In the console, click Node groups.
-
Expand PE Infrastructure and select PE Master.
-
On the Data tab, locate the
puppet_enterprise::master::file_syncclass. -
Set the following parameters as needed:
The listed defaults are the file sync application’s defaults, which apply when the Puppet parameters areundef.
-
generate_docsDescription: Enable or disable documentation generation. Set to false to completely disable.
Default:
true -
generate_docs_environmentsDescription: Array of environments to generate docs for. An empty array generates docs for all environments.
-
Default:
['production'] -
generate_docs_concurrencyDescription: Maximum number of environments to generate docs for concurrently.
Default:
3 -
generate_docs_timeoutDescription: Timeout in seconds to wait for documentation generation to complete.
Default:
300
5. Click Commit changes.
6. Run Puppet on your primary server to apply the changes.
Examples
Generate docs for multiple environments:
-
Set
generate_docs_environmentsto['production', 'development', 'staging']
Generate docs for all environments:
-
Set
generate_docs_environmentsto["all-puppet-environment"]
Disable documentation generation:
-
Set
generate_docstofalse






