Skip to content

Commit b14fa9a

Browse files
committed
test coverage
1 parent 63a4c91 commit b14fa9a

File tree

4 files changed

+77
-41
lines changed

4 files changed

+77
-41
lines changed

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
repo_token: ${COVERALLS_REPO_TOKEN}
2+
service_name: github-actions

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test & Coverage
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Use Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: "18.x"
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Run tests with coverage
25+
run: npm run test:coverage
26+
27+
- name: Coveralls
28+
uses: coverallsapp/github-action@v2
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 37 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# systemprompt-mcp-notion
22

33
[![npm version](https://img.shields.io/npm/v/systemprompt-mcp-notion.svg)](https://www.npmjs.com/package/systemprompt-mcp-notion)
4-
[![Coverage Status](https://coveralls.io/repos/github/systemprompt-io/systemprompt-mcp-notion/badge.svg?branch=main)](https://coveralls.io/github/systemprompt-io/systemprompt-mcp-notion?branch=main)
4+
[![Coverage Status](https://coveralls.io/repos/github/Ejb503/mcp-server-systemprompt-notion/badge.svg?branch=main)](https://coveralls.io/github/Ejb503/mcp-server-systemprompt-notion?branch=main)
55
[![Twitter Follow](https://img.shields.io/twitter/follow/tyingshoelaces_?style=social)](https://twitter.com/tyingshoelaces_)
66
[![Discord](https://img.shields.io/discord/1255160891062620252?color=7289da&label=discord)](https://discord.com/invite/wkAbSuPWpr)
77

@@ -82,7 +82,42 @@ Before using this server, you'll need:
8282
NOTION_API_KEY=your_notion_integration_token
8383
```
8484

85-
3. **Basic Usage**
85+
3. **MCP Configuration**
86+
Add the following to your MCP configuration JSON:
87+
88+
```json
89+
{
90+
"mcpServers": {
91+
"notion": {
92+
"command": "npx",
93+
"args": ["systemprompt-mcp-notion"],
94+
"env": {
95+
"SYSTEMPROMPT_API_KEY": "your_systemprompt_api_key",
96+
"NOTION_API_KEY": "your_notion_integration_token"
97+
}
98+
}
99+
}
100+
}
101+
```
102+
103+
Alternatively, if you've installed the package locally:
104+
105+
```json
106+
{
107+
"mcpServers": {
108+
"notion": {
109+
"command": "node",
110+
"args": ["./node_modules/systemprompt-mcp-notion/build/index.js"],
111+
"env": {
112+
"SYSTEMPROMPT_API_KEY": "your_systemprompt_api_key",
113+
"NOTION_API_KEY": "your_notion_integration_token"
114+
}
115+
}
116+
}
117+
}
118+
```
119+
120+
4. **Basic Usage**
86121

87122
```typescript
88123
import { NotionMCPServer } from "systemprompt-mcp-notion";
@@ -131,42 +166,3 @@ npm run test:coverage
131166
# Test Notion API connection
132167
npm run test:notion
133168
```
134-
135-
### Code Quality
136-
137-
- **Linting**: ESLint with TypeScript support
138-
139-
```bash
140-
npm run lint
141-
npm run lint:fix
142-
```
143-
144-
- **Type Checking**: TypeScript with strict mode
145-
146-
```bash
147-
npm run build
148-
```
149-
150-
- **Continuous Integration**
151-
- Automated tests on pull requests
152-
- Coverage reporting to Coveralls
153-
- Dependency security scanning
154-
155-
## Contributing
156-
157-
1. Fork the repository
158-
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
159-
3. Commit your changes (`git commit -m 'Add amazing feature'`)
160-
4. Push to the branch (`git push origin feature/amazing-feature`)
161-
5. Open a Pull Request
162-
163-
## Support
164-
165-
- 📖 [Documentation](https://systemprompt.io/documentation)
166-
- 💬 [Discord Community](https://discord.com/invite/wkAbSuPWpr)
167-
- 🐛 [Issue Tracker](https://github.com/systemprompt-io/systemprompt-mcp-notion/issues)
168-
- 📧 [Email Support](mailto:support@systemprompt.io)
169-
170-
## License
171-
172-
MIT © [SystemPrompt](https://systemprompt.io)

jest.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,12 @@ export default {
2525
useESM: true,
2626
},
2727
},
28+
collectCoverageFrom: [
29+
"src/**/*.{ts,tsx}",
30+
"!src/**/*.d.ts",
31+
"!src/**/__tests__/**",
32+
"!src/**/__mocks__/**",
33+
],
34+
coverageReporters: ["lcov", "text", "text-summary"],
35+
coverageDirectory: "coverage",
2836
};

0 commit comments

Comments
 (0)