@pkagentic/mcp 1.4.0
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 +68 -0
- package/dist/handlers/image-generation.d.ts +14 -0
- package/dist/handlers/image-generation.js +77 -0
- package/dist/handlers/image-generation.js.map +1 -0
- package/dist/handlers/index.d.ts +5 -0
- package/dist/handlers/index.js +6 -0
- package/dist/handlers/index.js.map +1 -0
- package/dist/handlers/pk-agent.d.ts +156 -0
- package/dist/handlers/pk-agent.js +500 -0
- package/dist/handlers/pk-agent.js.map +1 -0
- package/dist/handlers/tailwind.d.ts +11 -0
- package/dist/handlers/tailwind.js +93 -0
- package/dist/handlers/tailwind.js.map +1 -0
- package/dist/handlers/utility.d.ts +41 -0
- package/dist/handlers/utility.js +153 -0
- package/dist/handlers/utility.js.map +1 -0
- package/dist/handlers/web-crawler.d.ts +30 -0
- package/dist/handlers/web-crawler.js +101 -0
- package/dist/handlers/web-crawler.js.map +1 -0
- package/dist/handlers.d.ts +234 -0
- package/dist/handlers.js +855 -0
- package/dist/handlers.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +745 -0
- package/dist/index.js.map +1 -0
- package/dist/tools.d.ts +2 -0
- package/dist/tools.js +806 -0
- package/dist/tools.js.map +1 -0
- package/dist/types.d.ts +329 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# PK Agent MCP Server Installation
|
|
2
|
+
|
|
3
|
+
This MCP server provides tools for AI agents (like Claude Desktop) to interact with the **PK Agentic** WordPress plugin via its External Agent API.
|
|
4
|
+
|
|
5
|
+
**Compatible with PK Agentic 1.8+**
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
1. **Node.js** (v18 or newer recommended).
|
|
10
|
+
2. **PK Agentic Plugin** installed and configured on your WordPress site.
|
|
11
|
+
3. **Agent API Enabled** in WordPress (**PK Agentic -> Settings -> Agent API**).
|
|
12
|
+
4. **API Key Generated** in same settings page (**PK Agentic -> Settings -> Agent API**).
|
|
13
|
+
5. **Agent Email** known (the email address assigned to the key during generation).
|
|
14
|
+
|
|
15
|
+
> **Note:** The API Key and Email are required for the MCP server to authenticate with your WordPress site.
|
|
16
|
+
|
|
17
|
+
## Setup Instructions
|
|
18
|
+
|
|
19
|
+
### 1. Install Dependencies
|
|
20
|
+
|
|
21
|
+
Navigate to the `pk-mcp` directory and install dependencies:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
cd pk-mcp
|
|
25
|
+
npm install
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### 2. Add to Claude Desktop (or other MCP Client)
|
|
29
|
+
|
|
30
|
+
To use this with Claude Desktop, edit your `claude_desktop_config.json`:
|
|
31
|
+
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
32
|
+
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
33
|
+
|
|
34
|
+
Add the following configuration, making sure to provide your actual WordPress site details in the `env` section:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"mcpServers": {
|
|
39
|
+
"pk-agent": {
|
|
40
|
+
"command": "node",
|
|
41
|
+
"args": [
|
|
42
|
+
"/Users/YOUR_USER/path/to/pk-agentic/pk-mcp/dist/index.js"
|
|
43
|
+
],
|
|
44
|
+
"env": {
|
|
45
|
+
"PK_AGENT_API_URL": "https://your-wordpress-site.com/wp-json/pk-agentic/v1/agent/",
|
|
46
|
+
"PK_AGENT_KEY": "pk_agent_your_generated_key_here",
|
|
47
|
+
"PK_AGENT_EMAIL": "your-email@example.com",
|
|
48
|
+
"GEMINI_API_KEY": "your_gemini_api_key_here",
|
|
49
|
+
"GEMINI_MODEL": "gemini-3-pro-image-preview"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
> **Note:** Make sure to use the absolute path to `dist/index.js`. After updating the config, restart Claude Desktop to activate the tools.
|
|
57
|
+
|
|
58
|
+
## Configuration Parameters
|
|
59
|
+
|
|
60
|
+
When configuring this MCP server in your AI agent, you will need the following parameters from your WordPress site:
|
|
61
|
+
|
|
62
|
+
| Parameter | Environment Variable | Description |
|
|
63
|
+
|-----------|----------------------|-------------|
|
|
64
|
+
| **API URL** | `PK_AGENT_API_URL` | The URL of the PK Agentic API (e.g., `https://example.com/wp-json/pk-agentic/v1/agent/`). |
|
|
65
|
+
| **Agent Key** | `PK_AGENT_KEY` | The secret key generated in **PK Agentic -> Security -> Agent Keys**. Starts with `pk_agent_`. |
|
|
66
|
+
| **Agent Email** | `PK_AGENT_EMAIL` | The email address associated with the Agent Key. Required for authentication. |
|
|
67
|
+
| **Gemini API Key** | `GEMINI_API_KEY` | **Optional.** Required for the `generate_image` tool. Get one at [aistudio.google.com](https://aistudio.google.com/). |
|
|
68
|
+
| **Gemini Model** | `GEMINI_MODEL` | **Optional.** The model ID to use for image generation. Defaults to `gemini-3-pro-image-preview`. |
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GenerateImageArgs } from "../types.js";
|
|
2
|
+
export declare class ImageGenerationApi {
|
|
3
|
+
private client;
|
|
4
|
+
private modelId;
|
|
5
|
+
constructor(apiKey?: string, modelId?: string);
|
|
6
|
+
generateImage(args: GenerateImageArgs): Promise<{
|
|
7
|
+
success: boolean;
|
|
8
|
+
message: string;
|
|
9
|
+
file_path: string;
|
|
10
|
+
image_name: string;
|
|
11
|
+
page_name: string;
|
|
12
|
+
model: string;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import fs from "fs";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { GoogleGenAI } from "@google/genai";
|
|
4
|
+
export class ImageGenerationApi {
|
|
5
|
+
client;
|
|
6
|
+
modelId;
|
|
7
|
+
constructor(apiKey, modelId) {
|
|
8
|
+
this.modelId = modelId || "gemini-3-pro-image-preview";
|
|
9
|
+
if (apiKey) {
|
|
10
|
+
this.client = new GoogleGenAI({ apiKey, apiVersion: "v1beta" });
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
async generateImage(args) {
|
|
14
|
+
if (!this.client) {
|
|
15
|
+
throw new Error("GEMINI_API_KEY is not set. Please set it in your MCP configuration (e.g., in claude_desktop_config.json or .env file) and restart the server.");
|
|
16
|
+
}
|
|
17
|
+
const { prompt_path, image_name, page_name, aspect_ratio = "1:1" } = args;
|
|
18
|
+
// 1. Read prompt from file
|
|
19
|
+
if (!fs.existsSync(prompt_path)) {
|
|
20
|
+
throw new Error(`Prompt file not found at ${prompt_path}. Please create it first.`);
|
|
21
|
+
}
|
|
22
|
+
const prompt = fs.readFileSync(prompt_path, "utf-8").trim();
|
|
23
|
+
try {
|
|
24
|
+
// 2. Call Gemini SDK (Nano Banana Pro)
|
|
25
|
+
// Gemini 3 models support native image generation via generateContent
|
|
26
|
+
const response = await this.client.models.generateContent({
|
|
27
|
+
model: this.modelId,
|
|
28
|
+
contents: prompt,
|
|
29
|
+
config: {
|
|
30
|
+
imageConfig: { aspectRatio: aspect_ratio },
|
|
31
|
+
responseModalities: ["IMAGE"]
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
if (!response.candidates || response.candidates.length === 0) {
|
|
35
|
+
throw new Error("No candidates returned from Gemini API.");
|
|
36
|
+
}
|
|
37
|
+
const parts = response.candidates[0].content?.parts;
|
|
38
|
+
if (!parts) {
|
|
39
|
+
throw new Error("No parts found in the response. The model might have been blocked by safety filters.");
|
|
40
|
+
}
|
|
41
|
+
let base64Data;
|
|
42
|
+
let mimeType = "image/png";
|
|
43
|
+
for (const part of parts) {
|
|
44
|
+
if (part.inlineData) {
|
|
45
|
+
base64Data = part.inlineData.data;
|
|
46
|
+
mimeType = part.inlineData.mimeType || "image/png";
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (!base64Data) {
|
|
51
|
+
throw new Error("No image data found in the response parts. The model might have returned text instead.");
|
|
52
|
+
}
|
|
53
|
+
const extension = mimeType.split("/")[1] || "png";
|
|
54
|
+
// 3. Save image to folder
|
|
55
|
+
const outputDir = path.join("workspace", "generated-images");
|
|
56
|
+
if (!fs.existsSync(outputDir)) {
|
|
57
|
+
fs.mkdirSync(outputDir, { recursive: true });
|
|
58
|
+
}
|
|
59
|
+
const fileName = `${image_name}.${extension}`;
|
|
60
|
+
const outputPath = path.join(outputDir, fileName);
|
|
61
|
+
fs.writeFileSync(outputPath, Buffer.from(base64Data, "base64"));
|
|
62
|
+
return {
|
|
63
|
+
success: true,
|
|
64
|
+
message: `Image generated using Nano Banana Pro and saved to ${outputPath}`,
|
|
65
|
+
file_path: outputPath,
|
|
66
|
+
image_name: fileName,
|
|
67
|
+
page_name: page_name,
|
|
68
|
+
model: this.modelId
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
const errorMessage = error.message || "Unknown error occurred during image generation.";
|
|
73
|
+
throw new Error(`Gemini SDK Error: ${errorMessage}`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=image-generation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-generation.js","sourceRoot":"","sources":["../../src/handlers/image-generation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,MAAM,OAAO,kBAAkB;IACrB,MAAM,CAA0B;IAChC,OAAO,CAAS;IAExB,YAAY,MAAe,EAAE,OAAgB;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,4BAA4B,CAAC;QACvD,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CA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pB,KAAK,EAAE,IAAI,CAAC,OAAO;aACpB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,IAAI,iDAAiD,CAAC;YACxF,MAAM,IAAI,KAAK,CAAC,qBAAqB,YAAY,EAAE,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { PKAgentApi } from "./pk-agent.js";
|
|
2
|
+
export { UtilityApi } from "./utility.js";
|
|
3
|
+
export { WebCrawlerApi } from "./web-crawler.js";
|
|
4
|
+
export { ImageGenerationApi } from "./image-generation.js";
|
|
5
|
+
export { TailwindApi } from "./tailwind.js";
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/handlers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { SyncArgs, GetFileArgs, GetFilesBatchArgs, SaveItemArgs, PublishItemArgs, CreateItemArgs, ToggleItemArgs, UpdateConditionsArgs, UpdateMetadataArgs, DeleteItemArgs, GetRevisionsArgs, RestoreRevisionArgs, SearchContentsArgs, MarkContentEditArgs, SearchMediaArgs, UploadMediaArgs, GetImageSrcsetArgs, ListLibrariesArgs, CreateLibraryArgs, UpdateLibraryArgs, DeleteLibraryArgs, SearchLibrariesArgs, GetLibraryArgs, CdnDownloadLibraryArgs, SaveLibraryFilesArgs, RestoreLibraryBackupArgs, UpdateLibraryConditionsArgs, ToggleLibraryArgs, ToggleLibraryLockArgs } from "../types.js";
|
|
2
|
+
export declare class PKAgentApi {
|
|
3
|
+
private axiosInstance;
|
|
4
|
+
constructor(baseURL: string, key: string, email: string);
|
|
5
|
+
/**
|
|
6
|
+
* Ensure a directory exists and write JSON content to a file.
|
|
7
|
+
*/
|
|
8
|
+
private writeJsonFile;
|
|
9
|
+
/**
|
|
10
|
+
* Write downloaded code fields (html/css/js) from an API item to the
|
|
11
|
+
* correct workspace sub-directory derived from the item's virtual_path.
|
|
12
|
+
*
|
|
13
|
+
* Layout:
|
|
14
|
+
* template → workspace/templates/{slug}/{slug}.php .css .js
|
|
15
|
+
* script → workspace/scripts/{slug}/{slug}.php .css .js
|
|
16
|
+
* content → workspace/contents/{vp_parts}/{slug}.html .css .js
|
|
17
|
+
*
|
|
18
|
+
* Returns relative paths of every file that was written.
|
|
19
|
+
*/
|
|
20
|
+
private writeItemFiles;
|
|
21
|
+
private readFileContent;
|
|
22
|
+
getSiteInfo(): Promise<{
|
|
23
|
+
success: boolean;
|
|
24
|
+
message: string;
|
|
25
|
+
file_written: string;
|
|
26
|
+
summary: {
|
|
27
|
+
site_name: any;
|
|
28
|
+
site_url: any;
|
|
29
|
+
plugin_version: any;
|
|
30
|
+
wordpress_version: any;
|
|
31
|
+
php_version: any;
|
|
32
|
+
batch_file_limit: any;
|
|
33
|
+
css_framework: any;
|
|
34
|
+
timezone: any;
|
|
35
|
+
language: any;
|
|
36
|
+
theme: any;
|
|
37
|
+
permissions: any;
|
|
38
|
+
menu_locations: any;
|
|
39
|
+
};
|
|
40
|
+
}>;
|
|
41
|
+
syncItems(args: SyncArgs): Promise<{
|
|
42
|
+
success: boolean;
|
|
43
|
+
message: string;
|
|
44
|
+
file_written: string;
|
|
45
|
+
summary: {
|
|
46
|
+
page: any;
|
|
47
|
+
per_page: any;
|
|
48
|
+
total_items: any;
|
|
49
|
+
total_pages: any;
|
|
50
|
+
has_more: any;
|
|
51
|
+
items_on_page: {
|
|
52
|
+
templates: any;
|
|
53
|
+
scripts: any;
|
|
54
|
+
content: any;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
getFile(args: GetFileArgs): Promise<{
|
|
59
|
+
success: boolean;
|
|
60
|
+
partial_download: boolean;
|
|
61
|
+
message: string;
|
|
62
|
+
metadata: {
|
|
63
|
+
id: any;
|
|
64
|
+
type: any;
|
|
65
|
+
slug: any;
|
|
66
|
+
virtual_path: any;
|
|
67
|
+
download_type: any;
|
|
68
|
+
total_lines: any;
|
|
69
|
+
line_range: any;
|
|
70
|
+
is_locked?: undefined;
|
|
71
|
+
status?: undefined;
|
|
72
|
+
description?: undefined;
|
|
73
|
+
document_content?: undefined;
|
|
74
|
+
};
|
|
75
|
+
content: {
|
|
76
|
+
js?: any;
|
|
77
|
+
css?: any;
|
|
78
|
+
html?: any;
|
|
79
|
+
};
|
|
80
|
+
files_written?: undefined;
|
|
81
|
+
files_count?: undefined;
|
|
82
|
+
} | {
|
|
83
|
+
success: boolean;
|
|
84
|
+
message: string;
|
|
85
|
+
files_written: string[];
|
|
86
|
+
files_count: number;
|
|
87
|
+
metadata: {
|
|
88
|
+
id: any;
|
|
89
|
+
type: any;
|
|
90
|
+
slug: any;
|
|
91
|
+
virtual_path: any;
|
|
92
|
+
is_locked: any;
|
|
93
|
+
status: any;
|
|
94
|
+
download_type: any;
|
|
95
|
+
total_lines: any;
|
|
96
|
+
description: any;
|
|
97
|
+
document_content: any;
|
|
98
|
+
line_range?: undefined;
|
|
99
|
+
};
|
|
100
|
+
partial_download?: undefined;
|
|
101
|
+
content?: undefined;
|
|
102
|
+
}>;
|
|
103
|
+
getFilesBatch(args: GetFilesBatchArgs): Promise<{
|
|
104
|
+
success: boolean;
|
|
105
|
+
message: string;
|
|
106
|
+
items_downloaded: number;
|
|
107
|
+
total_files_written: number;
|
|
108
|
+
items: any[];
|
|
109
|
+
}>;
|
|
110
|
+
getTemplateInfo(id: number): Promise<any>;
|
|
111
|
+
getScriptInfo(id: number): Promise<any>;
|
|
112
|
+
getContentInfo(id: number): Promise<any>;
|
|
113
|
+
saveItem(args: SaveItemArgs): Promise<any>;
|
|
114
|
+
publishItem(args: PublishItemArgs): Promise<any>;
|
|
115
|
+
createItem(args: CreateItemArgs): Promise<any>;
|
|
116
|
+
toggleItem(args: ToggleItemArgs): Promise<any>;
|
|
117
|
+
updateConditions(args: UpdateConditionsArgs): Promise<any>;
|
|
118
|
+
updateMetadata(args: UpdateMetadataArgs): Promise<any>;
|
|
119
|
+
deleteItem(args: DeleteItemArgs): Promise<any>;
|
|
120
|
+
getRevisions(args: GetRevisionsArgs): Promise<any>;
|
|
121
|
+
restoreRevision(args: RestoreRevisionArgs): Promise<any>;
|
|
122
|
+
searchContents(args: SearchContentsArgs): Promise<any>;
|
|
123
|
+
markContentEdit(args: MarkContentEditArgs): Promise<any>;
|
|
124
|
+
searchMedia(args: SearchMediaArgs): Promise<any>;
|
|
125
|
+
uploadMedia(args: UploadMediaArgs): Promise<any>;
|
|
126
|
+
getImageSrcset(args: GetImageSrcsetArgs): Promise<any>;
|
|
127
|
+
getAgentGuide(guide: string): Promise<{
|
|
128
|
+
success: boolean;
|
|
129
|
+
message: string;
|
|
130
|
+
guide: string;
|
|
131
|
+
version: string;
|
|
132
|
+
file_written: string;
|
|
133
|
+
absolute_path: string;
|
|
134
|
+
}>;
|
|
135
|
+
getRoles(): Promise<any>;
|
|
136
|
+
getTailwindConfig(): Promise<any>;
|
|
137
|
+
updateTailwindConfig(args: any): Promise<any>;
|
|
138
|
+
listLibraries(args: ListLibrariesArgs): Promise<{
|
|
139
|
+
success: boolean;
|
|
140
|
+
message: string;
|
|
141
|
+
file_written: string;
|
|
142
|
+
data: any;
|
|
143
|
+
pagination: any;
|
|
144
|
+
}>;
|
|
145
|
+
createLibrary(args: CreateLibraryArgs): Promise<any>;
|
|
146
|
+
updateLibrary(args: UpdateLibraryArgs): Promise<any>;
|
|
147
|
+
deleteLibrary(args: DeleteLibraryArgs): Promise<any>;
|
|
148
|
+
searchLibraries(args: SearchLibrariesArgs): Promise<any>;
|
|
149
|
+
getLibrary(args: GetLibraryArgs): Promise<any>;
|
|
150
|
+
cdnDownloadLibrary(args: CdnDownloadLibraryArgs): Promise<any>;
|
|
151
|
+
saveLibraryFiles(args: SaveLibraryFilesArgs): Promise<any>;
|
|
152
|
+
restoreLibraryBackup(args: RestoreLibraryBackupArgs): Promise<any>;
|
|
153
|
+
updateLibraryConditions(args: UpdateLibraryConditionsArgs): Promise<any>;
|
|
154
|
+
toggleLibrary(args: ToggleLibraryArgs): Promise<any>;
|
|
155
|
+
toggleLibraryLock(args: ToggleLibraryLockArgs): Promise<any>;
|
|
156
|
+
}
|