0.0.5 • Published 11 months ago
@feedmob/tapjoy-reporting v0.0.5
TapJoy Reporting MCP Server
Node.js server implementing Model Context Protocol (MCP) for TapJoy Reporting API.
Features
This server provides the following tool:
get_advertiser_adset_spend: Retrieves spend data for active advertiser ad sets within a specified date range.- Input Parameters:
start_date(string): The start date for the report inYYYY-MM-DDformat.end_date(string): The end date for the report inYYYY-MM-DDformat.
- Output: Returns a JSON array of objects, each containing the campaign name (
campaign.name) and the spend in USD (insights.reports[0].spendUSD).
- Input Parameters:
Setup
Environment Variables: Before running the server, you need to set the
TAPJOY_API_KEYenvironment variable. This key is used for authenticating with the Tapjoy API. You can obtain this key from your Tapjoy account.export TAPJOY_API_KEY='your_tapjoy_api_key'
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 Tapjoy MCP server to the
mcpServersconfiguration section:{ "mcpServers": { "tapjoy": { "command": "npx", "args": [ "-y", "@feedmob/tapjoy-reporting" ] "env": { "TAPJOY_API_KEY": "your_tapjoy_api_key_base64_encoded" } } // ... other servers } }Replace
/path/to/fm-mcp-servers/src/tapjoy-reporting/dist/index.jswith the actual path to the compiled JavaScript file after building the project. Alternatively, if published to npm, you could usenpxsimilar to the previous Jampp example.
Development
- Clone the repository.
- Navigate to the
src/tapjoy-reportingdirectory. - Install dependencies:
npm install - Set the required environment variable (
TAPJOY_API_KEY). - Build the project:
npm run build - Run the server directly:
node dist/index.js
License
MIT