Skip to content

refactor(agents): bump skillserver, drop redundant Name from list_skills output#9916

Merged
mudler merged 1 commit into
masterfrom
worktree-fix-9868-agent-skills
May 21, 2026
Merged

refactor(agents): bump skillserver, drop redundant Name from list_skills output#9916
mudler merged 1 commit into
masterfrom
worktree-fix-9868-agent-skills

Conversation

@localai-bot
Copy link
Copy Markdown
Collaborator

@localai-bot localai-bot commented May 20, 2026

Summary

Cleanup, not a fix for #9868.

skillserver's list_skills MCP tool was emitting every entry with name: "" (the field was commented out in pkg/mcp/tools.go), while search_skills was populating it — two tools with inconsistent shape over the same data. skill.Name and skill.ID are both set from the same source string (FileSystemManager.readSkillFromPath: Name: skillName; ID: skillName), so returning both was pure duplication.

This PR:

  • Bumps github.com/mudler/skillserver to commit a7317cb, which drops Name from both SkillInfo and SearchResult. ID stays as the single canonical identifier (already what read_skill takes as input).
  • Adds core/services/skills/skills_mcp_test.go, a Ginkgo regression that drives the LocalAI FilesystemManager through an in-process MCP session and asserts a newly-created skill is visible by ID on the still-open session — guards the manager↔session lifecycle.

Note on #9868

This started as an attempt at #9868, but the empty-name cosmetic isn't a plausible cause of "skills_list is always empty []" — the LLM would still get id populated. #9868 stays open; this PR is just the dependency cleanup that surfaced along the way.

Test plan

  • go test ./core/services/skills/ -run TestSkillsMCP — passes.
  • Manual smoke: create a skill via the UI, enable Skills on an agent, ask "what skills do you have" — should still work (no regression from the field removal).

@mudler mudler force-pushed the worktree-fix-9868-agent-skills branch from 9f67d19 to 694088e Compare May 20, 2026 22:10
@localai-bot localai-bot changed the title fix(agents): expose skill names to agents via list_skills MCP tool refactor(agents): bump skillserver, drop redundant Name from list_skills output May 20, 2026
…lls/search_skills

skillserver's list_skills MCP tool used to ship every entry with name=""
(field was commented out), while search_skills populated it - two tools
with inconsistent shape for the same data. skill.Name and skill.ID are
populated from the same source string anyway (the directory name), so
returning both was pure duplication.

Bumps github.com/mudler/skillserver to a7317cb, which drops the Name
field from both SkillInfo and SearchResult and leaves ID as the single
canonical identifier (already what read_skill consumes).

Adds core/services/skills/skills_mcp_test.go, a regression that drives
the LocalAI FilesystemManager through an in-process MCP session and
asserts a newly-created skill is visible by ID on the still-open session.

This is a cleanup, not the root cause of #9868 - the reporter likely
sees something deeper than a cosmetic JSON shape issue.

Assisted-by: Claude:claude-opus-4-7 [Claude Code]
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler force-pushed the worktree-fix-9868-agent-skills branch from 694088e to 230665d Compare May 21, 2026 11:10
@mudler mudler merged commit 4c234ab into master May 21, 2026
56 checks passed
@mudler mudler deleted the worktree-fix-9868-agent-skills branch May 21, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants