Move module identity to our own Forgejo instance. All import paths updated across 434 Go files, sub-module go.mod files, and go.work. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
404 B
Go
15 lines
404 B
Go
package mcp
|
|
|
|
import (
|
|
"context"
|
|
|
|
"forge.lthn.ai/core/cli/pkg/log"
|
|
"github.com/modelcontextprotocol/go-sdk/mcp"
|
|
)
|
|
|
|
// ServeStdio starts the MCP server over stdin/stdout.
|
|
// This is the default transport for CLI integrations.
|
|
func (s *Service) ServeStdio(ctx context.Context) error {
|
|
s.logger.Info("MCP Stdio server starting", "user", log.Username())
|
|
return s.server.Run(ctx, &mcp.StdioTransport{})
|
|
}
|