0.0.1 • Published 1 year ago
@feedmob/inmobi-reporting v0.0.1
Inmobi Reporting MCP Server
Node.js server implementing Model Context Protocol (MCP) for Inmobi Reporting API.
Features
This server provides the following tools:
generate_inmobi_report_ids: Generates Inmobi report IDs for SKAN (iOS) and non-SKAN (Android) reports.- Input Parameters:
startDate(string, required): Start date for the report inYYYY-MM-DDformat.endDate(string, required): End date for the report inYYYY-MM-DDformat.
- Output: Returns JSON with
skanReportIdandnonSkanReportId.
- Input Parameters:
fetch_inmobi_report_data: Fetches data from Inmobi reports using report IDs.- Input Parameters:
skanReportId(string, required): SKAN report ID obtained from generate_inmobi_report_ids.nonSkanReportId(string, required): Non-SKAN report ID obtained from generate_inmobi_report_ids.
- Output: Returns the combined data from both reports.
- Input Parameters:
Setup
Environment Variables: Before running the server, you need to set the following environment variables:
export INMOBI_AUTH_URL='your_inmobi_auth_url' export INMOBI_SKAN_REPORT_URL='your_inmobi_skan_report_url' export INMOBI_NON_SKAN_REPORT_URL='your_inmobi_non_skan_report_url' export INMOBI_REPORT_BASE_URL='your_inmobi_report_base_url' export INMOBI_CLIENT_ID='your_inmobi_client_id' export INMOBI_CLIENT_SECRET='your_inmobi_client_secret'
Usage with Claude Desktop
- Make sure you have installed and updated to the latest version of Claude for Desktop.
- Open the Claude for Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
Add the Inmobi MCP server to the
mcpServersconfiguration section:{ "mcpServers": { "inmobi": { "command": "npx", "args": [ "-y", "@feedmob/inmobi-reporting" ], "env": { "INMOBI_AUTH_URL": "your_inmobi_auth_url", "INMOBI_SKAN_REPORT_URL": "your_inmobi_skan_report_url", "INMOBI_NON_SKAN_REPORT_URL": "your_inmobi_non_skan_report_url", "INMOBI_REPORT_BASE_URL": "your_inmobi_report_base_url", "INMOBI_CLIENT_ID": "your_inmobi_client_id", "INMOBI_CLIENT_SECRET": "your_inmobi_client_secret" } } } }
Development
- Clone the repository.
- Navigate to the
src/inmobi-reportingdirectory. - Install dependencies:
npm install - Set the required environment variables.
- Build the project:
npm run build - Run the server directly:
node dist/index.js
License
MIT
0.0.1
1 year ago