MCPcopy Index your code
hub / github.com/commandoperator/cmdop-sdk / publish

Method publish

python/src/cmdop/resources/skills.py:158–178  ·  view source on GitHub ↗

Publish a new version. The server LLM-parses ``raw_manifest`` async; poll :meth:`publish_status` for the result.

(
        self,
        slug: str,
        raw_manifest: str,
        *,
        skill_md: str | None = None,
        readme: str | None = None,
        changelog: str | None = None,
    )

Source from the content-addressed store, hash-verified

156 # -- publish (async) ---------------------------------------------------
157
158 async def publish(
159 self,
160 slug: str,
161 raw_manifest: str,
162 *,
163 skill_md: str | None = None,
164 readme: str | None = None,
165 changelog: str | None = None,
166 ) -> SkillsPublishResponse:
167 """Publish a new version. The server LLM-parses ``raw_manifest`` async;
168 poll :meth:`publish_status` for the result."""
169 req = pb.Envelope(
170 skills_publish_req=s_pb.SkillsPublishRequest(
171 slug=slug,
172 raw_manifest=raw_manifest,
173 skill_md=skill_md,
174 readme=readme,
175 changelog=changelog,
176 )
177 )
178 return (await self._unary(req)).skills_publish_resp
179
180 async def publish_status(self, slug: str) -> SkillsPublishStatusResponse:
181 req = pb.Envelope(

Callers

nothing calls this directly

Calls 1

_unaryMethod · 0.80

Tested by

no test coverage detected