diff --git a/README.md b/README.md index be3e756..1b1c238 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,6 @@ ollie/ cwdwait read: blocks until cwd changes; returns new value fifo.in write: queue a prompt for later execution fifo.out read: pop the next queued prompt - mcp read: MCP server list model r/w: active model name models read: available models from the backend prompt write: submit a prompt to the agent @@ -164,7 +163,7 @@ echo "rn my-name" > $OLLIE/s//ctl echo "model qwen3:8b" > $OLLIE/s//ctl ``` -`ctl` accepts only recognized commands: `stop`, `kill`, `rn `, `compact`, `clear`, `backend`, `model`, `models`, `agents`, `agent`, `sessions`, `cwd`, `skills`, `tools`, `mcp`, `context`, `usage`, `history`, `irw`, `help`. The `/` prefix is added automatically. Unrecognized input is rejected with an error. +`ctl` accepts only recognized commands: `stop`, `kill`, `rn `, `compact`, `clear`, `backend`, `model`, `models`, `agents`, `agent`, `sessions`, `cwd`, `skills`, `tools`, `context`, `usage`, `history`, `irw`, `help`. The `/` prefix is added automatically. Unrecognized input is rejected with an error. ### Switch backend, model, or agent diff --git a/internal/p9/server.go b/internal/p9/server.go index 9d52de2..a7d2e15 100644 --- a/internal/p9/server.go +++ b/internal/p9/server.go @@ -22,7 +22,7 @@ // agent (r/w) active agent name // model (r/w) active model name // models (read) available models from the backend -// mcp (read) MCP server list +// models (read) available models // cwd (r/w) working directory // usage (read) token counts // ctxsz (read) context size vs window @@ -1564,7 +1564,7 @@ func (s *Server) makeStat(path string) plan9.Dir { switch base { case "ctl", "prompt", "fifo.in": mode = 0200 - case "chat", "state", "usage", "ctxsz", "models", "mcp", "fifo.out": + case "chat", "state", "usage", "ctxsz", "models", "fifo.out": mode = 0444 case "backend", "agent", "model", "cwd": mode = 0666 diff --git a/internal/p9/sessionfilestore.go b/internal/p9/sessionfilestore.go index bd3f280..ad18312 100644 --- a/internal/p9/sessionfilestore.go +++ b/internal/p9/sessionfilestore.go @@ -35,7 +35,6 @@ var sessionFileList = []struct { {"ctxsz", 0444}, {"ctxszwait", 0444}, {"models", 0444}, - {"mcp", 0444}, {"systemprompt", 0444}, {"params", 0666}, } @@ -260,8 +259,6 @@ func (s *SessionFileStore) content(name string) string { return s.sess.core.CtxSz() + "\n" case "models": return s.sess.core.ListModels() + "\n" - case "mcp": - return s.sess.core.ListServers() + "\n" case "systemprompt": return s.sess.core.SystemPrompt() case "offset": @@ -366,7 +363,7 @@ func (s *SessionFileStore) handleCtl(input string) error { return s.saveTranscript(data) case "compact", "clear", "backend", "model", "models", "agents", "agent", "sessions", "cwd", "skills", - "tools", "mcp", "context", "usage", "history", + "tools", "context", "usage", "history", "irw", "help": s.sess.core.Submit(s.sess.ctx, "/"+input, s.makePublish()) default: