@youdotcom-oss/mcp 1.2.4 โ 1.3.0
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/AGENTS.md +594 -0
- package/CONTRIBUTING.md +246 -0
- package/README.md +187 -333
- package/bin/stdio.js +6707 -6017
- package/docs/API.md +319 -0
- package/package.json +55 -35
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# Contributing to You.com MCP Server
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing! This guide will help you get started.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Code of Conduct](#code-of-conduct)
|
|
8
|
+
- [Getting Started](#getting-started)
|
|
9
|
+
- [How to Contribute](#how-to-contribute)
|
|
10
|
+
- [Development Workflow](#development-workflow)
|
|
11
|
+
- [Getting Help](#getting-help)
|
|
12
|
+
|
|
13
|
+
## Code of Conduct
|
|
14
|
+
|
|
15
|
+
This project adheres to professional open-source standards. Be respectful, constructive, and collaborative in all interactions.
|
|
16
|
+
|
|
17
|
+
## Getting Started
|
|
18
|
+
|
|
19
|
+
### Prerequisites
|
|
20
|
+
|
|
21
|
+
- Bun >= 1.2.21
|
|
22
|
+
- You.com API key from [api.you.com](https://api.you.com)
|
|
23
|
+
|
|
24
|
+
### Quick Setup
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
git clone https://github.com/youdotcom-oss/youdotcom-mcp-server.git
|
|
28
|
+
cd youdotcom-mcp-server
|
|
29
|
+
bun install
|
|
30
|
+
echo "export YDC_API_KEY=your-key" > .env
|
|
31
|
+
source .env
|
|
32
|
+
bun run dev
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
For detailed development setup, code patterns, and architecture, see [AGENTS.md](./AGENTS.md).
|
|
36
|
+
|
|
37
|
+
## How to Contribute
|
|
38
|
+
|
|
39
|
+
### Reporting Bugs
|
|
40
|
+
|
|
41
|
+
**Before submitting**: Check [existing issues](https://github.com/youdotcom-oss/youdotcom-mcp-server/issues)
|
|
42
|
+
|
|
43
|
+
**When reporting**, include:
|
|
44
|
+
|
|
45
|
+
- Clear description of the bug
|
|
46
|
+
- Steps to reproduce
|
|
47
|
+
- Expected vs actual behavior
|
|
48
|
+
- Environment details (Bun version, OS, MCP client)
|
|
49
|
+
- Error logs from your MCP client
|
|
50
|
+
|
|
51
|
+
**Where to report**:
|
|
52
|
+
|
|
53
|
+
- GitHub Issues: https://github.com/youdotcom-oss/youdotcom-mcp-server/issues
|
|
54
|
+
- Email: support@you.com (for security issues)
|
|
55
|
+
|
|
56
|
+
### Suggesting Enhancements
|
|
57
|
+
|
|
58
|
+
We welcome feature requests! Please:
|
|
59
|
+
|
|
60
|
+
1. Check if the feature already exists or is planned
|
|
61
|
+
2. Open an issue describing the enhancement
|
|
62
|
+
3. Explain the use case and benefits
|
|
63
|
+
4. Be open to discussion and iteration
|
|
64
|
+
|
|
65
|
+
### Submitting Pull Requests
|
|
66
|
+
|
|
67
|
+
#### 1. Fork and Create Branch
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Fork the repo on GitHub, then:
|
|
71
|
+
git clone https://github.com/YOUR-USERNAME/youdotcom-mcp-server.git
|
|
72
|
+
cd youdotcom-mcp-server
|
|
73
|
+
git checkout -b feature/your-feature-name
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Branch naming**:
|
|
77
|
+
|
|
78
|
+
- `feature/description` - New features
|
|
79
|
+
- `fix/description` - Bug fixes
|
|
80
|
+
- `docs/description` - Documentation
|
|
81
|
+
- `dx-<issue-num>-description` - DX improvements
|
|
82
|
+
|
|
83
|
+
#### 2. Make Your Changes
|
|
84
|
+
|
|
85
|
+
**Code Style**:
|
|
86
|
+
|
|
87
|
+
- Follow patterns in [AGENTS.md](./AGENTS.md)
|
|
88
|
+
- Use arrow functions for declarations
|
|
89
|
+
- Run `bun run check:write` to auto-fix style issues
|
|
90
|
+
|
|
91
|
+
**Testing**:
|
|
92
|
+
|
|
93
|
+
- Add tests for new features
|
|
94
|
+
- Maintain >80% coverage for utilities
|
|
95
|
+
- Run `bun test` to verify
|
|
96
|
+
|
|
97
|
+
**Documentation**:
|
|
98
|
+
|
|
99
|
+
- Update AGENTS.md for developer-facing changes
|
|
100
|
+
- Update README.md for user-facing changes
|
|
101
|
+
- Add JSDoc comments for public APIs
|
|
102
|
+
|
|
103
|
+
#### 3. Commit Your Changes
|
|
104
|
+
|
|
105
|
+
Use [Conventional Commits](https://www.conventionalcommits.org/) format:
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
<type>(<scope>): <subject>
|
|
109
|
+
|
|
110
|
+
<body>
|
|
111
|
+
|
|
112
|
+
<footer>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Types**:
|
|
116
|
+
|
|
117
|
+
- `feat`: New feature
|
|
118
|
+
- `fix`: Bug fix
|
|
119
|
+
- `docs`: Documentation
|
|
120
|
+
- `test`: Tests
|
|
121
|
+
- `refactor`: Code refactoring
|
|
122
|
+
- `chore`: Maintenance
|
|
123
|
+
- `ci`: CI/CD changes
|
|
124
|
+
- `perf`: Performance
|
|
125
|
+
- `style`: Code style
|
|
126
|
+
- `build`: Build system
|
|
127
|
+
|
|
128
|
+
**Scopes** (optional):
|
|
129
|
+
|
|
130
|
+
- `search`, `express`, `contents`, `shared`, `http`, `stdio`
|
|
131
|
+
|
|
132
|
+
**Examples**:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
git commit -m "feat(search): add freshness filter support"
|
|
136
|
+
git commit -m "fix(express): handle timeout errors gracefully"
|
|
137
|
+
git commit -m "docs: update API examples in README"
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
#### 4. Push and Create PR
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
git push origin feature/your-feature-name
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Then create a pull request on GitHub with:
|
|
147
|
+
|
|
148
|
+
- Clear title following commit conventions
|
|
149
|
+
- Description of changes and motivation
|
|
150
|
+
- Reference to related issues
|
|
151
|
+
- Screenshots/examples if applicable
|
|
152
|
+
|
|
153
|
+
#### 5. Code Review
|
|
154
|
+
|
|
155
|
+
- Maintainers will review your PR
|
|
156
|
+
- Address feedback constructively
|
|
157
|
+
- Keep PR focused (one feature/fix per PR)
|
|
158
|
+
- Be patient - reviews take time
|
|
159
|
+
|
|
160
|
+
**PR Checklist**:
|
|
161
|
+
|
|
162
|
+
- [ ] All tests pass (`bun test`)
|
|
163
|
+
- [ ] Code quality checks pass (`bun run check`)
|
|
164
|
+
- [ ] Documentation updated
|
|
165
|
+
- [ ] Commit messages follow conventions
|
|
166
|
+
- [ ] Branch is up-to-date with main
|
|
167
|
+
|
|
168
|
+
## Development Workflow
|
|
169
|
+
|
|
170
|
+
### Quality Checks
|
|
171
|
+
|
|
172
|
+
Before submitting:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
bun run check # Biome + TypeScript + package.json
|
|
176
|
+
bun test # Run all tests
|
|
177
|
+
bun test --coverage # Check coverage
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Git Hooks
|
|
181
|
+
|
|
182
|
+
Pre-commit hooks run automatically:
|
|
183
|
+
|
|
184
|
+
- Biome formatting and linting
|
|
185
|
+
- package.json formatting
|
|
186
|
+
|
|
187
|
+
**Never bypass hooks** with `--no-verify`
|
|
188
|
+
|
|
189
|
+
### Local Testing
|
|
190
|
+
|
|
191
|
+
Test with MCP Inspector:
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
bun run inspect
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Architecture
|
|
198
|
+
|
|
199
|
+
For codebase architecture, patterns, and technical details, see [AGENTS.md](./AGENTS.md).
|
|
200
|
+
|
|
201
|
+
## Getting Help
|
|
202
|
+
|
|
203
|
+
### Documentation
|
|
204
|
+
|
|
205
|
+
- **Users**: [README.md](./README.md)
|
|
206
|
+
- **Developers**: [AGENTS.md](./AGENTS.md)
|
|
207
|
+
- **API Reference**: [API.md](./docs/API.md)
|
|
208
|
+
- **You.com Docs**: https://documentation.you.com
|
|
209
|
+
|
|
210
|
+
### Support Channels
|
|
211
|
+
|
|
212
|
+
- **GitHub Issues**: Bug reports and feature requests
|
|
213
|
+
- **Email**: support@you.com
|
|
214
|
+
- **Web Support**: https://you.com/support/contact-us
|
|
215
|
+
|
|
216
|
+
### Maintainer Response Time
|
|
217
|
+
|
|
218
|
+
We aim to:
|
|
219
|
+
|
|
220
|
+
- Acknowledge issues within 48 hours
|
|
221
|
+
- Review PRs within 1 week
|
|
222
|
+
- Respond to questions within 3 business days
|
|
223
|
+
|
|
224
|
+
## Recognition
|
|
225
|
+
|
|
226
|
+
Contributors are recognized through:
|
|
227
|
+
|
|
228
|
+
- Co-authorship in commits (Git)
|
|
229
|
+
- Attribution in release notes
|
|
230
|
+
- GitHub contributor graph
|
|
231
|
+
- Acknowledgment in project documentation
|
|
232
|
+
|
|
233
|
+
## Types of Contributions We Value
|
|
234
|
+
|
|
235
|
+
Beyond code, we appreciate:
|
|
236
|
+
|
|
237
|
+
- ๐ Documentation improvements
|
|
238
|
+
- ๐ Bug reports with clear reproduction steps
|
|
239
|
+
- ๐ก Feature ideas and use case feedback
|
|
240
|
+
- ๐งช Test coverage improvements
|
|
241
|
+
- ๐จ UX/DX enhancements
|
|
242
|
+
- ๐ข Spreading the word about the project
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
**Thank you for contributing to You.com MCP Server!** ๐
|