@mokoconsulting/mcp-mokogitea-api 1.2.0 → 1.3.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/dist/index.js CHANGED
@@ -1063,48 +1063,39 @@ server.tool('gitea_list_connections', 'List configured Gitea connections', {}, a
1063
1063
  });
1064
1064
  return { content: [{ type: 'text', text: `Configured connections:\n${lines.join('\n')}` }] };
1065
1065
  });
1066
- // ── Manifest ────────────────────────────────────────────────────────────
1067
- server.tool('gitea_manifest_get', 'Get manifest settings for a repository (identity, governance, distribution, build metadata)', {
1066
+ // ── Metadata ────────────────────────────────────────────────────────────
1067
+ server.tool('gitea_metadata_get', 'Get repo metadata (project identity, governance, distribution, build settings)', {
1068
1068
  owner: z.string().describe('Repository owner'),
1069
1069
  repo: z.string().describe('Repository name'),
1070
1070
  ...ConnectionParam,
1071
1071
  }, async ({ owner, repo, connection }) => {
1072
1072
  const c = clientFor(connection);
1073
- return formatResponse(await c.get(`/repos/${owner}/${repo}/manifest`));
1073
+ return formatResponse(await c.get(`/repos/${owner}/${repo}/metadata`));
1074
1074
  });
1075
- server.tool('gitea_manifest_update', 'Update manifest settings for a repository', {
1075
+ server.tool('gitea_metadata_update', 'Update repo metadata settings (merges with existing — only provided fields are changed)', {
1076
1076
  owner: z.string().describe('Repository owner'),
1077
1077
  repo: z.string().describe('Repository name'),
1078
- name: z.string().optional().describe('Project name (Joomla: base element name, e.g. mokowaas)'),
1078
+ name: z.string().optional().describe('Project name'),
1079
1079
  org: z.string().optional().describe('Organization'),
1080
- description: z.string().optional().describe('Project description'),
1081
1080
  version: z.string().optional().describe('Version string (e.g. 06.00.00)'),
1082
1081
  version_prefix: z.string().optional().describe('Tag prefix for version display (e.g. v1.26.1-moko.)'),
1083
- element_name: z.string().optional().describe('Full element name override (e.g. pkg_mokowaas). Auto-constructed from type + name if empty.'),
1084
1082
  license_spdx: z.string().optional().describe('SPDX license identifier'),
1085
- license_name: z.string().optional().describe('Human-readable license name'),
1086
1083
  platform: z.string().optional().describe('Platform (joomla, wordpress, dolibarr, go, mcp, platform, generic)'),
1087
- standards_version: z.string().optional().describe('MokoPlatform standards version'),
1088
- standards_source: z.string().optional().describe('URL to standards repo'),
1089
- display_name: z.string().optional().describe('Human-readable name for update feeds (e.g. Package - MokoWaaS)'),
1090
- maintainer: z.string().optional().describe('Maintainer/author name'),
1091
- maintainer_url: z.string().optional().describe('Maintainer website URL'),
1092
1084
  info_url: z.string().optional().describe('Extension info/product page URL'),
1093
1085
  target_version: z.string().optional().describe('Target platform version regex (e.g. (5|6)\\.*)'),
1094
1086
  php_minimum: z.string().optional().describe('Minimum PHP version (e.g. 8.1)'),
1095
- language: z.string().optional().describe('Primary language (Go, PHP, TypeScript, etc.)'),
1096
- package_type: z.string().optional().describe('Package type (application, library, component, module, plugin, package, template, file)'),
1087
+ package_type: z.string().optional().describe('Extension type (component, module, plugin, package, template, library, file)'),
1097
1088
  entry_point: z.string().optional().describe('Build entry point path'),
1098
1089
  ...ConnectionParam,
1099
1090
  }, async ({ owner, repo, connection, ...fields }) => {
1100
1091
  const c = clientFor(connection);
1101
- const current = await c.get(`/repos/${owner}/${repo}/manifest`);
1092
+ const current = await c.get(`/repos/${owner}/${repo}/metadata`);
1102
1093
  const merged = { ...current.data };
1103
1094
  for (const [k, v] of Object.entries(fields)) {
1104
1095
  if (v !== undefined)
1105
1096
  merged[k] = v;
1106
1097
  }
1107
- return formatResponse(await c.put(`/repos/${owner}/${repo}/manifest`, merged));
1098
+ return formatResponse(await c.put(`/repos/${owner}/${repo}/metadata`, merged));
1108
1099
  });
1109
1100
  // ── Start Server ────────────────────────────────────────────────────────
1110
1101
  async function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mokoconsulting/mcp-mokogitea-api",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "MCP server for Gitea REST API v1 operations",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -1643,11 +1643,11 @@ server.tool(
1643
1643
  },
1644
1644
  );
1645
1645
 
1646
- // ── Manifest ────────────────────────────────────────────────────────────
1646
+ // ── Metadata ────────────────────────────────────────────────────────────
1647
1647
 
1648
1648
  server.tool(
1649
- 'gitea_manifest_get',
1650
- 'Get manifest settings for a repository (identity, governance, distribution, build metadata)',
1649
+ 'gitea_metadata_get',
1650
+ 'Get repo metadata (project identity, governance, distribution, build settings)',
1651
1651
  {
1652
1652
  owner: z.string().describe('Repository owner'),
1653
1653
  repo: z.string().describe('Repository name'),
@@ -1655,46 +1655,37 @@ server.tool(
1655
1655
  },
1656
1656
  async ({ owner, repo, connection }) => {
1657
1657
  const c = clientFor(connection);
1658
- return formatResponse(await c.get(`/repos/${owner}/${repo}/manifest`));
1658
+ return formatResponse(await c.get(`/repos/${owner}/${repo}/metadata`));
1659
1659
  },
1660
1660
  );
1661
1661
 
1662
1662
  server.tool(
1663
- 'gitea_manifest_update',
1664
- 'Update manifest settings for a repository',
1663
+ 'gitea_metadata_update',
1664
+ 'Update repo metadata settings (merges with existing — only provided fields are changed)',
1665
1665
  {
1666
1666
  owner: z.string().describe('Repository owner'),
1667
1667
  repo: z.string().describe('Repository name'),
1668
- name: z.string().optional().describe('Project name (Joomla: base element name, e.g. mokowaas)'),
1668
+ name: z.string().optional().describe('Project name'),
1669
1669
  org: z.string().optional().describe('Organization'),
1670
- description: z.string().optional().describe('Project description'),
1671
1670
  version: z.string().optional().describe('Version string (e.g. 06.00.00)'),
1672
1671
  version_prefix: z.string().optional().describe('Tag prefix for version display (e.g. v1.26.1-moko.)'),
1673
- element_name: z.string().optional().describe('Full element name override (e.g. pkg_mokowaas). Auto-constructed from type + name if empty.'),
1674
1672
  license_spdx: z.string().optional().describe('SPDX license identifier'),
1675
- license_name: z.string().optional().describe('Human-readable license name'),
1676
1673
  platform: z.string().optional().describe('Platform (joomla, wordpress, dolibarr, go, mcp, platform, generic)'),
1677
- standards_version: z.string().optional().describe('MokoPlatform standards version'),
1678
- standards_source: z.string().optional().describe('URL to standards repo'),
1679
- display_name: z.string().optional().describe('Human-readable name for update feeds (e.g. Package - MokoWaaS)'),
1680
- maintainer: z.string().optional().describe('Maintainer/author name'),
1681
- maintainer_url: z.string().optional().describe('Maintainer website URL'),
1682
1674
  info_url: z.string().optional().describe('Extension info/product page URL'),
1683
1675
  target_version: z.string().optional().describe('Target platform version regex (e.g. (5|6)\\.*)'),
1684
1676
  php_minimum: z.string().optional().describe('Minimum PHP version (e.g. 8.1)'),
1685
- language: z.string().optional().describe('Primary language (Go, PHP, TypeScript, etc.)'),
1686
- package_type: z.string().optional().describe('Package type (application, library, component, module, plugin, package, template, file)'),
1677
+ package_type: z.string().optional().describe('Extension type (component, module, plugin, package, template, library, file)'),
1687
1678
  entry_point: z.string().optional().describe('Build entry point path'),
1688
1679
  ...ConnectionParam,
1689
1680
  },
1690
1681
  async ({ owner, repo, connection, ...fields }) => {
1691
1682
  const c = clientFor(connection);
1692
- const current = await c.get(`/repos/${owner}/${repo}/manifest`);
1683
+ const current = await c.get(`/repos/${owner}/${repo}/metadata`);
1693
1684
  const merged = { ...(current.data as Record<string, unknown>) };
1694
1685
  for (const [k, v] of Object.entries(fields)) {
1695
1686
  if (v !== undefined) merged[k] = v;
1696
1687
  }
1697
- return formatResponse(await c.put(`/repos/${owner}/${repo}/manifest`, merged));
1688
+ return formatResponse(await c.put(`/repos/${owner}/${repo}/metadata`, merged));
1698
1689
  },
1699
1690
  );
1700
1691