@kontent-ai/mcp-server 0.4.0 → 0.4.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Kontent s.r.o.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Kontent.ai MCP Server
2
2
 
3
+ [![NPM Version][npm-shield]][npm-url]
4
+ [![Contributors][contributors-shield]][contributors-url]
5
+ [![Forks][forks-shield]][forks-url]
6
+ [![Stargazers][stars-shield]][stars-url]
7
+ [![Issues][issues-shield]][issues-url]
8
+ [![MIT License][license-shield]][license-url]
9
+ [![Discord][discord-shield]][discord-url]
10
+
3
11
  This server provides a Model Context Protocol (MCP) interface for interacting with Kontent.ai's Management and Delivery APIs. It enables AI assistants to access and manipulate Kontent.ai content using standardized tools.
4
12
 
5
13
  ## Features
@@ -98,4 +106,19 @@ npm run start:stdio # For STDIO transport
98
106
 
99
107
  ## License
100
108
 
101
- MIT
109
+ MIT
110
+
111
+ [contributors-shield]: https://img.shields.io/github/contributors/kontent-ai/mcp-server.svg?style=for-the-badge
112
+ [contributors-url]: https://github.com/kontent-ai/mcp-server/graphs/contributors
113
+ [forks-shield]: https://img.shields.io/github/forks/kontent-ai/mcp-server.svg?style=for-the-badge
114
+ [forks-url]: https://github.com/kontent-ai/mcp-server/network/members
115
+ [stars-shield]: https://img.shields.io/github/stars/kontent-ai/mcp-server.svg?style=for-the-badge
116
+ [stars-url]: https://github.com/kontent-ai/mcp-server/stargazers
117
+ [issues-shield]: https://img.shields.io/github/issues/kontent-ai/mcp-server.svg?style=for-the-badge
118
+ [issues-url]: https://github.com/kontent-ai/mcp-server/issues
119
+ [license-shield]: https://img.shields.io/github/license/kontent-ai/mcp-server.svg?style=for-the-badge
120
+ [license-url]: https://github.com/kontent-ai/mcp-server/blob/master/LICENSE.md
121
+ [discord-shield]: https://img.shields.io/discord/821885171984891914?color=%237289DA&label=Kontent.ai%20Discord&logo=discord&style=for-the-badge
122
+ [discord-url]: https://discord.com/invite/SKCxwPtevJ
123
+ [npm-url]: https://www.npmjs.com/package/@kontent-ai/mcp-server
124
+ [npm-shield]: https://img.shields.io/npm/v/%40kontent-ai%2Fmcp-server?style=for-the-badge&logo=npm&color=%23CB0000
@@ -1,9 +1,6 @@
1
1
  import { createManagementClient } from '@kontent-ai/management-sdk';
2
- import { readFileSync } from 'node:fs';
3
- import { join } from 'node:path';
4
- const packageJsonPath = join(import.meta.dirname, '../../package.json');
5
- const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
6
- const sourceTrackingHeaderName = 'X-KC-SOURCE';
2
+ import packageJson from "../../package.json" with { type: "json" };
3
+ const sourceTrackingHeaderName = "X-KC-SOURCE";
7
4
  /**
8
5
  * Creates a Kontent.ai Management API client
9
6
  * @param environmentId Optional environment ID (defaults to process.env.KONTENT_ENVIRONMENT_ID)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontent-ai/mcp-server",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "tsc",