Skip to content

Commit a4a7383

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents dfeee6e + 7c61575 commit a4a7383

File tree

8 files changed

+101
-70
lines changed

8 files changed

+101
-70
lines changed

.changeset/heavy-cougars-kick.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ updates:
1717
schedule:
1818
interval: "weekly"
1919
open-pull-requests-limit: 10
20+
# Use the 'dependencies' default label and add
21+
# the 'automerge' one for automerge github action support
22+
labels:
23+
- "dependencies"
24+
- "automerge"
2025
groups:
2126
# Production dependencies without breaking changes
2227
dependencies:
@@ -35,4 +40,4 @@ updates:
3540
# example for ignoring dependencies:
3641
# ignore:
3742
# - dependency-name: tap
38-
# update-types: ["version-update:semver-major"]
43+
# update-types: ["version-update:semver-major"]

.github/workflows/automerge.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: automerge
2+
on:
3+
pull_request:
4+
types:
5+
- labeled
6+
- unlabeled
7+
- synchronize
8+
- opened
9+
- edited
10+
- ready_for_review
11+
- reopened
12+
- unlocked
13+
pull_request_review:
14+
types:
15+
- submitted
16+
check_suite:
17+
types:
18+
- completed
19+
status: {}
20+
jobs:
21+
automerge:
22+
runs-on: ubuntu-latest
23+
permissions:
24+
contents: write
25+
pull-requests: write
26+
steps:
27+
- id: automerge
28+
name: automerge
29+
uses: "pascalgn/[email protected]"
30+
env:
31+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
32+
# we only merge PRs with labels of "dependencies"
33+
MERGE_LABELS: "automerge"
34+
MERGE_REMOVE_LABELS: "automerge"
35+
MERGE_METHOD: "squash"
36+
MERGE_COMMIT_MESSAGE: "automatic"
37+
MERGE_FORKS: "false"
38+
MERGE_REQUIRED_APPROVALS: "0"
39+
UPDATE_METHOD: "rebase"

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# mcp-server-nodejs-api-docs
22

3+
## 1.1.2
4+
5+
### Patch Changes
6+
7+
- 936e617: fix: add shebang for CLI executable
8+
39
## 1.1.1
410

511
### Patch Changes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
npx mcp-server-nodejs-api-docs
2525
```
2626

27-
You can debug calls for the MCP Server by inspecting the file `/tmp/mcp-server-nodejs-docs.log` which this MCP Server writes to.
27+
You can debug calls for the MCP Server by inspecting the file `mcp-server-nodejs-docs.log` in your system's temporary directory (e.g., `/tmp` on Unix-like systems or `%TEMP%` on Windows) which this MCP Server writes to.
2828

2929
## Usage: as a Docker container
3030

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcp-server-nodejs-api-docs",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "An MCP Server for Node.js API documentation",
55
"types": "dist/main.d.ts",
66
"type": "module",

src/utils/logger.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { pino } from 'pino'
22
import type { Logger } from 'pino'
3+
import * as path from 'path'
4+
import * as os from 'os'
35

46
// Re-export pino types for use in other modules
57
export type { Logger } from 'pino'
68

7-
// @TODO change the log file path to be cross-platform compatible
8-
// and support other OSs
9-
const logFilePath = '/tmp/mcp-server-nodejs-docs.log'
9+
const logFilePath = path.join(os.tmpdir(), 'mcp-server-nodejs-docs.log')
1010

1111
export function initLogger (): Logger {
1212
const logLevel = process.argv.includes('--debug') ? 'debug' : 'info'

0 commit comments

Comments
 (0)