MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / pin

Method pin

python/src/cmdop/streaming.py:199–207  ·  view source on GitHub ↗

Answer a ``pin_required`` frame with the entered connection PIN.

(self, challenge_id: str, pin: str)

Source from the content-addressed store, hash-verified

197 yield _frame_from_envelope(item)
198
199 async def pin(self, challenge_id: str, pin: str) -> None:
200 """Answer a ``pin_required`` frame with the entered connection PIN."""
201 await self._t.write_answer(
202 pb.Envelope(
203 id=self._require_id(),
204 kind=pb.Envelope.KIND_ANSWER,
205 pin_answer=m_pb.PinAnswer(challenge_id=challenge_id, pin=pin),
206 )
207 )
208
209 async def confirm(self, token: str, accept: bool) -> None:
210 """Answer a ``confirm_required`` frame. ``accept=True`` resumes the

Calls 2

_require_idMethod · 0.95
write_answerMethod · 0.80