discourse-mcp/package.json
Rafael dos Santos Silva f295461471
feat: add optional HTTP transport support (#10)
Add support for running the MCP server over HTTP using Streamable HTTP transport as an alternative to stdio. This enables deployment scenarios where HTTP-based communication is preferred.

Changes:
- Add --transport flag (stdio|http) to switch between transport modes
- Add --port flag to configure HTTP server port (default: 3000)
- Implement StreamableHTTPServerTransport in stateless mode with JSON responses
- Add /health endpoint for monitoring HTTP server status
- Add /mcp endpoint for MCP communication
- Include comprehensive tests for HTTP transport functionality
- Update documentation with HTTP transport usage examples

The default behavior remains unchanged (stdio transport), ensuring backward compatibility.
2025-10-17 18:02:29 -03:00

46 lines
1.2 KiB
JSON

{
"name": "@discourse/mcp",
"version": "0.1.7",
"description": "Discourse MCP CLI server (stdio) exposing Discourse tools via MCP",
"private": false,
"type": "module",
"bin": {
"discourse-mcp": "dist/index.js"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.json",
"prepublishOnly": "pnpm run build",
"dev": "node --enable-source-maps dist/index.js",
"typecheck": "tsc --noEmit",
"clean": "rm -rf dist",
"sync:fixtures": "node scripts/sync-fixtures.mjs",
"test": "node --test dist/test/**/*.js",
"release": "standard-version",
"release:dry": "standard-version --dry-run",
"release:alpha": "standard-version --prerelease alpha",
"release:beta": "standard-version --prerelease beta"
},
"files": [
"dist/**",
"README.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.14.10",
"standard-version": "^9.5.0",
"typescript": "^5.5.4"
},
"packageManager": "pnpm@10.14.0"
}