# Spec- Allow defining DATABASE_URL through MCP env configuration- Query postgres data through tool - By default, make it readonly - Allow write ops by setting ENV `DANGEROUSLY_ALLOW_WRITE_OPS=true|1`- Access tables as `resources`- Use Zod for schema definitions
Read the following and follow @spec.md to understand what we want. All necesary dependeies are installed- @https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/refs/heads/main/README.md- @https://raw.githubusercontent.com/porsager/postgres/refs/heads/master/README.md
Based on the existig MCP server, create a new file that implements the HTTP protocol.Move shared logic to mcp-core, and name each transport implementation by name (mcp-server-stdio, mcp-server-http)@https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/refs/heads/main/README.md