Skip to content

Commit 59b79a3

Browse files
authored
Fix Actor input. Do not raise exception when list of Actors is empty. (#4)
1 parent 3bdf64d commit 59b79a3

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.actor/actor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "apify-mcp-server",
44
"title": "Model Context Protocol Server for Apify Actors",
55
"description": "Implementation of a Model Context Protocol (MCP) Server for Apify Actors that enables AI applications (and AI agents) to interact with Apify Actors",
6-
"version": "0.0",
6+
"version": "0.1",
77
"input": "./input_schema.json",
88
"dockerfile": "./Dockerfile"
99
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Apify Model Context Protocol (MCP) Server
22

33
Implementation of an MCP server for all [Apify Actors](https://apify.com/store).
4-
This server enables interaction with one or more Apify Actors that can be defined in the MCP server configuration.
4+
This server enables interaction with one or more Apify Actors that can be defined in the MCP Server configuration.
55

66
The server can be used in two ways:
7-
- 🇦 **Apify MCP Server Actor**: runs an HTTP server supporting the MCP protocol via Server-Sent Events.
7+
- 🇦 **Apify MCP Server Actor**: runs an HTTP server with MCP protocol via Server-Sent Events.
88
-**Apify MCP Server Stdio**: provides support for the MCP protocol via standard input/output stdio.
99

1010
# 🎯 What does Apify MCP server do?
@@ -14,8 +14,8 @@ For example it can:
1414
- use [Facebook Posts Scraper](https://apify.com/apify/facebook-posts-scraper) to extract data from Facebook posts from multiple pages/profiles
1515
- use [Google Maps Email Extractor](https://apify.com/lukaskrivka/google-maps-with-contact-details) to extract Google Maps contact details
1616
- use [Google Search Results Scraper](https://apify.com/apify/google-search-scraper) to scrape Google Search Engine Results Pages (SERPs)
17-
- use [Instagram Scraper](https://apify.com/apify/instagram-scraper) to scrape Instagram posts, profiles, places, hashtags, photos, and comments
18-
- use [RAG Web Browser](https://apify.com/apify/web-scraper) to perform a web search, scrape the top N URLs from the results, and return content
17+
- use [Instagram Scraper](https://apify.com/apify/instagram-scraper) to scrape Instagram posts, profiles, places, photos, and comments
18+
- use [RAG Web Browser](https://apify.com/apify/web-scraper) to search the web, scrape the top N URLs, and return their content
1919

2020
To interact with the Apify MCP server, you can use MCP clients such as [Claude Desktop](https://claude.ai/download), [Superinference.ai](https://superinterface.ai/), or [LibreChat](https://www.librechat.ai/).
2121
Additionally, you can use simple example clients found in the [examples](https://github.com/apify/actor-mcp-server/tree/main/src/examples) directory.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apify/mcp-server",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"type": "module",
55
"description": "Model Context Protocol Server for Apify Actors",
66
"engines": {

src/input.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,5 @@ export async function processInput(originalInput: Partial<Input>): Promise<Input
1212
if (input.actors && typeof input.actors === 'string') {
1313
input.actors = input.actors.split(',').map((format: string) => format.trim()) as string[];
1414
}
15-
if (!input.actors || input.actors.length === 0) {
16-
throw new Error('The `actors` parameter must be a non-empty array.');
17-
}
1815
return input;
1916
}

0 commit comments

Comments
 (0)