Skip to content

Commit af9b0f4

Browse files
feat(api): use scoped package for mcp server
1 parent be15c56 commit af9b0f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+94
-94
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 42
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-01aef94bd928f40b7209dc21df71e2312d4bee430119b30ee05d75cf5e1b4801.yml
33
openapi_spec_hash: 054c332db88b23d362f72583dd24b2aa
4-
config_hash: f351b784e512ad36eafbc0641ad61183
4+
config_hash: 8d97605bd07a42f98d8142059b56522c

packages/mcp-server/README.md

Lines changed: 4 additions & 4 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/nodejs-mcp@latest
13+
npx -y @imagekit/api-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/nodejs-mcp", "--client=claude", "--tools=dynamic"],
28+
"args": ["-y", "@imagekit/api-mcp", "--client=claude", "--tools=dynamic"],
2929
"env": {
3030
"IMAGEKIT_PRIVATE_KEY": "My Private Key",
3131
"OPTIONAL_IMAGEKIT_IGNORES_THIS": "My Password",
@@ -172,10 +172,10 @@ http://localhost:3000?client=cursor&capability=tool-name-length%3D40
172172

173173
```js
174174
// Import the server, generated endpoints, or the init function
175-
import { server, endpoints, init } from "@imagekit/nodejs-mcp/server";
175+
import { server, endpoints, init } from "@imagekit/api-mcp/server";
176176

177177
// import a specific tool
178-
import createCustomMetadataFields from "@imagekit/nodejs-mcp/tools/custom-metadata-fields/create-custom-metadata-fields";
178+
import createCustomMetadataFields from "@imagekit/api-mcp/tools/custom-metadata-fields/create-custom-metadata-fields";
179179

180180
// initialize the server and all endpoints
181181
init({ server, endpoints });

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/nodejs-mcp/ node ../../scripts/utils/postprocess-files.cjs
32+
DIST_PATH=./dist PKG_IMPORT_PATH=@imagekit/api-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.11.4",
2222
"agents": "^0.0.88",
2323
"hono": "^4.7.9",
24-
"@imagekit/nodejs-mcp": "latest",
24+
"@imagekit/api-mcp": "latest",
2525
"zod": "^3.24.4"
2626
}
2727
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
renderAuthorizationRejectedContent,
99
} from './utils';
1010
import type { OAuthHelpers } from '@cloudflare/workers-oauth-provider';
11-
import { McpOptions } from '@imagekit/nodejs-mcp/server';
11+
import { McpOptions } from '@imagekit/api-mcp/server';
1212
import { ServerConfig } from '.';
1313

1414
export type Bindings = Env & {

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/nodejs-mcp/server';
4+
import { McpOptions, initMcpServer, server, ClientOptions } from '@imagekit/api-mcp/server';
55

66
type MCPProps = {
77
clientProps: ClientOptions;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { HtmlEscapedString } from 'hono/utils/html';
44
import { marked } from 'marked';
55
import type { AuthRequest } from '@cloudflare/workers-oauth-provider';
66
import { env } from 'cloudflare:workers';
7-
import { ServerConfig, McpOptions, ClientType, Filter, ClientProperty } from '@imagekit/nodejs-mcp/server';
7+
import { ServerConfig, McpOptions, ClientType, Filter, ClientProperty } from '@imagekit/api-mcp/server';
88

99
export const layout = (content: HtmlEscapedString | string, title: string, config: ServerConfig) => html`
1010
<!doctype html>

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/nodejs-mcp$': '<rootDir>/src/index.ts',
11-
'^@imagekit/nodejs-mcp/(.*)$': '<rootDir>/src/$1',
10+
'^@imagekit/api-mcp$': '<rootDir>/src/index.ts',
11+
'^@imagekit/api-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/nodejs-mcp",
3+
"name": "@imagekit/api-mcp",
44
"version": "0.0.1-alpha.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/nodejs-mcp",
2+
"name": "@imagekit/api-mcp",
33
"version": "7.1.0",
44
"description": "The official MCP Server for the Image Kit API",
55
"author": "Image Kit <[email protected]>",
@@ -68,8 +68,8 @@
6868
"typescript": "5.8.3"
6969
},
7070
"imports": {
71-
"@imagekit/nodejs-mcp": ".",
72-
"@imagekit/nodejs-mcp/*": "./src/*"
71+
"@imagekit/api-mcp": ".",
72+
"@imagekit/api-mcp/*": "./src/*"
7373
},
7474
"exports": {
7575
".": {

0 commit comments

Comments
 (0)