Skip to content

Commit f14f6a5

Browse files
committed
chore: Update Claude tool description and bump version to 1.10.13
1 parent 24dfd38 commit f14f6a5

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.10.13] - 2025-05-20
9+
10+
### Changed
11+
- Updated Claude tool description to mention statelessness.
12+
813
## [1.10.12] - 2025-05-17
914

1015
- Fixed MCP server startup issue by ensuring process runs regardless of module detection

package-lock.json

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@steipete/claude-code-mcp",
3-
"version": "1.10.12",
3+
"version": "1.10.13",
44
"description": "Simple MCP server for Claude Code one-shot execution",
55
"author": "Peter Steinberger",
66
"license": "MIT",
@@ -26,7 +26,7 @@
2626
"type": "module",
2727
"devDependencies": {
2828
"@eslint/js": "^9.26.0",
29-
"@types/node": "^22.15.17",
29+
"@types/node": "^22.15.20",
3030
"@vitest/coverage-v8": "^2.1.8",
3131
"tsx": "^4.19.4",
3232
"typescript": "^5.8.3",

src/server.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import * as path from 'path';
1616
import { readFileSync } from 'node:fs';
1717

1818
// Server version - update this when releasing new versions
19-
const SERVER_VERSION = "1.10.12";
19+
const SERVER_VERSION = "1.10.13";
2020

2121
// Define debugMode globally using const
2222
const debugMode = process.env.MCP_CLAUDE_DEBUG === 'true';
@@ -104,8 +104,8 @@ export async function spawnAsync(command: string, args: string[], options?: { ti
104104
let stdout = '';
105105
let stderr = '';
106106

107-
process.stdout.on('data', (data) => { stdout += data.toString(); });
108-
process.stderr.on('data', (data) => {
107+
process.stdout.on('data', (data: Buffer) => { stdout += data.toString(); });
108+
process.stderr.on('data', (data: Buffer) => {
109109
stderr += data.toString();
110110
debugLog(`[Spawn Stderr Chunk] ${data.toString()}`);
111111
});
@@ -123,7 +123,7 @@ export async function spawnAsync(command: string, args: string[], options?: { ti
123123
reject(new Error(errorMessage));
124124
});
125125

126-
process.on('close', (code) => {
126+
process.on('close', (code: number | null) => {
127127
debugLog(`[Spawn Close] Exit code: ${code}`);
128128
debugLog(`[Spawn Stderr Full] ${stderr.trim()}`);
129129
debugLog(`[Spawn Stdout Full] ${stdout.trim()}`);
@@ -165,7 +165,7 @@ export class ClaudeCodeServer {
165165

166166
this.setupToolHandlers();
167167

168-
this.server.onerror = (error) => console.error('[Error]', error);
168+
this.server.onerror = (error: Error) => console.error('[Error]', error);
169169
process.on('SIGINT', async () => {
170170
await this.server.close();
171171
process.exit(0);
@@ -213,6 +213,7 @@ export class ClaudeCodeServer {
213213
6. Claude Code is really good at complex multi-step file operations and refactorings and faster than your native edit features.
214214
7. Combine file operations, README updates, and Git commands in a sequence.
215215
8. Claude can do much more, just ask it!
216+
9. **Statelessness**: Remember that Claude Code is not stateful. Each request is independent and starts fresh, so provide all necessary context in each prompt.
216217
217218
`,
218219
inputSchema: {
@@ -236,7 +237,7 @@ export class ClaudeCodeServer {
236237
// Handle tool calls
237238
const executionTimeoutMs = 1800000; // 30 minutes timeout
238239

239-
this.server.setRequestHandler(CallToolRequestSchema, async (args, call): Promise<ServerResult> => {
240+
this.server.setRequestHandler(CallToolRequestSchema, async (args: any, call: any): Promise<ServerResult> => {
240241
debugLog('[Debug] Handling CallToolRequest:', args);
241242

242243
// Correctly access toolName from args.params.name

0 commit comments

Comments
 (0)