Skip to content

Commit 789ef0c

Browse files
committed
Update MCP server configuration and improve error handling
1 parent 5794191 commit 789ef0c

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,22 @@ Add the following to your Claude Desktop MCP server configuration:
1111
{
1212
"mcpServers": {
1313
"orca-mcp": {
14-
"command": "node",
14+
"command": "npx",
1515
"args": [
16-
"@giraffemedia/orca-mcp@latest"
17-
]
16+
"@giraffemedia/[email protected]",
17+
"--verbose=true",
18+
"--max-results=1000",
19+
"--workspace=C:\\Data",
20+
"--file-uri=s3://giraffe-media-content/mcp-data/orca.json"
21+
],
22+
"env": {
23+
"NODE_ENV": "production",
24+
"API_KEY": "TEST",
25+
"DEBUG": "true",
26+
"AWS_ACCESS_KEY_ID": "YOUR_ACCESS_KEY_ID",
27+
"AWS_SECRET_ACCESS_KEY": "YOUR_SECRET_ACCESS_KEY",
28+
"AWS_REGION": "YOUR_AWS_REGION"
29+
}
1830
}
1931
}
2032
}

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class OrcaMCPServer {
7070

7171
try {
7272
const s3Sync = new S3SyncService({ verbose: this.options.verbose });
73-
73+
7474
// Extract filename from S3 URI for local path
7575
const s3UriParts = this.options.fileUri.split('/');
7676
const filename = s3UriParts[s3UriParts.length - 1];
@@ -81,7 +81,7 @@ class OrcaMCPServer {
8181
}
8282

8383
const wasDownloaded = await s3Sync.syncFile(this.options.fileUri, localPath);
84-
84+
8585
if (wasDownloaded) {
8686
console.error(`✅ File synchronized from S3: ${filename}`);
8787
} else if (this.options.verbose) {
@@ -91,7 +91,7 @@ class OrcaMCPServer {
9191
} catch (error) {
9292
const err = error as { message: string };
9393
console.error(`❌ S3 sync failed: ${err.message}`);
94-
94+
9595
// Don't exit - continue with server startup using existing local file if available
9696
if (this.options.verbose) {
9797
console.error('⚠️ Continuing with server startup - will use existing local files if available');

src/tools/json-query.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import generator from 'json-schema-generator';
55
import { JSONPath } from 'jsonpath-plus';
66
import { z } from 'zod';
77

8+
89
export function registerJsonQueryTool(server: McpServer) {
910
server.registerTool(
1011
'json_query',

0 commit comments

Comments
 (0)