agentmail-mcp 0.1.22 → 0.2.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 (2) hide show
  1. package/build/index.js +3 -15
  2. package/package.json +3 -3
package/build/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { AgentMailClient, AgentMailEnvironment } from 'agentmail';
2
+ import { AgentMailClient } from 'agentmail';
3
3
  import { AgentMailToolkit } from 'agentmail-toolkit/mcp';
4
4
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
5
5
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
@@ -15,22 +15,10 @@ const parseToolsArg = () => {
15
15
  }
16
16
  return toolsArg.split(',').map((tool) => tool.trim());
17
17
  };
18
- const parseAgentMailEnv = () => {
19
- const env = process.env.AGENTMAIL_ENVIRONMENT?.toLowerCase();
20
- switch (env) {
21
- case 'development':
22
- case 'dev':
23
- return AgentMailEnvironment.Development;
24
- case 'production':
25
- case 'prod':
26
- default:
27
- return AgentMailEnvironment.Production;
28
- }
29
- };
30
18
  const main = async () => {
31
- const environment = parseAgentMailEnv();
19
+ const baseUrl = process.env.AGENTMAIL_BASE_URL;
32
20
  const toolNames = parseToolsArg();
33
- const client = new AgentMailClient({ environment });
21
+ const client = new AgentMailClient({ baseUrl });
34
22
  const toolkit = new AgentMailToolkit(client);
35
23
  const server = new McpServer({ name: 'AgentMail', version: '0.1.0' });
36
24
  const transport = new StdioServerTransport();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmail-mcp",
3
- "version": "0.1.22",
3
+ "version": "0.2.1",
4
4
  "description": "AgentMail MCP Server",
5
5
  "scripts": {
6
6
  "build": "tsc && chmod 755 build/index.js",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@modelcontextprotocol/sdk": "^1.24.1",
33
- "agentmail": "^0.1.11",
34
- "agentmail-toolkit": "^0.1.42"
33
+ "agentmail": "^0.2.1",
34
+ "agentmail-toolkit": "^0.2.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@eslint/js": "^9.29.0",