tempo-api-mcp 2.0.2 → 2.1.3

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.
package/dist/client.js CHANGED
@@ -30,18 +30,34 @@ function readVar(key) {
30
30
  const BASE_URL = 'https://api.tempo.io';
31
31
  export class TempoClient {
32
32
  apiToken;
33
+ configError;
34
+ /**
35
+ * Defer the config error so the server can still start (and respond to the
36
+ * host's install-time smoke test) when TEMPO_API_TOKEN isn't set yet.
37
+ * Tool calls re-raise the error at request time.
38
+ */
33
39
  constructor() {
34
40
  const token = readVar('TEMPO_API_TOKEN');
35
- if (!token)
36
- throw new Error('TEMPO_API_TOKEN environment variable is required');
37
- this.apiToken = token;
41
+ if (!token) {
42
+ this.apiToken = null;
43
+ this.configError = new Error('TEMPO_API_TOKEN environment variable is required');
44
+ }
45
+ else {
46
+ this.apiToken = token;
47
+ this.configError = null;
48
+ }
49
+ }
50
+ requireToken() {
51
+ if (this.configError)
52
+ throw this.configError;
53
+ return this.apiToken;
38
54
  }
39
55
  async request(method, path, body, queryParams) {
40
56
  return this.doRequest(method, path, body, queryParams, false);
41
57
  }
42
58
  async doRequest(method, path, body, queryParams, isRetry) {
43
59
  const headers = {
44
- Authorization: `Bearer ${this.apiToken}`,
60
+ Authorization: `Bearer ${this.requireToken()}`,
45
61
  'Content-Type': 'application/json',
46
62
  Accept: 'application/json',
47
63
  };
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { register as registerTeams } from './tools/teams.js';
8
8
  import { register as registerAccounts } from './tools/accounts.js';
9
9
  import { register as registerProjects } from './tools/projects.js';
10
10
  const client = new TempoClient();
11
- const server = new McpServer({ name: 'tempo-api-mcp', version: '2.0.2' });
11
+ const server = new McpServer({ name: 'tempo-api-mcp', version: '2.1.3' });
12
12
  registerWorklogs(server, client);
13
13
  registerPlans(server, client);
14
14
  registerTeams(server, client);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tempo-api-mcp",
3
- "version": "2.0.2",
3
+ "version": "2.1.3",
4
4
  "mcpName": "io.github.chrischall/tempo-api-mcp",
5
5
  "description": "Tempo API MCP server for Claude — developed and maintained by AI (Claude Code)",
6
6
  "author": "Claude Code (AI) <https://www.anthropic.com/claude>",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@modelcontextprotocol/sdk": "^1.29.0",
30
30
  "dotenv": "^17.4.0",
31
- "zod": "^4.3.6"
31
+ "zod": "^4.4.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^25.5.2",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/chrischall/tempo-api-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "2.0.2",
9
+ "version": "2.1.3",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "tempo-api-mcp",
14
- "version": "2.0.2",
14
+ "version": "2.1.3",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },