Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 12 additions & 0 deletions experimental/claude-code-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to the Claude Code Agent MCP Server will be documented in th

## [Unreleased]

## [0.0.4] - 2025-10-10

**CRITICAL FIX:**

- Restored missing `prepare-publish.js` file that was accidentally deleted during the directory architecture refactoring
- The prepare-publish.js script is essential for building and bundling the package correctly for npm publication
- Without this file, the `prepublishOnly` script fails and prevents proper package releases

**Technical Details:**

This restores the prepare-publish.js file that was accidentally removed in the directory architecture refactoring commit (1a5f484). The script handles TypeScript compilation, shared directory setup, and file copying for npm publishing. This fix ensures the claude-code-agent server can be properly built and published.

## [0.0.3] - 2025-10-10

**BREAKING CHANGES:**
Expand Down
4 changes: 2 additions & 2 deletions experimental/claude-code-agent/MANUAL_TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Manual tests for the Claude Code Agent MCP Server verify the integration with th

## Latest Test Results

**Commit:** a35b31b
**Commit:** 3303b24
**Date:** 2025-10-10
**Overall:** 100% passing (3/3 test suites)
**Note:** Verified new working_directory parameter and directory separation functionality
Expand Down Expand Up @@ -111,7 +111,7 @@ Tests fail if:
## Manual Test Results

**Last tested**: 2025-10-10
**Commit**: a35b31b
**Commit**: 3303b24
**Result**: SUCCESS (100% pass rate)
**Note**: Verified new required working_directory parameter and directory separation functionality

Expand Down
2 changes: 1 addition & 1 deletion experimental/claude-code-agent/local/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "claude-code-agent-mcp-server",
"version": "0.0.3",
"version": "0.0.4",
"description": "Local implementation of claude-code-agent MCP server",
"mcpName": "claude-code-agent",
"main": "build/index.js",
Expand Down
64 changes: 64 additions & 0 deletions experimental/claude-code-agent/local/prepare-publish.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/usr/bin/env node
import { cp, rm } from 'fs/promises';
import { join, dirname } from 'path';
import { fileURLToPath } from 'url';
import { execSync } from 'child_process';

const __dirname = dirname(fileURLToPath(import.meta.url));

async function prepare() {
console.log('Preparing for publish...');

// First, ensure TypeScript is available
console.log('Installing TypeScript for build...');
try {
execSync('npm install --no-save typescript @types/node', { stdio: 'inherit' });
} catch (e) {
console.error('Failed to install TypeScript:', e.message);
process.exit(1);
}

// Build shared directory first
const sharedDir = join(__dirname, '../shared');
console.log('Building shared directory...');
try {
execSync('npm install && npm run build', { cwd: sharedDir, stdio: 'inherit' });
} catch (e) {
console.error('Failed to build shared directory:', e.message);
process.exit(1);
}

// Set up the shared directory for the build
console.log('Setting up shared directory for build...');
try {
// Create a symlink for the build process (like setup-dev.js does)
await rm(join(__dirname, 'shared'), { recursive: true, force: true });
execSync(`node setup-dev.js`, { cwd: __dirname, stdio: 'inherit' });
} catch (e) {
console.error('Failed to set up shared directory:', e.message);
process.exit(1);
}

// Now build the local package
console.log('Building local package...');
try {
execSync('npx tsc && npx tsc -p tsconfig.integration.json', { stdio: 'inherit' });
} catch (e) {
console.error('Failed to build local package:', e.message);
process.exit(1);
}

// Clean up the symlink and copy the actual files for publishing
try {
await rm(join(__dirname, 'shared'), { recursive: true, force: true });
} catch (e) {
// Ignore if doesn't exist
}

// Copy the built shared files
await cp(join(__dirname, '../shared/build'), join(__dirname, 'shared'), { recursive: true });

console.log('Copied shared files to local package');
}

prepare().catch(console.error);
2 changes: 1 addition & 1 deletion experimental/claude-code-agent/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.