@rankcli/mcp-server 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/dist/chunk-JSSECRCS.js +684 -0
- package/dist/index.js +13 -683
- package/dist/server.d.ts +29 -0
- package/dist/server.js +12 -0
- package/package.json +14 -4
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
|
+
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Shared, stateless SEO/GEO analysis tools - the part of the RankCLI MCP
|
|
6
|
+
* server that's safe to run anywhere, local stdio process or a shared
|
|
7
|
+
* remote HTTP endpoint, since none of it touches per-user local state.
|
|
8
|
+
* rankcli_connect/rankcli_disconnect (which read/write a local Conf file)
|
|
9
|
+
* stay in index.ts, exclusive to the local stdio server - a shared remote
|
|
10
|
+
* instance can't safely do per-user "connect this session to your account"
|
|
11
|
+
* via local file storage.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
declare function fetchHtml(url: string): Promise<string>;
|
|
15
|
+
declare const ANALYSIS_TOOLS: Tool[];
|
|
16
|
+
/**
|
|
17
|
+
* Handles a single analysis tool call. Returns undefined if `name` isn't
|
|
18
|
+
* one of ANALYSIS_TOOLS, so callers (index.ts's stdio server) can fall
|
|
19
|
+
* through to their own additional tools.
|
|
20
|
+
*/
|
|
21
|
+
declare function handleAnalysisTool(name: string, args: Record<string, unknown> | undefined): Promise<CallToolResult | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* A fresh Server exposing only the stateless analysis tools - used by the
|
|
24
|
+
* remote HTTP endpoint, one instance per request (see packages/audit-worker),
|
|
25
|
+
* matching the MCP SDK's own stateless-server example.
|
|
26
|
+
*/
|
|
27
|
+
declare function createAnalysisServer(): Server;
|
|
28
|
+
|
|
29
|
+
export { ANALYSIS_TOOLS, createAnalysisServer, fetchHtml, handleAnalysisTool };
|
package/dist/server.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rankcli/mcp-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"mcpName": "io.github.integrallis/rankcli-mcp-server",
|
|
5
5
|
"description": "Free, local SEO + GEO (AI-search-citation) analysis for AI assistants - audits GEO/AI-crawler access, Core Web Vitals, structured data, security headers, mobile, and images with no signup or API key.",
|
|
6
6
|
"type": "module",
|
|
@@ -9,9 +9,19 @@
|
|
|
9
9
|
"bin": {
|
|
10
10
|
"rankcli-mcp": "./dist/index.js"
|
|
11
11
|
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./server": {
|
|
18
|
+
"types": "./dist/server.d.ts",
|
|
19
|
+
"import": "./dist/server.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
12
22
|
"scripts": {
|
|
13
|
-
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
14
|
-
"dev": "tsup src/index.ts --format esm --watch",
|
|
23
|
+
"build": "tsup src/index.ts src/server.ts --format esm --dts --clean",
|
|
24
|
+
"dev": "tsup src/index.ts src/server.ts --format esm --watch",
|
|
15
25
|
"typecheck": "tsc --noEmit",
|
|
16
26
|
"test": "echo 'No tests yet'",
|
|
17
27
|
"prepublishOnly": "npm run build"
|
|
@@ -41,7 +51,7 @@
|
|
|
41
51
|
},
|
|
42
52
|
"dependencies": {
|
|
43
53
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
44
|
-
"@rankcli/agent-runtime": "^0.0.
|
|
54
|
+
"@rankcli/agent-runtime": "^0.0.20",
|
|
45
55
|
"conf": "^12.0.0"
|
|
46
56
|
},
|
|
47
57
|
"devDependencies": {
|