File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 . WithStdioServerTransport ( )
1717 . WithToolsFromAssembly ( ) ;
1818
19- //var serverMode = args.Contains("--serverMode"); // 실행 인자에서 serverMode 설정
20-
2119var clientMode = args . Contains ( "--clientMode" ) ; // 실행 인자에서 clientMode 설정
2220
2321builder . Services . AddSingleton < ActorService > ( provider => new ActorService ( ! clientMode ) ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public ActorService(bool serverMode)
3939
4040 if ( serverMode )
4141 {
42- // 서버 모드일 때만 특정 액터를 초기화
42+ // 서버 모드일 때만 작동액터 생성 : MCP Server
4343 SearchActor = actorSystem . ActorOf < SearchActor > ( "search-actor" ) ;
4444 RecordActor = actorSystem . ActorOf < RecordActor > ( "record-actor" ) ;
4545 HistoryActor = actorSystem . ActorOf < HistoryActor > ( "history-actor" ) ;
@@ -56,7 +56,7 @@ public ActorService(bool serverMode)
5656 }
5757 else
5858 {
59- // 클라이언트 모드일 때 원격 액터 참조
59+ // 클라이언트 모드일 때 원격 액터 참조 : MCP Client
6060 var remoteAddress = "akka.tcp://MyActorSystem@127.0.0.1:5500" ;
6161 SearchActor = actorSystem . ActorSelection ( $ "{ remoteAddress } /user/search-actor")
6262 . ResolveOne ( TimeSpan . FromSeconds ( 3 ) ) . Result ;
You can’t perform that action at this time.
0 commit comments