@tgai96/outlook-mcp 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -11
  2. package/cli.js +5 -24
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -136,17 +136,7 @@ To use this MCP server with an MCP client, you can either use the published npm
136
136
  If the package is published to npm, you can use it directly:
137
137
 
138
138
  ```json
139
- {
140
- "mcpServers": {
141
- "outlook": {
142
- "command": "npx",
143
- "args": [
144
- "-y",
145
- "@yourusername/outlook-mcp"
146
- ]
147
- }
148
- }
149
- }
139
+ DDD
150
140
  ```
151
141
 
152
142
  **Note**: The package name is `@tgai96/outlook-mcp` once published.
package/cli.js CHANGED
@@ -216,31 +216,12 @@ if (command === 'config') {
216
216
  process.exit(1);
217
217
  });
218
218
  } else {
219
- // Default: Start the MCP server
219
+ // Default: Start the MCP server directly (not as child process)
220
220
  // This is what gets run when npx outlook-mcp is called without arguments
221
+ // We need to run index.js directly (not spawn) for proper stdio communication with MCP clients
221
222
  const mcpServerPath = path.join(__dirname, 'index.js');
222
- const child = spawn('node', [mcpServerPath], {
223
- stdio: 'inherit',
224
- env: process.env
225
- });
226
223
 
227
- // Handle process termination
228
- process.on('SIGINT', () => {
229
- child.kill('SIGINT');
230
- process.exit(0);
231
- });
232
-
233
- process.on('SIGTERM', () => {
234
- child.kill('SIGTERM');
235
- process.exit(0);
236
- });
237
-
238
- child.on('exit', (code) => {
239
- process.exit(code || 0);
240
- });
241
-
242
- child.on('error', (error) => {
243
- console.error('Error starting MCP server:', error.message);
244
- process.exit(1);
245
- });
224
+ // For MCP server mode, we need direct stdio, so require and run index.js directly
225
+ // This ensures proper communication with MCP clients
226
+ require(mcpServerPath);
246
227
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tgai96/outlook-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP server for Claude to access Outlook data via Microsoft Graph API",
5
5
  "main": "index.js",
6
6
  "bin": {