Skip to content

Commit 03d772c

Browse files
committed
lint
1 parent bb1c10b commit 03d772c

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

src/examples/clientSse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dotenv.config({ path: path.resolve(dirname, '../../.env') });
2626
const SERVER_URL = process.env.MCP_SERVER_URL_BASE || 'https://actors-mcp-server.apify.actor/sse';
2727
// We need to change forward slash / to underscore -- in the tool name as Anthropic does not allow forward slashes in the tool name
2828
const SELECTED_TOOL = actorNameToToolName('apify/rag-web-browser');
29-
//const QUERY = 'web browser for Anthropic';
29+
// const QUERY = 'web browser for Anthropic';
3030
const QUERY = 'apify';
3131

3232
if (!process.env.APIFY_TOKEN) {

src/main.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,9 @@
22
This file serves as an Actor MCP SSE server entry point.
33
*/
44

5-
import type { ParsedUrlQuery } from 'node:querystring';
6-
import { parse } from 'node:querystring';
7-
8-
import { SSEServerTransport } from '@modelcontextprotocol/sdk/server/sse.js';
95
import { Actor } from 'apify';
106
import type { ActorCallOptions } from 'apify-client';
11-
import type { Request, Response } from 'express';
12-
import express from 'express';
137

14-
import { HEADER_READINESS_PROBE, Routes } from './const.js';
158
import { processInput } from './input.js';
169
import { log } from './logger.js';
1710
import { ApifyMcpServer } from './mcp-server.js';

src/mcp-server.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
#!/usr/bin/env node
21
/**
32
* Model Context Protocol (MCP) server for Apify Actors
43
*/
4+
import type { ParsedUrlQuery } from 'node:querystring';
5+
import { parse } from 'node:querystring';
6+
57
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
68
import type { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
79
import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js';
@@ -10,11 +12,6 @@ import { Actor } from 'apify';
1012
import type { ActorCallOptions } from 'apify-client';
1113
import { ApifyClient } from 'apify-client';
1214
import type { AxiosRequestConfig } from 'axios';
13-
import { processInput } from './input.js';
14-
import type { ParsedUrlQuery } from 'node:querystring';
15-
import { parse } from 'node:querystring';
16-
import { getActorAutoLoadingTools } from './tools.js';
17-
import type { Input } from './types.js';
1815

1916
import {
2017
filterSchemaProperties,
@@ -31,15 +28,15 @@ import {
3128
SERVER_VERSION,
3229
USER_AGENT_ORIGIN,
3330
} from './const.js';
31+
import { processInput } from './input.js';
3432
import { log } from './logger.js';
35-
import {
33+
import { getActorAutoLoadingTools,
3634
RemoveActorToolArgsSchema,
3735
AddActorToToolsArgsSchema,
3836
DiscoverActorsArgsSchema,
3937
searchActorsByKeywords,
40-
GetActorDefinition,
41-
} from './tools.js';
42-
import type { ISchemaProperties, Tool } from './types.js';
38+
GetActorDefinition } from './tools.js';
39+
import type { Input, ISchemaProperties, Tool } from './types.js';
4340

4441
/**
4542
* Create Apify MCP server

src/server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export function createServerApp(host: string,
1414

1515
const app = express();
1616

17-
1817
let transport: SSEServerTransport;
1918

2019
app.route(Routes.ROOT)

0 commit comments

Comments
 (0)