remove mcp file from session namespace

- Remove mcp from session file list and read handler
- Remove mcp from ctl command list
- Remove mcp from server.go mode switch
- Update README: remove mcp from file table and ctl docs
This commit is contained in:
Levi Neely 2026-04-21 13:25:49 +02:00
parent 07c3e14f50
commit 2ac8ca8639
3 changed files with 4 additions and 8 deletions

View File

@ -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/<session-id>/ctl
echo "model qwen3:8b" > $OLLIE/s/<session-id>/ctl
```
`ctl` accepts only recognized commands: `stop`, `kill`, `rn <name>`, `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 <name>`, `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

View File

@ -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

View File

@ -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: