chore: rebrand mokowaas→mokosuite (content) #23
@@ -73,7 +73,7 @@ joomla-api-mcp wraps the entire Joomla Web Services REST API into MCP tools that
|
||||
| Repo | Purpose |
|
||||
|------|---------|
|
||||
| [backup-mcp](https://git.mokoconsulting.tech/MokoConsulting/backup-mcp/wiki) | Backup MCP (uses Joomla API for Akeeba) |
|
||||
| [MokoWaaS](https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS/wiki) | Joomla WaaS system plugin |
|
||||
| [MokoSuite](https://git.mokoconsulting.tech/MokoConsulting/MokoSuite/wiki) | Joomla WaaS system plugin |
|
||||
| [Template-Client-WaaS](https://git.mokoconsulting.tech/MokoConsulting/Template-Client-WaaS/wiki) | Client site template |
|
||||
| [MokoOnyx](https://git.mokoconsulting.tech/MokoConsulting/MokoOnyx/wiki) | Joomla admin template |
|
||||
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@mokoconsulting/mcp-mokowaas-api",
|
||||
"name": "@mokoconsulting/mcp-mokosuite-api",
|
||||
"version": "1.0.0",
|
||||
"description": "MCP server for Joomla Web Services API operations",
|
||||
"type": "module",
|
||||
@@ -30,6 +30,6 @@
|
||||
"author": "Moko Consulting <hello@mokoconsulting.tech>",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.mokoconsulting.tech/MokoConsulting/mcp-mokowaas-api.git"
|
||||
"url": "https://git.mokoconsulting.tech/MokoConsulting/mcp-mokosuite-api.git"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import { resolve } from 'node:path';
|
||||
import { homedir } from 'node:os';
|
||||
import type { JoomlaConfig, JoomlaConnection } from './types.js';
|
||||
|
||||
const CONFIG_FILENAME = '.mcp_mokowaas.json';
|
||||
const CONFIG_FILENAME = '.mcp_mokosuite.json';
|
||||
|
||||
export async function loadConfig(): Promise<JoomlaConfig> {
|
||||
const config_path = process.env.JOOMLA_API_MCP_CONFIG
|
||||
|
||||
+12
-12
@@ -241,7 +241,7 @@ server.tool(
|
||||
},
|
||||
);
|
||||
|
||||
// ── Users ───────────────────────────────────────────────────────────────
|
||||
// ── Users ──────────────────────────────────────────────────────────────
|
||||
|
||||
server.tool(
|
||||
'joomla_users_list',
|
||||
@@ -347,7 +347,7 @@ server.tool(
|
||||
},
|
||||
);
|
||||
|
||||
// ── User Groups ─────────────────────────────────────────────────────────
|
||||
// ── User Groups ─────────────────────────────────────────────────────
|
||||
|
||||
server.tool(
|
||||
'joomla_user_groups_list',
|
||||
@@ -493,7 +493,7 @@ server.tool(
|
||||
},
|
||||
);
|
||||
|
||||
// ── Custom Fields ───────────────────────────────────────────────────────
|
||||
// ── Custom Fields ───────────────────────────────────────────────────
|
||||
|
||||
server.tool(
|
||||
'joomla_fields_list',
|
||||
@@ -526,7 +526,7 @@ server.tool(
|
||||
},
|
||||
);
|
||||
|
||||
// ── Banners ─────────────────────────────────────────────────────────────
|
||||
// ── Banners ────────────────────────────────────────────────────────────
|
||||
|
||||
server.tool(
|
||||
'joomla_banners_list',
|
||||
@@ -1088,7 +1088,7 @@ server.tool(
|
||||
},
|
||||
);
|
||||
|
||||
// ── Checkin ─────────────────────────────────────────────────────────────
|
||||
// ── Checkin ──────────────────────────────────────────────────────────────
|
||||
|
||||
server.tool(
|
||||
'joomla_checkin',
|
||||
@@ -1104,7 +1104,7 @@ server.tool(
|
||||
},
|
||||
);
|
||||
|
||||
// ── Redirects ───────────────────────────────────────────────────────────
|
||||
// ── Redirects ─────────────────────────────────────────────────────────────
|
||||
|
||||
server.tool(
|
||||
'joomla_redirects_list',
|
||||
@@ -1205,14 +1205,14 @@ server.tool(
|
||||
|
||||
server.tool(
|
||||
'joomla_health_check',
|
||||
'Call the MokoWaaS health endpoint (/?mokowaas=health) on a connected site',
|
||||
'Call the MokoSuite health endpoint (/?mokosuite=health) on a connected site',
|
||||
{
|
||||
token: z.string().describe('Health API bearer token'),
|
||||
...ConnectionParam,
|
||||
},
|
||||
async ({ token, connection }) => {
|
||||
const conn = getConnection(config, connection);
|
||||
const url = conn.baseUrl.replace(/\/+$/, '') + '/?mokowaas=health';
|
||||
const url = conn.baseUrl.replace(/\/+$/, '') + '/?mokosuite=health';
|
||||
try {
|
||||
const res = await fetch(url, {
|
||||
headers: { 'Authorization': `Bearer ${token}` },
|
||||
@@ -1232,7 +1232,7 @@ server.tool(
|
||||
|
||||
server.tool(
|
||||
'joomla_heartbeat_status',
|
||||
'Check if a site is registered with the MokoWaaS heartbeat receiver',
|
||||
'Check if a site is registered with the MokoSuite heartbeat receiver',
|
||||
{
|
||||
site_url: z.string().describe('Site URL to check'),
|
||||
...ConnectionParam,
|
||||
@@ -1244,7 +1244,7 @@ server.tool(
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-MokoWaaS-Key': 'moko-waas-hb-2026-x9k4m',
|
||||
'X-MokoSuite-Key': 'moko-waas-hb-2026-x9k4m',
|
||||
},
|
||||
body: JSON.stringify({ site_url }),
|
||||
signal: AbortSignal.timeout(10000),
|
||||
@@ -1283,7 +1283,7 @@ server.tool(
|
||||
formatResponse(await clientFor(connection).get('/config/application')),
|
||||
);
|
||||
|
||||
// ── Connections Management ──────────────────────────────────────────────
|
||||
// ── Connections Management ─────────────────────────────────────────────────
|
||||
|
||||
server.tool(
|
||||
'joomla_list_connections',
|
||||
@@ -1300,7 +1300,7 @@ server.tool(
|
||||
},
|
||||
);
|
||||
|
||||
// ── Start Server ────────────────────────────────────────────────────────
|
||||
// ── Start Server ────────────────────────────────────────────────────
|
||||
|
||||
async function main(): Promise<void> {
|
||||
config = await loadConfig();
|
||||
|
||||
Reference in New Issue
Block a user