Add mcp http server

This commit is contained in:
2026-04-16 11:51:24 +05:30
parent 2a44b77101
commit db0e249874
5 changed files with 363 additions and 6 deletions
+24
View File
@@ -50,6 +50,8 @@ Add to your MCP client configuration using `bunx` (no installation required):
```
**OpenCode** (global config `~/.config/opencode/opencode.json` or project config `opencode.json`):
*stdio (local process):*
```json
{
"$schema": "https://opencode.ai/config.json",
@@ -63,6 +65,28 @@ Add to your MCP client configuration using `bunx` (no installation required):
}
```
*http (stateless JSON server):*
```json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"ask262": {
"type": "remote",
"url": "http://localhost:3000/mcp",
"enabled": true
}
}
}
```
Start the HTTP server first:
```bash
bun run mcp-http # Development
ask262-http # After npm install -g
# Or with custom port:
ASK262_PORT=8080 ask262-http
```
## Available Tools
| Tool | Description |