Repository navigation
Replies: 1 comment
|
澄清: 技能扩展的资源读取是通往存储包的字节级精确通道,而不是渲染后的内容通道。具体而言:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Expose OpenViking's installed skills through the official
io.modelcontextprotocol/skillsextension (SEP-2640), reusing the existing context filesystem, retrieval tools, authentication, and package snapshot handling.This RFC is the place to agree on the public MCP contract before proceeding with the draft implementation: PR #8834. The original tracking issue is #8832.
Motivation
OpenViking already installs skill packages, retrieves them with
find(context_type="skill"), and reads their files withreadandlist. A host implementing Skills over MCP should be able to discover those same packages, inspect their metadata, and load the needed files without a separate skill store or a client-specific integration.The target is general MCP hosts. pi is one interoperability target; its behavior should not define the server contract. Native remote-skill support, ordinary MCP tools, and local Agent Skills support must be treated as separate capabilities.
Proposed public interface
Use the existing
/mcpendpoint with the released Skills Beta specification on MCP revision2026-07-28:server/discoverskills/listskills/getSKILL.mdURIresources/readresources/directory/readKeep existing canonical URIs:
viking://user/{user_id}/skills/{name}/SKILL.mdviking://agent/skills/{name}/SKILL.mdFor example, a URI returned by
find(context_type="skill")can be passed unchanged toskills/get. Entries contain the complete stored frontmatter and a per-file{uri, digest, size}manifest. Same-named private and shared skills remain separate entries. Clients follow all continuation cursors, including after an empty page.Reuse and ownership
readkeeps its existing behavior and is not the integrity-verification byte source.Usage guidance and client compatibility
Provide a short overview through server
instructions, returned by legacyinitializeand modernserver/discover. A host may ignore, truncate, or defer this text, so the existingfind,read, andlistdescriptions should independently explain how to load a workflow, resolve its supporting files, and treatviking://as remote URIs.Do not add a virtual bootstrap skill that users must load merely to learn how to use OpenViking.
find→read(SKILL.md)→list/readsupporting filesTool-based content access does not establish native skill registration or integrity verification. Client configuration follows each product's format; a pi-specific protocol-selection setting is not a universal configuration field.
Initial implementation and tradeoff
The supported Python MCP SDK 1.x cannot decode the modern methods. The draft therefore routes explicitly selected modern requests through a thin adapter behind the existing identity middleware, while older requests continue through the SDK transport. It reuses the SDK tool registry and result/error handling rather than copying tool implementations.
This preserves the current endpoint and dependencies, but adds transport maintenance and relies on SDK internals for registered tool dispatch. An alternative is to wait for, or adopt, a supported SDK release implementing the same protocol and extension. The catalog itself should remain reusable either way.
The adapter does not advertise sampling, elicitation, subscriptions, or execution capabilities.
Evidence and remaining acceptance
The upstream-based draft branch passes 29 focused tests, Ruff/format checks, type checking for the three new modules, and bilingual documentation checks. Tests exercise the actual MCP/identity/catalog/filesystem code with the existing disk-backed test backend. Local Termux imports isolate unused optional gRPC/parser dependencies; this is not a production dependency validation.
Independent localhost HTTP checks passed with the official Python MCP SDK 1.27 for legacy tools and with pi-mcp for modern skill/resource methods plus legacy tools. These results do not establish native skill activation in either pi or other hosts.
Remaining acceptance includes native activation in Claude Code and VS Code, capability checks for other hosts, gateway/stdio forwarding, the newer official SDK, and the official conformance suite. Native RAGFS, the native privacy matcher, and real-model automatic skill selection were not covered by the local checks. Protocol interoperability, tool content access, and native activation will be recorded separately.
Questions for maintainers
/mcpendpoint fit the intended OpenViking MCP boundary?After agreement, the draft can be revised around the accepted boundary and remaining acceptance work. The ownership split is consistent with the remote-skill discussion in RFC #3656: OpenViking stores/retrieves skills and the host activates/executes them. This RFC adds a standard MCP publication surface rather than a host runtime. Vika's instance-scoped runtime capabilities in #7184 are another separate integration surface.
Reference: official Skills extension Beta specification, pinned for the draft to ext-skills commit
c040fe23ec084fbb540390f994a50c8c75e72f7b.All reactions