AverbePorto-DataGateway
Facilitates secure interaction with the AverbePorto ecosystem for credential management and streamlined submission of freight insurance attestations. Offers a protected programmatic interface for automated data handling and regulatory record lookups.
Author

GHSix
Quick Info
Actions
Tags
AverbePorto-DataGateway
🌟 Abstract
This AverbePorto-DataGateway component serves as an MCP (Model Context Protocol) intermediary, establishing connectivity with the AverbePorto platform. It streamlines access to core functionalities, specifically focusing on secure authorization procedures and electronic document remittance utilizing AI-driven workflows.
🌐 Accessing the Web Portal
- Navigate to https://www.averbeporto.com.br
- Authenticate using your assigned credentials.
- Within the portal, capabilities include:
- Retrieving API Access Keys under User Profile settings.
- Executing submissions for XML documentation.
- Performing lookups against ANTT protocols.
- Oversight and administration of your cargo insurance endorsements.
🤖 Employing the DataGateway with AI Constructs
Installation via Smithery
To provision the averbeporto-mcp module automatically for Claude Desktop using Smithery:
bash npx -y @smithery/cli install @GHSix/averbeporto-mcp --client claude
Claude Desktop
-
Modify the configuration file located at
%APPDATA%\Claude\claude_desktop_config.json(Windows) or~/Library/Application Support/Claude/claude_desktop_config.json(MacOS) and integrate the following stanza:{ "mcpServers": { "AverbePorto-DataGateway": { "command": "node", "args": ["/path/to/AverbePorto-MCP/build/index.js"] } } }
-
Upon conversation initiation, the MCP server will initialize based on this configuration.
Cursor, Roo Code and Analogous Environments
-
Establish a configuration file, such as
.cursor/mcp.jsonor.roo/mcp.json, within your project directory containing:{ "mcpServers": { "AverbePorto-DataGateway": { "command": "node", "args": ["/path/to/AverbePorto-MCP/build/index.js"], "disabled": false, "alwaysAllow": [ "authenticate", "queryRegulatoryRecord", "ingestFile", "fetchManifest", "parseIdentifier" ] } } }
-
The DataGateway will automatically activate upon starting the session.
Github Copilot
- With Copilot active in your IDE, generate the file
.vscode/mcp.json:
{ "inputs": [ { "type": "promptString", "id": "avp-user-id", "description": "AverbePorto API User Identifier" }, { "type": "promptString", "id": "avp-secret-key", "description": "AverbePorto API Secret Key", "password": true } ], "servers": { "AverbePorto-DataGateway": { "command": "node", "args": ["/path/to/AverbePorto-MCP/build/index.js"], "env": { "AVP_API_USER": "${input:avp-user-id}", "AVP_API_SECRET": "${input:avp-secret-key}" } } } }
- Your IDE will prompt for credentials on first execution, ensuring secure storage.
- Copilot will recognize the DataGateway commands and suggest context-aware operations for:
- API Session Establishment
- XML Document Transmission
- ANTT Protocol Information Retrieval
- Credentials will be transparently injected into API interactions.
📚 Available Functions for the AI Agent
The AverbePorto-DataGateway exposes the following utilities:
authenticate: Establishes session security.- Arguments:
user,pass -
Yields:
sessionId -
ingestFile: Transmits payload data. - Arguments:
sessionId,filePath,recipient(optional),version(optional) -
Yields:
uploadId -
queryRegulatoryRecord: Fetches protocol details via key reference or vice-versa. - Arguments:
sessionId,keys,protocols,outputFormat,download,delimiter -
Output Formats: json, xml, csv
-
fetchManifest: Retrieves previously transmitted artifacts. -
Arguments:
sessionId: Session token from successful authentication.modDoc: Document classification code (e.g., DI, MDF-e, CT-e, NF-e, Draft CT-e).dtStart&dtLimit: Temporal bounds inYYYY-MM-DDformat.dtType: Date classification (Update, Emission, Dispatch); defaults toDispatch.- Optional Filters:
numDoc,emit,rem,exped,receb,dest,toma,importador,representante,prot,taxId. - Paging Controls:
page,start,limit. - Ancillary:
relation,modal,valid.
-
parseIdentifier: Breaks down access keys for detailed inspection. - Arguments:
key: The 44-digit access token for NF-e, CT-e, or MDF-e.
🔒 Security Posture
- Leverage API credentials provisioned within the User Configuration module.
- Maintain strict confidentiality of access credentials.
- Never disclose your active
sessionId. - Prioritize secure communication channels exclusively.
- Ensure the DataGateway server software remains current.
