Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/publish-to-npm-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:

- name: Build
run: npm run build
env:
NODE_ENV: 'production'

- name: Publish
run: |
Expand Down Expand Up @@ -76,6 +78,8 @@ jobs:

- name: Build
run: npm run build
env:
NODE_ENV: 'production'

- name: Install MCP Publisher
run: |
Expand Down
24 changes: 8 additions & 16 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
/**
* Copyright 2021 Google LLC.
* Copyright (c) Microsoft Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* @license
* Copyright 2025 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/

import path from 'node:path';

import commonjs from '@rollup/plugin-commonjs';
Expand All @@ -22,11 +12,14 @@ import {nodeResolve} from '@rollup/plugin-node-resolve';
import cleanup from 'rollup-plugin-cleanup';
import license from 'rollup-plugin-license';

const isProduction = process.env.NODE_ENV === 'production';

/** @type {import('rollup').RollupOptions} */
const sdk = {
input: './build/src/third_party/modelcontextprotocol-sdk/index.js',
output: {
file: './build/src/third_party/modelcontextprotocol-sdk/index.js',
sourcemap: false,
sourcemap: !isProduction,
format: 'esm',
},
plugins: [
Expand All @@ -37,7 +30,6 @@ const sdk = {
comments: [/Copyright/i],
}),
license({
debug: true,
thirdParty: {
allow: {
test: dependency => {
Expand Down