-
Notifications
You must be signed in to change notification settings - Fork 5
Add server_info action plugin
#11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
server_info action pluginserver_info action plugin
f74a279 to
f2c19e7
Compare
|
Build succeeded. ✔️ build-ansible-collection SUCCESS in 5m 40s |
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 46s |
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 46s |
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 45s |
7b6c8b6 to
80f0ce1
Compare
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 37s |
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 43s |
server_info action pluginserver_info action plugin
abikouo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The integration test is missing the alias file with the cloud/aws sentence to generate aws credentials for tests
plugins/action/server_info.py
Outdated
| return result | ||
|
|
||
| except Exception as e: | ||
| raise AnsibleActionFail("Failed to retrieve server info: %s" % str(e)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in this case we should treat it like a module failure. So rather than raising an exception, we should do something like:
result["failed"] = True
result["msg"] = "some useful error message..."
result["exception"] = "".join(traceback.format_exception(None, e, e.__traceback__))| "github-server": { | ||
| "type": "stdio", | ||
| "command": "npx", | ||
| "args": ["-y", "@modelcontextprotocol/server-github"], | ||
| "description": "GitHub MCP Server - Access GitHub repositories, issues, and pull requests" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This specifically needs to be type: http and use the https://api.githubcopilot.com/mcp/ url.
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 46s |
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 47s |
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 46s |
| returned: success | ||
| type: dict | ||
| contains: | ||
| protocolVersion: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't make sense to return snake case data rather than dromedary case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I matched what I found while looking through MCP documentation (here's a section that shows protocolVersion and serverInfo)
08c1360 to
4f3d403
Compare
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 44s |
|
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
10a2ca9 to
4f3d403
Compare
|
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
4f3d403 to
222f4a3
Compare
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 58s |
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 59s |
26e0068 to
7529c37
Compare
|
Build succeeded. ✔️ build-ansible-collection SUCCESS in 5m 46s |
748e496 to
5253abb
Compare
|
Build failed. ✔️ build-ansible-collection SUCCESS in 5m 54s |
SUMMARY
Resolves ACA-4357
ISSUE TYPE
COMPONENT NAME
server_info