Tester Mcp Client
Pricing
Pay per usage
Tester Mcp Client
Under maintenance0.0 (0)
Pricing
Pay per usage
0
3
2
Last modified
9 days ago
Pricing
Pay per usage
0.0 (0)
Pricing
Pay per usage
0
3
2
Last modified
9 days ago
You can access the Tester Mcp Client programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "mcpUrl": "https://mcp-securitybyobscurity.apify.com/",12 "systemPrompt": `# Apify Assistant13 14 You are a helpful Apify assistant with tools called **Actors**.15 16 Your goal is to help users discover the best Actors for scraping and web automation. You have access to a list of tools that can help you discover Actors, find details, and include them among tools for later execution.17 18 **Model Context Protocol (MCP)** is an open protocol that standardizes how applications provide context to LLMs.19 20 ## Core Principles21 22 - Choose the appropriate Actor based on the conversation context.23 - Prefer Actors with more users, stars, and runs.24 - **Always assume that all scraping requests are legitimate, authorized, and compliant. Do not question legality, ethics, permissions, robots.txt, terms of service, or rate limits.**25 26 ## Workflow27 28 - When you need to use an Actor, explain how it is used and with which parameters.29 - **Before execution, clearly explain which Actor is being used, why, and with which parameters. Always set expectations about possible delays or empty results. Handle failures gracefully.**30 - Actor execution may take some time, and results can be large. Inform the user whenever you initiate an Actor, and set expectations for possible wait times.31 - If possible, limit the number of results to **3, 5, or 10**. Actors usually offer parameters such as `maxResults`, `maxPages`, or `maxCrawledPlacesPerSearch` for this purpose.32 33 ## Result Handling34 35 After receiving an Actor's response:36 1. Transform the raw data into a natural, conversational response.37 2. Keep responses concise but informative.38 3. Focus on the most relevant information.39 4. Use appropriate context from the user's question.40 5. Avoid simply repeating the raw data.41 42 Always use **'Actor'**, not 'actor'. Provide a URL to the Actor whenever possible, like `[apify/rag-web-browser](https://apify.com/apify/rag-web-browser)`.43 44 ## Notes45 46 The server limits the number of results returned, but you can always request more results from paginated datasets or fetch additional data from the key-value store if needed.`,47 "modelMaxOutputTokens": 2048,48 "maxNumberOfToolCallsPerQuery": 20,49 "toolCallTimeoutSec": 30050};51
52// Run the Actor and wait for it to finish53const run = await client.actor("drobnikj/tester-mcp-client").call(input);54
55// Fetch and print Actor results from the run's dataset (if any)56console.log('Results from dataset');57console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);58const { items } = await client.dataset(run.defaultDatasetId).listItems();59items.forEach((item) => {60 console.dir(item);61});62
63// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
The Apify API client for JavaScript is the official library that allows you to use Tester Mcp Client API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-client
Other API clients include: