arunc-Refactored main.py with improved MCP task handling#1
Open
arunchandar0601 wants to merge 1 commit into
Open
arunc-Refactored main.py with improved MCP task handling#1arunchandar0601 wants to merge 1 commit into
arunchandar0601 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
• Introduced LIVE_COMMAND_REFERENCES dictionary to map short command references.
• Added helper: resolve_command_reference() to convert short form to encoded full command.
• Added support for command_ref and org_name in:
• get_appliance_live_status
• get_live_users_by_org
⸻
• Added EIP_COMMAND_REFERENCES for short-form references (e.g., "eip-cache-brief").
• Added helper function: resolve_eip_command_reference().
• Updated get_appliance_eip_details() to:
• Support short-form command references.
• Support auto_paginate for fetching all records.
• Return enhanced _metadata and pagination info.
• get_appliance_eip_data_by_mac()
• Given a MAC address, pulls EIP data for a specific org and appliance.
• extract_mac_addresses_from_eip_cache()
• Extracts and returns MACs from the EIP cache result.
• get_eip_system_analysis()
• Complete EIP flow: get cache → extract MACs → fetch data for each MAC.
• Summarizes success, error count, processing stats.
• get_appliance_sessions_summary()
• Fetches session summary for a specific appliance and org.
• get_appliance_session_extensive_details()
• Detailed session dump via POST request, supports advanced fields.
• get_live_users_by_org()
• Abstracted function for getting live users via short form (brief/detail).
• get_available_command_refs()
• Lists all valid command_refs, org requirements, usage examples.
• get_all_appliance_eip_details()
• Wrapper for fetching all EIP records via batched auto-pagination.
• Many functions now return _metadata including:
• appliance_name
• command_ref vs direct command
• org_name
• Pagination stats (records fetched, pages processed)
• Errors (if any)