Skip to content

Conversation

@beeankha
Copy link
Contributor

@beeankha beeankha commented Nov 4, 2025

SUMMARY

Resolves ACA-4357

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

server_info

@beeankha beeankha changed the title Add server_info action plugin [WIP] Add server_info action plugin Nov 4, 2025
@beeankha beeankha force-pushed the server-info-plugin branch 2 times, most recently from f74a279 to f2c19e7 Compare November 4, 2025 21:45
@beeankha beeankha self-assigned this Nov 4, 2025
@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

@beeankha beeankha force-pushed the server-info-plugin branch 2 times, most recently from 7b6c8b6 to 80f0ce1 Compare November 6, 2025 19:44
@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

@beeankha beeankha marked this pull request as ready for review November 6, 2025 20:30
@beeankha beeankha changed the title [WIP] Add server_info action plugin Add server_info action plugin Nov 6, 2025
Copy link
Contributor

@abikouo abikouo left a 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

return result

except Exception as e:
raise AnsibleActionFail("Failed to retrieve server info: %s" % str(e))
Copy link
Member

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__))

Comment on lines 2 to 6
"github-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"description": "GitHub MCP Server - Access GitHub repositories, issues, and pull requests"
},
Copy link
Member

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.

@beeankha beeankha marked this pull request as draft November 7, 2025 20:21
@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

@beeankha beeankha marked this pull request as ready for review November 10, 2025 15:39
@softwarefactory-project-zuul
Copy link
Contributor

returned: success
type: dict
contains:
protocolVersion:
Copy link
Contributor

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?

Copy link
Contributor Author

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)

@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

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.
Warning:
Error merging github.com/ansible-collections/ansible.mcp for 11,10a2ca978798fd03f28e9f8c2c96f422903aac49

@softwarefactory-project-zuul
Copy link
Contributor

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.
Warning:
Error merging github.com/ansible-collections/ansible.mcp for 11,4f3d4038f8d1be5fe36be379abccec3edd1789ee

@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

@beeankha beeankha marked this pull request as draft November 11, 2025 18:40
@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants