README.md
[!NOTE] This is a demo version currently supporting Chinese only. A full-featured version with better customization and English content support will be released later.
Elegant reading of real-time and hottest news
{
"mcpServers": {
"newsnow": {
"command": "npx",
"args": [
"-y",
"newsnow-mcp-server"
],
"env": {
"BASE_URL": "https://newsnow.busiyi.world"
}
}
}
}
You can change the BASE_URL to your own domain.
For deployments without login and caching:
pnpm run builddist/output/publichttps://your-domain.com/api/oauth/github (replace your-domain with your actual domain)Refer to example.env.server. For local development, rename it to .env.server and configure:
# Github Client ID
G_CLIENT_ID=
# Github Client Secret
G_CLIENT_SECRET=
# JWT Secret, usually the same as Client Secret
JWT_SECRET=
# Initialize database, must be set to true on first run, can be turned off afterward
INIT_TABLE=true
# Whether to enable cache
ENABLE_CACHE=true
Supported database connectors: https://db0.unjs.io/connectors Cloudflare D1 Database is recommended.
In project root directory:
docker compose up
You can also set Environment Variables in docker-compose.yml.
[!Note] Requires Node.js >= 20
corepack enable
pnpm i
pnpm dev
Refer to shared/sources and server/sources directories. The project provides complete type definitions and a clean architecture.
For detailed instructions on how to add new sources, see CONTRIBUTING.md.
release when ready
Contributions are welcome! Feel free to submit pull requests or create issues for feature requests and bug reports.
See CONTRIBUTING.md for detailed guidelines on how to contribute, especially for adding new data sources.
MIT © ourongxing