File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed
tests/integration/targets/server_info Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 9191 id : install-collection
9292 uses : ansible-network/github_actions/.github/actions/build_install_collection@main
9393 with :
94- install_python_dependencies : true
94+ install_python_dependencies : false
9595 source_path : .
9696
9797 - name : Set up git
@@ -106,6 +106,7 @@ jobs:
106106 collection_path : ${{ steps.install-collection.outputs.collection_path }}
107107 python_version : ${{ env.python_version }}
108108 ansible_version : ${{ env.ansible_version }}
109+ ansible_test_requirement_files : ' test-requirements.txt'
109110 env :
110111 ANSIBLE_TEST_GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
111112 all_green :
Original file line number Diff line number Diff line change 1+ {
2+ "github-server" : {
3+ "type" : " stdio" ,
4+ "command" : " npx" ,
5+ "args" : [" -y" , " @modelcontextprotocol/server-github" ],
6+ "description" : " GitHub MCP Server - Access GitHub repositories, issues, and pull requests"
7+ },
8+ "aws-iam-mcp-server" : {
9+ "type" : " stdio" ,
10+ "command" : " uvx" ,
11+ "args" : [" awslabs.iam-mcp-server" ],
12+ "description" : " AWS IAM MCP Server - Manage AWS IAM resources through MCP protocol"
13+ }
14+ }
15+
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
88GITHUB_PAT_VALUE=" ${ANSIBLE_TEST_GITHUB_PAT:- ${GITHUB_PAT:- ${GITHUB_TOKEN:- ${GITHUB_PERSONAL_ACCESS_TOKEN:- } } } } "
99
1010INVENTORY=" ${SCRIPT_DIR} /inventory.yml"
11+ MANIFEST_PATH=" ${SCRIPT_DIR} /mcpservers.json"
1112
1213if [ -n " ${GITHUB_PAT_VALUE:- } " ]; then
13- ansible-playbook -i " ${INVENTORY} " tasks/main.yml -e " github_pat=${GITHUB_PAT_VALUE} " " $@ "
14+ ansible-playbook -i " ${INVENTORY} " tasks/main.yml -e " ansible_mcp_manifest_path= ${MANIFEST_PATH} " -e " github_pat=${GITHUB_PAT_VALUE} " " $@ "
1415else
15- ansible-playbook -i " ${INVENTORY} " tasks/main.yml " $@ "
16+ ansible-playbook -i " ${INVENTORY} " tasks/main.yml -e " ansible_mcp_manifest_path= ${MANIFEST_PATH} " " $@ "
1617fi
Original file line number Diff line number Diff line change 22- name : Test server_info with GitHub MCP server
33 hosts : github_server
44 gather_facts : false
5+ vars :
6+ ansible_mcp_manifest_path : " {{ ansible_mcp_manifest_path | default(playbook_dir | dirname + '/mcpservers.json') }}"
57 tasks :
68 - name : Retrieve server info from GitHub MCP server
79 ansible.mcp.server_info :
2224- name : Test server_info with AWS IAM MCP server
2325 hosts : aws_iam_server
2426 gather_facts : false
27+ vars :
28+ ansible_mcp_manifest_path : " {{ ansible_mcp_manifest_path | default(playbook_dir | dirname + '/mcpservers.json') }}"
2529 tasks :
2630 - name : Retrieve server info from AWS IAM MCP server
2731 ansible.mcp.server_info :
You can’t perform that action at this time.
0 commit comments