Skip to content

Commit a3427fe

Browse files
chore: configure new SDK language
1 parent 1967acf commit a3427fe

12 files changed

Lines changed: 275 additions & 27 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 47
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-70c42eda2bee929830b2537f758400a58dded1f1ef5686a286e2469c35a041a0.yml
33
openapi_spec_hash: cdaeed824e91657b45092765cf55eb42
4-
config_hash: 83967503e501e4199b4042d0d0f2b615
4+
config_hash: 2a6f67c966b8b3db6f986be4ac23a507

packages/mcp-server/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# This Dockerfile builds a Docker image for the MCP Server.
44
#
55
# To build the image locally:
6-
# docker build -f packages/mcp-server/Dockerfile -t @imagekit/api-mcp:local .
6+
# docker build -f packages/mcp-server/Dockerfile -t @imagekit/nodejs-mcp:local .
77
#
88
# To run the image:
9-
# docker run -i @imagekit/api-mcp:local [OPTIONS]
9+
# docker run -i @imagekit/nodejs-mcp:local [OPTIONS]
1010
#
1111
# Common options:
1212
# --tool=<name> Include specific tools
@@ -16,7 +16,7 @@
1616
# --transport=<type> Set transport type (stdio or http)
1717
#
1818
# For a full list of options:
19-
# docker run -i @imagekit/api-mcp:local --help
19+
# docker run -i @imagekit/nodejs-mcp:local --help
2020
#
2121
# Note: The MCP server uses stdio transport by default. Docker's -i flag
2222
# enables interactive mode, allowing the container to communicate over stdin/stdout.

packages/mcp-server/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can run the MCP Server directly via `npx`:
1010
export IMAGEKIT_PRIVATE_KEY="My Private Key"
1111
export OPTIONAL_IMAGEKIT_IGNORES_THIS="My Password"
1212
export IMAGEKIT_WEBHOOK_SECRET="My Webhook Secret"
13-
npx -y @imagekit/api-mcp@latest
13+
npx -y @imagekit/nodejs-mcp@latest
1414
```
1515

1616
### Via MCP Client
@@ -25,7 +25,7 @@ For clients with a configuration JSON, it might look something like this:
2525
"mcpServers": {
2626
"imagekit_nodejs_api": {
2727
"command": "npx",
28-
"args": ["-y", "@imagekit/api-mcp"],
28+
"args": ["-y", "@imagekit/nodejs-mcp"],
2929
"env": {
3030
"IMAGEKIT_PRIVATE_KEY": "My Private Key",
3131
"OPTIONAL_IMAGEKIT_IGNORES_THIS": "My Password",
@@ -41,22 +41,22 @@ For clients with a configuration JSON, it might look something like this:
4141
If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables
4242
in Cursor's `mcp.json`, which can be found in Cursor Settings > Tools & MCP > New MCP Server.
4343

44-
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40imagekit%2Fapi-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBpbWFnZWtpdC9hcGktbWNwIl0sImVudiI6eyJJTUFHRUtJVF9QUklWQVRFX0tFWSI6Ik15IFByaXZhdGUgS2V5IiwiT1BUSU9OQUxfSU1BR0VLSVRfSUdOT1JFU19USElTIjoiTXkgUGFzc3dvcmQiLCJJTUFHRUtJVF9XRUJIT09LX1NFQ1JFVCI6Ik15IFdlYmhvb2sgU2VjcmV0In19)
44+
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40imagekit%2Fnodejs-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBpbWFnZWtpdC9ub2RlanMtbWNwIl0sImVudiI6eyJJTUFHRUtJVF9QUklWQVRFX0tFWSI6Ik15IFByaXZhdGUgS2V5IiwiT1BUSU9OQUxfSU1BR0VLSVRfSUdOT1JFU19USElTIjoiTXkgUGFzc3dvcmQiLCJJTUFHRUtJVF9XRUJIT09LX1NFQ1JFVCI6Ik15IFdlYmhvb2sgU2VjcmV0In19)
4545

4646
### VS Code
4747

4848
If you use MCP, you can install the MCP server by clicking the link below. You will need to set your environment variables
4949
in VS Code's `mcp.json`, which can be found via Command Palette > MCP: Open User Configuration.
5050

51-
[Open VS Code](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40imagekit%2Fapi-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40imagekit%2Fapi-mcp%22%5D%2C%22env%22%3A%7B%22IMAGEKIT_PRIVATE_KEY%22%3A%22My%20Private%20Key%22%2C%22OPTIONAL_IMAGEKIT_IGNORES_THIS%22%3A%22My%20Password%22%2C%22IMAGEKIT_WEBHOOK_SECRET%22%3A%22My%20Webhook%20Secret%22%7D%7D)
51+
[Open VS Code](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40imagekit%2Fnodejs-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40imagekit%2Fnodejs-mcp%22%5D%2C%22env%22%3A%7B%22IMAGEKIT_PRIVATE_KEY%22%3A%22My%20Private%20Key%22%2C%22OPTIONAL_IMAGEKIT_IGNORES_THIS%22%3A%22My%20Password%22%2C%22IMAGEKIT_WEBHOOK_SECRET%22%3A%22My%20Webhook%20Secret%22%7D%7D)
5252

5353
### Claude Code
5454

5555
If you use Claude Code, you can install the MCP server by running the command below in your terminal. You will need to set your
5656
environment variables in Claude Code's `.claude.json`, which can be found in your home directory.
5757

5858
```
59-
claude mcp add imagekit_api_mcp_api --env IMAGEKIT_PRIVATE_KEY="My Private Key" OPTIONAL_IMAGEKIT_IGNORES_THIS="My Password" IMAGEKIT_WEBHOOK_SECRET="My Webhook Secret" -- npx -y @imagekit/api-mcp
59+
claude mcp add imagekit_nodejs_mcp_api --env IMAGEKIT_PRIVATE_KEY="My Private Key" OPTIONAL_IMAGEKIT_IGNORES_THIS="My Password" IMAGEKIT_WEBHOOK_SECRET="My Webhook Secret" -- npx -y @imagekit/nodejs-mcp
6060
```
6161

6262
## Code Mode

packages/mcp-server/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ cp tsconfig.dist-src.json dist/src/tsconfig.json
2929

3030
chmod +x dist/index.js
3131

32-
DIST_PATH=./dist PKG_IMPORT_PATH=@imagekit/api-mcp/ node ../../scripts/utils/postprocess-files.cjs
32+
DIST_PATH=./dist PKG_IMPORT_PATH=@imagekit/nodejs-mcp/ node ../../scripts/utils/postprocess-files.cjs
3333

3434
# mcp bundle
3535
rm -rf dist-bundle imagekit_nodejs_api.mcpb; mkdir dist-bundle

packages/mcp-server/cloudflare-worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@modelcontextprotocol/sdk": "^1.27.1",
2222
"agents": "^0.8.5",
2323
"hono": "^4.12.4",
24-
"@imagekit/api-mcp": "latest",
24+
"@imagekit/nodejs-mcp": "latest",
2525
"zod": "^3.24.4"
2626
}
2727
}

packages/mcp-server/cloudflare-worker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { makeOAuthConsent } from './app';
22
import { McpAgent } from 'agents/mcp';
33
import OAuthProvider from '@cloudflare/workers-oauth-provider';
4-
import { McpOptions, initMcpServer, server, ClientOptions } from '@imagekit/api-mcp/server';
4+
import { McpOptions, initMcpServer, server, ClientOptions } from '@imagekit/nodejs-mcp/server';
55
import type { ExportedHandler } from '@cloudflare/workers-types';
66

77
type MCPProps = {

packages/mcp-server/jest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const config: JestConfigWithTsJest = {
77
'^.+\\.(t|j)sx?$': ['@swc/jest', { sourceMaps: 'inline' }],
88
},
99
moduleNameMapper: {
10-
'^@imagekit/api-mcp$': '<rootDir>/src/index.ts',
11-
'^@imagekit/api-mcp/(.*)$': '<rootDir>/src/$1',
10+
'^@imagekit/nodejs-mcp$': '<rootDir>/src/index.ts',
11+
'^@imagekit/nodejs-mcp/(.*)$': '<rootDir>/src/$1',
1212
},
1313
modulePathIgnorePatterns: ['<rootDir>/dist/'],
1414
testPathIgnorePatterns: ['scripts'],

packages/mcp-server/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dxt_version": "0.2",
3-
"name": "@imagekit/api-mcp",
3+
"name": "@imagekit/nodejs-mcp",
44
"version": "7.5.0",
55
"description": "The official MCP Server for the Image Kit API",
66
"author": {

packages/mcp-server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@imagekit/api-mcp",
2+
"name": "@imagekit/nodejs-mcp",
33
"version": "7.5.0",
44
"description": "The official MCP Server for the Image Kit API",
55
"author": "Image Kit <developer@imagekit.io>",
@@ -78,8 +78,8 @@
7878
"tsconfig-paths": "^4.0.0"
7979
},
8080
"imports": {
81-
"@imagekit/api-mcp": ".",
82-
"@imagekit/api-mcp/*": "./src/*"
81+
"@imagekit/nodejs-mcp": ".",
82+
"@imagekit/nodejs-mcp/*": "./src/*"
8383
},
8484
"exports": {
8585
".": {

0 commit comments

Comments
 (0)