MCP Jenkins Server
by lieee1995
The MCP Jenkins Server provides Jenkins integration tools using the Model Context Protocol (MCP). It allows users to interact with their Jenkins server programmatically.
Last updated: N/A
��#� �M�C�P� �J�e�n�k�i�n�s� �S�e�r�v�e�r�
�
�
�
�A� �M�o�d�e�l� �C�o�n�t�e�x�t� �P�r�o�t�o�c�o�l� �(�M�C�P�)� �s�e�r�v�e�r� �t�h�a�t� �p�r�o�v�i�d�e�s� �J�e�n�k�i�n�s� �i�n�t�e�g�r�a�t�i�o�n� �t�o�o�l�s�.�
�
�
�
�#�#� �F�e�a�t�u�r�e�s�
�
�
�
�-� �G�e�t� �J�e�n�k�i�n�s� �s�e�r�v�e�r� �i�n�f�o�r�m�a�t�i�o�n�
�
�-� �L�i�s�t� �a�n�d� �i�n�s�p�e�c�t� �J�e�n�k�i�n�s� �j�o�b�s�
�
�-� �G�e�t� �b�u�i�l�d� �i�n�f�o�r�m�a�t�i�o�n� �a�n�d� �c�o�n�s�o�l�e� �o�u�t�p�u�t�
�
�-� �M�a�n�a�g�e� �J�e�n�k�i�n�s� �v�i�e�w�s�
�
�-� �T�r�i�g�g�e�r� �s�p�e�c�i�f�i�c� �j�o�b� �b�u�i�l�d�s�
�
�
�
�#�#� �R�e�q�u�i�r�e�m�e�n�t�s�
�
�
�
�-� �P�y�t�h�o�n� �3�.�1�0�+�
�
�-� �J�e�n�k�i�n�s� �s�e�r�v�e�r� �w�i�t�h� �A�P�I� �a�c�c�e�s�s�
�
�-� �J�e�n�k�i�n�s� �A�P�I� �t�o�k�e�n� �f�o�r� �a�u�t�h�e�n�t�i�c�a�t�i�o�n�
�
�
�
�#�#� �I�n�s�t�a�l�l�a�t�i�o�n�
�
�
�
�1�.� �C�l�o�n�e� �t�h�i�s� �r�e�p�o�s�i�t�o�r�y�
�
�2�.� �I�n�s�t�a�l�l� �d�e�p�e�n�d�e�n�c�i�e�s�:�
�
� � � ��
��b�a�s�h� � � � � �p�i�p� �i�n�s�t�a�l�l� �-�r� �r�e�q�u�i�r�e�m�e�n�t�s�.�t�x�t� � � � � �
��
�
�
�
�
�#�#� �C�o�n�f�i�g�u�r�a�t�i�o�n�
�
�
�
�C�r�e�a�t�e� �a� ��.�e�n�v�
� �f�i�l�e� �w�i�t�h� �y�o�u�r� �J�e�n�k�i�n�s� �c�r�e�d�e�n�t�i�a�l�s�:�
�
�
�
��
��i�n�i� � �J�E�N�K�I�N�S�_�U�R�L�=�h�t�t�p�s�:�/�/�y�o�u�r�-�j�e�n�k�i�n�s�-�s�e�r�v�e�r� � �J�E�N�K�I�N�S�_�U�S�E�R�=�y�o�u�r�-�u�s�e�r�n�a�m�e� � �J�E�N�K�I�N�S�_�T�O�K�E�N�=�y�o�u�r�-�a�p�i�-�t�o�k�e�n� � �
��
�
�
�
�
�#�#� �C�L�I� �C�o�n�f�i�g�u�r�a�t�i�o�n�
�
�
�
�T�o� �a�d�d� �t�h�i�s� �M�C�P� �s�e�r�v�e�r� �t�o� �y�o�u�r� �C�L�I�,� �u�s�e� �t�h�e� �f�o�l�l�o�w�i�n�g� �c�o�n�f�i�g�u�r�a�t�i�o�n�:�
�
�
�
��
��j�s�o�n� � �{� � � � �"�m�c�p�S�e�r�v�e�r�s�"�:� �{� � � � � � �"�m�c�p�-�j�e�n�k�i�n�s�-�s�e�r�v�e�r�"�:� �{� � � � � � � � �"�c�o�m�m�a�n�d�"�:� �"�u�v�"�,� � � � � � � � �"�a�r�g�s�"�:� �[� � � � � � � � � � �"�-�-�d�i�r�e�c�t�o�r�y�"�,� � � � � � � � � � � �"�C�:�\�\�U�s�e�r�s�\�\�D�e�a�n�.�L�i�\�\�D�o�c�u�m�e�n�t�s�\�\�C�l�i�n�e�\�\�M�C�P�\�\�m�c�p�-�j�e�n�k�i�n�s�-�s�e�r�v�e�r�"�,� � � � � � � � � � �"�r�u�n�"�,� � � � � � � � � � �"�s�e�r�v�e�r�.�p�y�"� � � � � � � � �]�,� � � � � � � � �"�e�n�v�"�:� �{� � � � � � � � � � �"�J�E�N�K�I�N�S�_�U�R�L�"�:� �"�h�t�t�p�s�:�/�/�y�o�u�r�-�j�e�n�k�i�n�s�-�s�e�r�v�e�r�/�"�,� � � � � � � � � � �"�J�E�N�K�I�N�S�_�U�S�E�R�N�A�M�E�"�:� �"�y�o�u�r�-�u�s�e�r�n�a�m�e�"�,� � � � � � � � � � �"�J�E�N�K�I�N�S�_�P�A�S�S�W�O�R�D�"�:� �"�y�o�u�r�-�p�a�s�s�w�o�r�d�"� � � � � � � � �}�,� � � � � � � � �"�d�i�s�a�b�l�e�d�"�:� �f�a�l�s�e�,� � � � � � � � �"�a�u�t�o�A�p�p�r�o�v�e�"�:� �[�]� � � � � � �}� � � � �}� � �}� � �
��
�
�
�
�
�#�#� �A�v�a�i�l�a�b�l�e� �T�o�o�l�s�
�
�
�
�T�h�i�s� �M�C�P� �s�e�r�v�e�r� �p�r�o�v�i�d�e�s� �t�h�e� �f�o�l�l�o�w�i�n�g� �t�o�o�l�s�:�
�
�
�
�#�#�#� ��g�e�t�_�j�e�n�k�i�n�s�_�i�n�f�o�
�
�
�G�e�t� �J�e�n�k�i�n�s� �s�e�r�v�e�r� �i�n�f�o�r�m�a�t�i�o�n�
�
�
�
�#�#�#� ��l�i�s�t�_�j�o�b�s�
�
�
�L�i�s�t� �a�l�l� �J�e�n�k�i�n�s� �j�o�b�s�
�
�
�
�#�#�#� ��g�e�t�_�j�o�b�_�i�n�f�o�
�
�
�G�e�t� �i�n�f�o�r�m�a�t�i�o�n� �a�b�o�u�t� �a� �s�p�e�c�i�f�i�c� �j�o�b�
�
�-� �P�a�r�a�m�e�t�e�r�s�:�
�
� � �-� ��j�o�b�_�n�a�m�e�
�:� �N�a�m�e� �o�f� �t�h�e� �j�o�b� �t�o� �i�n�s�p�e�c�t�
�
�
�
�#�#�#� ��g�e�t�_�b�u�i�l�d�_�i�n�f�o�
�
�
�G�e�t� �i�n�f�o�r�m�a�t�i�o�n� �a�b�o�u�t� �a� �s�p�e�c�i�f�i�c� �b�u�i�l�d�
�
�-� �P�a�r�a�m�e�t�e�r�s�:�
�
� � �-� ��j�o�b�_�n�a�m�e�
�:� �N�a�m�e� �o�f� �t�h�e� �j�o�b�
�
� � �-� ��b�u�i�l�d�_�n�u�m�b�e�r�
�:� �B�u�i�l�d� �n�u�m�b�e�r� �t�o� �i�n�s�p�e�c�t�
�
�
�
�#�#�#� ��g�e�t�_�b�u�i�l�d�_�c�o�n�s�o�l�e�_�o�u�t�p�u�t�
�
�
�G�e�t� �c�o�n�s�o�l�e� �o�u�t�p�u�t� �f�o�r� �a� �s�p�e�c�i�f�i�c� �b�u�i�l�d�
�
�-� �P�a�r�a�m�e�t�e�r�s�:�
�
� � �-� ��j�o�b�_�n�a�m�e�
�:� �N�a�m�e� �o�f� �t�h�e� �j�o�b�
�
� � �-� ��b�u�i�l�d�_�n�u�m�b�e�r�
�:� �B�u�i�l�d� �n�u�m�b�e�r� �t�o� �i�n�s�p�e�c�t�
�
�
�
�#�#�#� ��g�e�t�_�v�i�e�w�s�
�
�
�L�i�s�t� �a�l�l� �J�e�n�k�i�n�s� �v�i�e�w�s�
�
�
�
�#�#�#� ��t�r�r�i�g�e�r�_�l�l�m�_�d�e�m�o�_�j�o�b�_�b�u�i�l�d�
�
�
�T�r�i�g�g�e�r� �t�h�e� �"�L�L�M�_�D�e�m�o�"� �j�o�b� �b�u�i�l�d�
�
�-� �P�a�r�a�m�e�t�e�r�s�:�
�
� � �-� ��u�s�e�r�
�:� �U�s�e�r� �n�a�m�e� �t�o� �p�a�s�s� �a�s� �b�u�i�l�d� �p�a�r�a�m�e�t�e�r�
�
�
�
�#�#� �E�x�a�m�p�l�e� �U�s�a�g�e�
�
�
�
��
��p�y�t�h�o�n� � �f�r�o�m� �m�c�p�.�c�l�i�e�n�t� �i�m�p�o�r�t� �C�l�i�e�n�t� � � � �c�l�i�e�n�t� �=� �C�l�i�e�n�t�(�"�h�t�t�p�:�/�/�l�o�c�a�l�h�o�s�t�:�8�0�0�0�"�)� � �#� �M�C�P� �s�e�r�v�e�r� �U�R�L� � �r�e�s�p�o�n�s�e� �=� �c�l�i�e�n�t�.�c�a�l�l�_�t�o�o�l�(�"�l�i�s�t�_�j�o�b�s�"�)� � �p�r�i�n�t�(�r�e�s�p�o�n�s�e�)� � �
��
�
�
�
�
�#�#� �L�i�c�e�n�s�e�
�
�
�
�M�I�T�
�
�