dealspace/mcp/server.go

26 lines
836 B
Go

package mcp
import "github.com/mish/dealspace/lib"
// Server is the MCP server for exposing deal context to AI tools.
// All tools operate within (actor, project) context — full RBAC enforced.
//
// Read tools: list requests, query answers, check status, get workstream summary.
// Write tools: AI-suggested routing (human confirmation required before state change).
// Gating: AI cannot read pre_dataroom content without explicit unlock.
// Server holds MCP server state.
type Server struct {
DB *lib.DB
Cfg *lib.Config
Store lib.ObjectStore
}
// NewServer creates a new MCP server. Stub.
func NewServer(db *lib.DB, cfg *lib.Config, store lib.ObjectStore) *Server {
return &Server{DB: db, Cfg: cfg, Store: store}
}
// TODO: implement MCP tool registration and dispatch
// See MCP-SPEC.md for detailed tool definitions.