@kkauto/kkauto-mcp 0.3.3 → 0.3.4
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 +33 -10
- package/dist/server.js +1 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# kkAuto MCP Adapter
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@kkauto/kkauto-mcp` connects MCP-compatible AI clients to kkAuto automation services at `https://kkauto.net`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
It runs as a local stdio MCP server and turns AI tool calls into authenticated kkAuto API v2 requests. Use it to operate tenant-scoped social-media automation workflows from AI clients, including source-post intake, source workflow claiming, source crawler management, and Facebook post operations.
|
|
6
|
+
|
|
7
|
+
The adapter stays thin by design: it uses the same `/api/v2/*` routes as normal kkAuto clients, works with compatible tenant/selfhost deployments, and never writes directly to the database.
|
|
6
8
|
|
|
7
9
|
## Supported Scope
|
|
8
10
|
|
|
@@ -17,11 +19,11 @@ This package is the MCP bridge for `kkauto.net` social-media automation services
|
|
|
17
19
|
- Node.js 20 or newer.
|
|
18
20
|
- Active kkAuto API token from `/wtadmin/mcp` or `/wtadmin/token?type=api`.
|
|
19
21
|
- Tenant-aware base URL for SaaS, or the selfhost app base URL.
|
|
20
|
-
- npm/npx access to `@kkauto/kkauto-mcp@0.3.
|
|
22
|
+
- npm/npx access to `@kkauto/kkauto-mcp@0.3.4` after publish, or a local checkout for development.
|
|
21
23
|
|
|
22
24
|
## Client Setup With npx
|
|
23
25
|
|
|
24
|
-
The package release target is `@kkauto/kkauto-mcp@0.3.
|
|
26
|
+
The package release target is `@kkauto/kkauto-mcp@0.3.4`, so MCP clients can run it with `npx` without copying the website repository after publish:
|
|
25
27
|
|
|
26
28
|
Recommended setup:
|
|
27
29
|
|
|
@@ -110,9 +112,9 @@ With `npx`, the MCP client machine only needs Node.js/npm plus access to the pac
|
|
|
110
112
|
Prepared package release:
|
|
111
113
|
|
|
112
114
|
- Name: `@kkauto/kkauto-mcp`
|
|
113
|
-
- Version: `0.3.
|
|
115
|
+
- Version: `0.3.4`
|
|
114
116
|
- Binary: `kkauto-mcp -> dist/server.js`
|
|
115
|
-
- Expected tarball after publish: `https://registry.npmjs.org/@kkauto/kkauto-mcp/-/kkauto-mcp-0.3.
|
|
117
|
+
- Expected tarball after publish: `https://registry.npmjs.org/@kkauto/kkauto-mcp/-/kkauto-mcp-0.3.4.tgz`
|
|
116
118
|
|
|
117
119
|
Package settings:
|
|
118
120
|
|
|
@@ -127,23 +129,44 @@ npm view @kkauto/kkauto-mcp version
|
|
|
127
129
|
npm view @kkauto/kkauto-mcp bin dist.tarball
|
|
128
130
|
```
|
|
129
131
|
|
|
130
|
-
|
|
132
|
+
### Trusted Publisher
|
|
133
|
+
|
|
134
|
+
Future releases should publish through GitHub Actions Trusted Publisher instead of long-lived npm tokens. Configure npmjs.com package settings for `@kkauto/kkauto-mcp`:
|
|
135
|
+
|
|
136
|
+
| Field | Value |
|
|
137
|
+
| --- | --- |
|
|
138
|
+
| Provider | GitHub Actions |
|
|
139
|
+
| Organization or user | `vthuan1889` |
|
|
140
|
+
| Repository | `kk-website` |
|
|
141
|
+
| Workflow filename | `npm-publish-mcp.yml` |
|
|
142
|
+
| Environment name | blank |
|
|
143
|
+
| Allowed actions | `npm publish` |
|
|
144
|
+
|
|
145
|
+
The repo-side workflow is `.github/workflows/npm-publish-mcp.yml`. It uses GitHub-hosted runners, `permissions.id-token: write`, Node 24, and installs npm 11 because Trusted Publisher requires npm 11.5.1+ so npm can exchange the OIDC token automatically. Trusted Publisher releases do not need `NODE_AUTH_TOKEN` or an OTP in GitHub Actions.
|
|
146
|
+
|
|
147
|
+
Release-triggered publishes require publishing a GitHub Release whose tag starts with `mcp-v`, for example `mcp-v0.3.4`. Pushing a tag alone does not publish. The release tag must match the package version as `mcp-v<version>`, and the workflow refuses to publish if that package version already exists on npm. Manual workflow dispatch is also available from `main` only and requires confirming `@kkauto/kkauto-mcp` as the publish target.
|
|
148
|
+
|
|
149
|
+
After one successful OIDC publish, prefer npm package settings that require 2FA and disallow token publishing.
|
|
150
|
+
|
|
151
|
+
Trusted Publisher release flow:
|
|
131
152
|
|
|
132
153
|
```bash
|
|
133
154
|
cd mcp
|
|
134
155
|
npm install
|
|
156
|
+
npm version patch --no-git-tag-version
|
|
135
157
|
npm test
|
|
136
158
|
npm pack --dry-run
|
|
137
|
-
npm publish --access public
|
|
138
159
|
```
|
|
139
160
|
|
|
140
|
-
|
|
161
|
+
Commit the version bump, push to `main`, then publish a GitHub Release tagged `mcp-v<version>`. The workflow installs dependencies, tests, dry-runs the package, and runs `npm publish --access public` via OIDC.
|
|
162
|
+
|
|
163
|
+
Legacy package status: the old unscoped package remains installable and `kkauto-mcp<=0.3.2` is deprecated with migration guidance. To correct that deprecation message if needed:
|
|
141
164
|
|
|
142
165
|
```bash
|
|
143
166
|
npm deprecate kkauto-mcp@"<=0.3.2" "Package moved to @kkauto/kkauto-mcp. Use: npx -y @kkauto/kkauto-mcp"
|
|
144
167
|
```
|
|
145
168
|
|
|
146
|
-
For the next release after `0.3.
|
|
169
|
+
For the next release after `0.3.4`, bump the package version first, then publish.
|
|
147
170
|
|
|
148
171
|
Use `npm publish --registry <private-registry-url>` for a private registry.
|
|
149
172
|
|
package/dist/server.js
CHANGED
|
@@ -13,7 +13,7 @@ async function main() {
|
|
|
13
13
|
const client = new KkAutoApiClient(config);
|
|
14
14
|
const server = new McpServer({
|
|
15
15
|
name: 'kkauto-mcp',
|
|
16
|
-
version: '0.3.
|
|
16
|
+
version: '0.3.4',
|
|
17
17
|
});
|
|
18
18
|
registerFbPostTools(server, client, config);
|
|
19
19
|
registerSourcePostTools(server, client, config);
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kkauto/kkauto-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MCP stdio adapter for kkAuto API v2 content tools.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/vthuan1889/kk-website.git",
|
|
9
|
+
"directory": "mcp"
|
|
10
|
+
},
|
|
6
11
|
"main": "dist/server.js",
|
|
7
12
|
"bin": {
|
|
8
13
|
"kkauto-mcp": "dist/server.js"
|