@vicoa/cli 0.1.4 → 1.3.10-darwin-arm64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/_internal/81d243bd2c585b0f4821__mypyc.cpython-312-darwin.so +0 -0
- package/bin/_internal/Python +0 -0
- package/bin/_internal/Python.framework/Python +0 -0
- package/bin/_internal/Python.framework/Resources/Info.plist +30 -0
- package/bin/_internal/Python.framework/Versions/3.12/Python +0 -0
- package/bin/_internal/Python.framework/Versions/3.12/Resources/Info.plist +30 -0
- package/bin/_internal/Python.framework/Versions/Current/Python +0 -0
- package/bin/_internal/Python.framework/Versions/Current/Resources/Info.plist +30 -0
- package/bin/_internal/_cffi_backend.cpython-312-darwin.so +0 -0
- package/bin/_internal/aiofile-3.9.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/aiofile-3.9.0.dist-info/LICENCE +195 -0
- package/bin/_internal/aiofile-3.9.0.dist-info/LICENCE.md +195 -0
- package/bin/_internal/aiofile-3.9.0.dist-info/METADATA +492 -0
- package/bin/_internal/aiofile-3.9.0.dist-info/RECORD +15 -0
- package/bin/_internal/aiofile-3.9.0.dist-info/WHEEL +4 -0
- package/bin/_internal/aiohttp/_http_parser.cpython-312-darwin.so +0 -0
- package/bin/_internal/aiohttp/_http_writer.cpython-312-darwin.so +0 -0
- package/bin/_internal/aiohttp/_websocket/mask.cpython-312-darwin.so +0 -0
- package/bin/_internal/aiohttp/_websocket/reader_c.cpython-312-darwin.so +0 -0
- package/bin/_internal/attrs-26.1.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/attrs-26.1.0.dist-info/METADATA +199 -0
- package/bin/_internal/attrs-26.1.0.dist-info/RECORD +55 -0
- package/bin/_internal/attrs-26.1.0.dist-info/WHEEL +4 -0
- package/bin/_internal/attrs-26.1.0.dist-info/licenses/LICENSE +21 -0
- package/bin/_internal/base_library.zip +0 -0
- package/bin/_internal/caio/thread_aio.cpython-312-darwin.so +0 -0
- package/bin/_internal/certifi/cacert.pem +4494 -0
- package/bin/_internal/certifi/py.typed +0 -0
- package/bin/_internal/charset_normalizer/cd.cpython-312-darwin.so +0 -0
- package/bin/_internal/charset_normalizer/md.cpython-312-darwin.so +0 -0
- package/bin/_internal/click-8.3.2.dist-info/INSTALLER +1 -0
- package/bin/_internal/click-8.3.2.dist-info/METADATA +84 -0
- package/bin/_internal/click-8.3.2.dist-info/RECORD +40 -0
- package/bin/_internal/click-8.3.2.dist-info/WHEEL +4 -0
- package/bin/_internal/click-8.3.2.dist-info/licenses/LICENSE.txt +28 -0
- package/bin/_internal/cryptography/hazmat/bindings/_rust.abi3.so +0 -0
- package/bin/_internal/cryptography-46.0.7.dist-info/INSTALLER +1 -0
- package/bin/_internal/cryptography-46.0.7.dist-info/METADATA +139 -0
- package/bin/_internal/cryptography-46.0.7.dist-info/RECORD +180 -0
- package/bin/_internal/cryptography-46.0.7.dist-info/WHEEL +4 -0
- package/bin/_internal/cryptography-46.0.7.dist-info/licenses/LICENSE +3 -0
- package/bin/_internal/cryptography-46.0.7.dist-info/licenses/LICENSE.APACHE +202 -0
- package/bin/_internal/cryptography-46.0.7.dist-info/licenses/LICENSE.BSD +27 -0
- package/bin/_internal/email_validator-2.3.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/email_validator-2.3.0.dist-info/METADATA +466 -0
- package/bin/_internal/email_validator-2.3.0.dist-info/RECORD +27 -0
- package/bin/_internal/email_validator-2.3.0.dist-info/WHEEL +5 -0
- package/bin/_internal/email_validator-2.3.0.dist-info/entry_points.txt +2 -0
- package/bin/_internal/email_validator-2.3.0.dist-info/licenses/LICENSE +27 -0
- package/bin/_internal/email_validator-2.3.0.dist-info/top_level.txt +1 -0
- package/bin/_internal/frozenlist/_frozenlist.cpython-312-darwin.so +0 -0
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/INSTALLER +1 -0
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/METADATA +133 -0
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/RECORD +33 -0
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/WHEEL +5 -0
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/licenses/LICENSE +73 -0
- package/bin/_internal/importlib_metadata-8.7.1.dist-info/top_level.txt +1 -0
- package/bin/_internal/integrations/cli_wrappers/IMPORTANT_USE_CASES.md +33 -0
- package/bin/_internal/integrations/github/claude-code-action/CLAUDE.md +136 -0
- package/bin/_internal/integrations/github/claude-code-action/CODE_OF_CONDUCT.md +128 -0
- package/bin/_internal/integrations/github/claude-code-action/CONTRIBUTING.md +116 -0
- package/bin/_internal/integrations/github/claude-code-action/LICENSE +21 -0
- package/bin/_internal/integrations/github/claude-code-action/README.md +53 -0
- package/bin/_internal/integrations/github/claude-code-action/ROADMAP.md +20 -0
- package/bin/_internal/integrations/github/claude-code-action/SECURITY.md +15 -0
- package/bin/_internal/integrations/github/claude-code-action/action.yml +294 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/CLAUDE.md +60 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/CODE_OF_CONDUCT.md +128 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/CONTRIBUTING.md +136 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/LICENSE +21 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/MIRROR_DISCLAIMER.md +11 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/README.md +521 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/action.yml +149 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/bun.lock +54 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/examples/issue-triage.yml +108 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/package.json +23 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/scripts/install-hooks.sh +13 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/scripts/pre-push +46 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/index.ts +82 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/prepare-prompt.ts +82 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/run-claude.ts +257 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/run-vicoa.ts +301 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/setup-claude-code-settings.ts +68 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/src/validate-env.ts +54 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/test-local.sh +12 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/test-mcp-local.sh +18 -0
- package/bin/_internal/integrations/github/claude-code-action/base-action/tsconfig.json +30 -0
- package/bin/_internal/integrations/github/claude-code-action/bun.lock +384 -0
- package/bin/_internal/integrations/github/claude-code-action/docs/capabilities-and-limitations.md +33 -0
- package/bin/_internal/integrations/github/claude-code-action/docs/cloud-providers.md +99 -0
- package/bin/_internal/integrations/github/claude-code-action/docs/configuration.md +345 -0
- package/bin/_internal/integrations/github/claude-code-action/docs/custom-automations.md +113 -0
- package/bin/_internal/integrations/github/claude-code-action/docs/experimental.md +128 -0
- package/bin/_internal/integrations/github/claude-code-action/docs/faq.md +205 -0
- package/bin/_internal/integrations/github/claude-code-action/docs/migration-guide.md +261 -0
- package/bin/_internal/integrations/github/claude-code-action/docs/security.md +38 -0
- package/bin/_internal/integrations/github/claude-code-action/docs/setup.md +146 -0
- package/bin/_internal/integrations/github/claude-code-action/docs/usage.md +213 -0
- package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci/auto-fix-ci.yml +97 -0
- package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci/commands/fix-ci.md +127 -0
- package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci-signed/auto-fix-ci-signed.yml +97 -0
- package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci-signed/commands/fix-ci-signed.md +148 -0
- package/bin/_internal/integrations/github/claude-code-action/examples/issue-deduplication.yml +63 -0
- package/bin/_internal/integrations/github/claude-code-action/examples/issue-triage.yml +75 -0
- package/bin/_internal/integrations/github/claude-code-action/examples/vicoa.yml +75 -0
- package/bin/_internal/integrations/github/claude-code-action/package.json +31 -0
- package/bin/_internal/integrations/github/claude-code-action/scripts/install-hooks.sh +13 -0
- package/bin/_internal/integrations/github/claude-code-action/scripts/pre-commit +46 -0
- package/bin/_internal/integrations/github/claude-code-action/scripts/setup-network-restrictions.sh +123 -0
- package/bin/_internal/integrations/github/claude-code-action/src/create-prompt/index.ts +799 -0
- package/bin/_internal/integrations/github/claude-code-action/src/create-prompt/types.ts +102 -0
- package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/collect-inputs.ts +58 -0
- package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/format-turns.ts +465 -0
- package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/prepare.ts +98 -0
- package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/update-comment-link.ts +245 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/api/client.ts +23 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/api/config.ts +4 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/api/queries/github.ts +117 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/context.ts +277 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/data/fetcher.ts +233 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/data/formatter.ts +144 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/branch-cleanup.ts +132 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/branch.ts +163 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comment-logic.ts +203 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/common.ts +33 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/create-initial.ts +111 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/update-claude-comment.ts +70 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/update-with-branch.ts +57 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/operations/git-config.ts +62 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/token.ts +108 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/types.ts +98 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/utils/image-downloader.ts +246 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/utils/sanitizer.ts +100 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/validation/actor.ts +64 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/validation/permissions.ts +47 -0
- package/bin/_internal/integrations/github/claude-code-action/src/github/validation/trigger.ts +148 -0
- package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-actions-server.ts +279 -0
- package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-comment-server.ts +101 -0
- package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-file-ops-server.ts +677 -0
- package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-inline-comment-server.ts +184 -0
- package/bin/_internal/integrations/github/claude-code-action/src/mcp/install-mcp-server.ts +201 -0
- package/bin/_internal/integrations/github/claude-code-action/src/modes/agent/index.ts +152 -0
- package/bin/_internal/integrations/github/claude-code-action/src/modes/agent/parse-tools.ts +22 -0
- package/bin/_internal/integrations/github/claude-code-action/src/modes/detector.ts +66 -0
- package/bin/_internal/integrations/github/claude-code-action/src/modes/registry.ts +54 -0
- package/bin/_internal/integrations/github/claude-code-action/src/modes/tag/index.ts +187 -0
- package/bin/_internal/integrations/github/claude-code-action/src/modes/types.ts +100 -0
- package/bin/_internal/integrations/github/claude-code-action/src/prepare/index.ts +20 -0
- package/bin/_internal/integrations/github/claude-code-action/src/prepare/types.ts +20 -0
- package/bin/_internal/integrations/github/claude-code-action/src/utils/retry.ts +40 -0
- package/bin/_internal/integrations/github/claude-code-action/tsconfig.json +30 -0
- package/bin/_internal/integrations/n8n/LICENSE +21 -0
- package/bin/_internal/integrations/n8n/README.md +298 -0
- package/bin/_internal/integrations/n8n/package-lock.json +2989 -0
- package/bin/_internal/integrations/n8n/package.json +68 -0
- package/bin/_internal/integrations/n8n/src/credentials/OmnaraApi.credentials.ts +52 -0
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/Omnara.node.json +35 -0
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/Omnara.node.ts +304 -0
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/message/index.ts +37 -0
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/message/send.operation.ts +151 -0
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/message/sendAndWait.operation.ts +252 -0
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/session/end.operation.ts +56 -0
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/actions/session/index.ts +29 -0
- package/bin/_internal/integrations/n8n/src/nodes/Omnara/vicoa.png +0 -0
- package/bin/_internal/integrations/n8n/src/utils/GenericFunctions.ts +93 -0
- package/bin/_internal/integrations/n8n/src/utils/sendAndWait/configureWaitTillDate.ts +42 -0
- package/bin/_internal/integrations/n8n/src/utils/sendAndWait/descriptions.ts +20 -0
- package/bin/_internal/integrations/n8n/src/utils/sendAndWaitWebhook.ts +72 -0
- package/bin/_internal/integrations/n8n/tsconfig.json +20 -0
- package/bin/_internal/jiter/jiter.cpython-312-darwin.so +0 -0
- package/bin/_internal/jsonschema/benchmarks/issue232/issue.json +2653 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/METADATA +170 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/RECORD +82 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/WHEEL +4 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/entry_points.txt +2 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/licenses/COPYING +19 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/metaschema.json +42 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/applicator +56 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/content +17 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/core +57 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/format +14 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/meta-data +37 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/validation +98 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/metaschema.json +58 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/applicator +48 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/content +17 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/core +51 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/format-annotation +14 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/format-assertion +14 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/meta-data +37 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/unevaluated +15 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/validation +98 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft3/metaschema.json +172 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft4/metaschema.json +149 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft6/metaschema.json +153 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft7/metaschema.json +166 -0
- package/bin/_internal/libcrypto.3.dylib +0 -0
- package/bin/_internal/libssl.3.dylib +0 -0
- package/bin/_internal/mcp-1.27.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/mcp-1.27.0.dist-info/METADATA +230 -0
- package/bin/_internal/mcp-1.27.0.dist-info/RECORD +226 -0
- package/bin/_internal/mcp-1.27.0.dist-info/WHEEL +4 -0
- package/bin/_internal/mcp-1.27.0.dist-info/entry_points.txt +2 -0
- package/bin/_internal/mcp-1.27.0.dist-info/licenses/LICENSE +21 -0
- package/bin/_internal/multidict/_multidict.cpython-312-darwin.so +0 -0
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/METADATA +45 -0
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/RECORD +81 -0
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/WHEEL +4 -0
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/entry_points.txt +15 -0
- package/bin/_internal/opentelemetry_api-1.41.0.dist-info/licenses/LICENSE +201 -0
- package/bin/_internal/propcache/_helpers_c.cpython-312-darwin.so +0 -0
- package/bin/_internal/pydantic-2.13.2.dist-info/INSTALLER +1 -0
- package/bin/_internal/pydantic-2.13.2.dist-info/METADATA +1269 -0
- package/bin/_internal/pydantic-2.13.2.dist-info/RECORD +217 -0
- package/bin/_internal/pydantic-2.13.2.dist-info/WHEEL +4 -0
- package/bin/_internal/pydantic-2.13.2.dist-info/licenses/LICENSE +21 -0
- package/bin/_internal/pydantic_core/_pydantic_core.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_asyncio.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_bisect.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_blake2.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_bz2.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_cn.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_hk.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_iso2022.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_jp.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_kr.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_codecs_tw.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_contextvars.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_csv.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_ctypes.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_datetime.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_decimal.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_hashlib.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_heapq.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_json.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_lzma.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_md5.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_multibytecodec.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_multiprocessing.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_opcode.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_pickle.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_posixshmem.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_posixsubprocess.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_queue.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_random.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_scproxy.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sha1.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sha2.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sha3.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_socket.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_ssl.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_statistics.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_struct.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_uuid.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_zoneinfo.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/array.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/binascii.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/fcntl.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/grp.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/math.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/mmap.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/pyexpat.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/readline.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/resource.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/select.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/syslog.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/termios.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/unicodedata.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/zlib.cpython-312-darwin.so +0 -0
- package/bin/_internal/rpds/rpds.cpython-312-darwin.so +0 -0
- package/bin/_internal/setuptools/_vendor/jaraco/text/Lorem ipsum.txt +2 -0
- package/bin/_internal/vicoa/_bin/README.md +28 -0
- package/bin/_internal/vicoa-1.3.10.dist-info/INSTALLER +1 -0
- package/bin/_internal/vicoa-1.3.10.dist-info/METADATA +311 -0
- package/bin/_internal/vicoa-1.3.10.dist-info/RECORD +11 -0
- package/bin/_internal/vicoa-1.3.10.dist-info/REQUESTED +0 -0
- package/bin/_internal/vicoa-1.3.10.dist-info/WHEEL +5 -0
- package/bin/_internal/vicoa-1.3.10.dist-info/direct_url.json +1 -0
- package/bin/_internal/vicoa-1.3.10.dist-info/entry_points.txt +2 -0
- package/bin/_internal/vicoa-1.3.10.dist-info/licenses/LICENSE +201 -0
- package/bin/_internal/vicoa-1.3.10.dist-info/top_level.txt +3 -0
- package/bin/_internal/watchfiles/_rust_notify.cpython-312-darwin.so +0 -0
- package/bin/_internal/websockets/speedups.cpython-312-darwin.so +0 -0
- package/bin/_internal/websockets-16.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/websockets-16.0.dist-info/METADATA +179 -0
- package/bin/_internal/websockets-16.0.dist-info/RECORD +108 -0
- package/bin/_internal/websockets-16.0.dist-info/WHEEL +6 -0
- package/bin/_internal/websockets-16.0.dist-info/entry_points.txt +2 -0
- package/bin/_internal/websockets-16.0.dist-info/licenses/LICENSE +24 -0
- package/bin/_internal/websockets-16.0.dist-info/top_level.txt +1 -0
- package/bin/_internal/yaml/_yaml.cpython-312-darwin.so +0 -0
- package/bin/_internal/yarl/_quoting_c.cpython-312-darwin.so +0 -0
- package/bin/vicoa +0 -0
- package/package.json +10 -17
- package/README.md +0 -57
- package/bin/vicoa.js +0 -38
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-06/schema#",
|
|
3
|
+
"$id": "http://json-schema.org/draft-06/schema#",
|
|
4
|
+
"title": "Core schema meta-schema",
|
|
5
|
+
"definitions": {
|
|
6
|
+
"schemaArray": {
|
|
7
|
+
"type": "array",
|
|
8
|
+
"minItems": 1,
|
|
9
|
+
"items": { "$ref": "#" }
|
|
10
|
+
},
|
|
11
|
+
"nonNegativeInteger": {
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"minimum": 0
|
|
14
|
+
},
|
|
15
|
+
"nonNegativeIntegerDefault0": {
|
|
16
|
+
"allOf": [
|
|
17
|
+
{ "$ref": "#/definitions/nonNegativeInteger" },
|
|
18
|
+
{ "default": 0 }
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"simpleTypes": {
|
|
22
|
+
"enum": [
|
|
23
|
+
"array",
|
|
24
|
+
"boolean",
|
|
25
|
+
"integer",
|
|
26
|
+
"null",
|
|
27
|
+
"number",
|
|
28
|
+
"object",
|
|
29
|
+
"string"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"stringArray": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": { "type": "string" },
|
|
35
|
+
"uniqueItems": true,
|
|
36
|
+
"default": []
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"type": ["object", "boolean"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"$id": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"format": "uri-reference"
|
|
44
|
+
},
|
|
45
|
+
"$schema": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "uri"
|
|
48
|
+
},
|
|
49
|
+
"$ref": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"format": "uri-reference"
|
|
52
|
+
},
|
|
53
|
+
"title": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"description": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"default": {},
|
|
60
|
+
"examples": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {}
|
|
63
|
+
},
|
|
64
|
+
"multipleOf": {
|
|
65
|
+
"type": "number",
|
|
66
|
+
"exclusiveMinimum": 0
|
|
67
|
+
},
|
|
68
|
+
"maximum": {
|
|
69
|
+
"type": "number"
|
|
70
|
+
},
|
|
71
|
+
"exclusiveMaximum": {
|
|
72
|
+
"type": "number"
|
|
73
|
+
},
|
|
74
|
+
"minimum": {
|
|
75
|
+
"type": "number"
|
|
76
|
+
},
|
|
77
|
+
"exclusiveMinimum": {
|
|
78
|
+
"type": "number"
|
|
79
|
+
},
|
|
80
|
+
"maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
|
|
81
|
+
"minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
|
82
|
+
"pattern": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"format": "regex"
|
|
85
|
+
},
|
|
86
|
+
"additionalItems": { "$ref": "#" },
|
|
87
|
+
"items": {
|
|
88
|
+
"anyOf": [
|
|
89
|
+
{ "$ref": "#" },
|
|
90
|
+
{ "$ref": "#/definitions/schemaArray" }
|
|
91
|
+
],
|
|
92
|
+
"default": {}
|
|
93
|
+
},
|
|
94
|
+
"maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
|
|
95
|
+
"minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
|
96
|
+
"uniqueItems": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"default": false
|
|
99
|
+
},
|
|
100
|
+
"contains": { "$ref": "#" },
|
|
101
|
+
"maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
|
|
102
|
+
"minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
|
103
|
+
"required": { "$ref": "#/definitions/stringArray" },
|
|
104
|
+
"additionalProperties": { "$ref": "#" },
|
|
105
|
+
"definitions": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"additionalProperties": { "$ref": "#" },
|
|
108
|
+
"default": {}
|
|
109
|
+
},
|
|
110
|
+
"properties": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": { "$ref": "#" },
|
|
113
|
+
"default": {}
|
|
114
|
+
},
|
|
115
|
+
"patternProperties": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": { "$ref": "#" },
|
|
118
|
+
"propertyNames": { "format": "regex" },
|
|
119
|
+
"default": {}
|
|
120
|
+
},
|
|
121
|
+
"dependencies": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"additionalProperties": {
|
|
124
|
+
"anyOf": [
|
|
125
|
+
{ "$ref": "#" },
|
|
126
|
+
{ "$ref": "#/definitions/stringArray" }
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"propertyNames": { "$ref": "#" },
|
|
131
|
+
"const": {},
|
|
132
|
+
"enum": {
|
|
133
|
+
"type": "array"
|
|
134
|
+
},
|
|
135
|
+
"type": {
|
|
136
|
+
"anyOf": [
|
|
137
|
+
{ "$ref": "#/definitions/simpleTypes" },
|
|
138
|
+
{
|
|
139
|
+
"type": "array",
|
|
140
|
+
"items": { "$ref": "#/definitions/simpleTypes" },
|
|
141
|
+
"minItems": 1,
|
|
142
|
+
"uniqueItems": true
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"format": { "type": "string" },
|
|
147
|
+
"allOf": { "$ref": "#/definitions/schemaArray" },
|
|
148
|
+
"anyOf": { "$ref": "#/definitions/schemaArray" },
|
|
149
|
+
"oneOf": { "$ref": "#/definitions/schemaArray" },
|
|
150
|
+
"not": { "$ref": "#" }
|
|
151
|
+
},
|
|
152
|
+
"default": {}
|
|
153
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Core schema meta-schema",
|
|
5
|
+
"definitions": {
|
|
6
|
+
"schemaArray": {
|
|
7
|
+
"type": "array",
|
|
8
|
+
"minItems": 1,
|
|
9
|
+
"items": { "$ref": "#" }
|
|
10
|
+
},
|
|
11
|
+
"nonNegativeInteger": {
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"minimum": 0
|
|
14
|
+
},
|
|
15
|
+
"nonNegativeIntegerDefault0": {
|
|
16
|
+
"allOf": [
|
|
17
|
+
{ "$ref": "#/definitions/nonNegativeInteger" },
|
|
18
|
+
{ "default": 0 }
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"simpleTypes": {
|
|
22
|
+
"enum": [
|
|
23
|
+
"array",
|
|
24
|
+
"boolean",
|
|
25
|
+
"integer",
|
|
26
|
+
"null",
|
|
27
|
+
"number",
|
|
28
|
+
"object",
|
|
29
|
+
"string"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"stringArray": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": { "type": "string" },
|
|
35
|
+
"uniqueItems": true,
|
|
36
|
+
"default": []
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"type": ["object", "boolean"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"$id": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"format": "uri-reference"
|
|
44
|
+
},
|
|
45
|
+
"$schema": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "uri"
|
|
48
|
+
},
|
|
49
|
+
"$ref": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"format": "uri-reference"
|
|
52
|
+
},
|
|
53
|
+
"$comment": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"title": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"description": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"default": true,
|
|
63
|
+
"readOnly": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"default": false
|
|
66
|
+
},
|
|
67
|
+
"examples": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": true
|
|
70
|
+
},
|
|
71
|
+
"multipleOf": {
|
|
72
|
+
"type": "number",
|
|
73
|
+
"exclusiveMinimum": 0
|
|
74
|
+
},
|
|
75
|
+
"maximum": {
|
|
76
|
+
"type": "number"
|
|
77
|
+
},
|
|
78
|
+
"exclusiveMaximum": {
|
|
79
|
+
"type": "number"
|
|
80
|
+
},
|
|
81
|
+
"minimum": {
|
|
82
|
+
"type": "number"
|
|
83
|
+
},
|
|
84
|
+
"exclusiveMinimum": {
|
|
85
|
+
"type": "number"
|
|
86
|
+
},
|
|
87
|
+
"maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
|
|
88
|
+
"minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
|
89
|
+
"pattern": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"format": "regex"
|
|
92
|
+
},
|
|
93
|
+
"additionalItems": { "$ref": "#" },
|
|
94
|
+
"items": {
|
|
95
|
+
"anyOf": [
|
|
96
|
+
{ "$ref": "#" },
|
|
97
|
+
{ "$ref": "#/definitions/schemaArray" }
|
|
98
|
+
],
|
|
99
|
+
"default": true
|
|
100
|
+
},
|
|
101
|
+
"maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
|
|
102
|
+
"minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
|
103
|
+
"uniqueItems": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"default": false
|
|
106
|
+
},
|
|
107
|
+
"contains": { "$ref": "#" },
|
|
108
|
+
"maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
|
|
109
|
+
"minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
|
|
110
|
+
"required": { "$ref": "#/definitions/stringArray" },
|
|
111
|
+
"additionalProperties": { "$ref": "#" },
|
|
112
|
+
"definitions": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"additionalProperties": { "$ref": "#" },
|
|
115
|
+
"default": {}
|
|
116
|
+
},
|
|
117
|
+
"properties": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": { "$ref": "#" },
|
|
120
|
+
"default": {}
|
|
121
|
+
},
|
|
122
|
+
"patternProperties": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"additionalProperties": { "$ref": "#" },
|
|
125
|
+
"propertyNames": { "format": "regex" },
|
|
126
|
+
"default": {}
|
|
127
|
+
},
|
|
128
|
+
"dependencies": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"additionalProperties": {
|
|
131
|
+
"anyOf": [
|
|
132
|
+
{ "$ref": "#" },
|
|
133
|
+
{ "$ref": "#/definitions/stringArray" }
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"propertyNames": { "$ref": "#" },
|
|
138
|
+
"const": true,
|
|
139
|
+
"enum": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"items": true
|
|
142
|
+
},
|
|
143
|
+
"type": {
|
|
144
|
+
"anyOf": [
|
|
145
|
+
{ "$ref": "#/definitions/simpleTypes" },
|
|
146
|
+
{
|
|
147
|
+
"type": "array",
|
|
148
|
+
"items": { "$ref": "#/definitions/simpleTypes" },
|
|
149
|
+
"minItems": 1,
|
|
150
|
+
"uniqueItems": true
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"format": { "type": "string" },
|
|
155
|
+
"contentMediaType": { "type": "string" },
|
|
156
|
+
"contentEncoding": { "type": "string" },
|
|
157
|
+
"if": {"$ref": "#"},
|
|
158
|
+
"then": {"$ref": "#"},
|
|
159
|
+
"else": {"$ref": "#"},
|
|
160
|
+
"allOf": { "$ref": "#/definitions/schemaArray" },
|
|
161
|
+
"anyOf": { "$ref": "#/definitions/schemaArray" },
|
|
162
|
+
"oneOf": { "$ref": "#/definitions/schemaArray" },
|
|
163
|
+
"not": { "$ref": "#" }
|
|
164
|
+
},
|
|
165
|
+
"default": true
|
|
166
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pip
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mcp
|
|
3
|
+
Version: 1.27.0
|
|
4
|
+
Summary: Model Context Protocol SDK
|
|
5
|
+
Project-URL: Homepage, https://modelcontextprotocol.io
|
|
6
|
+
Project-URL: Repository, https://github.com/modelcontextprotocol/python-sdk
|
|
7
|
+
Project-URL: Issues, https://github.com/modelcontextprotocol/python-sdk/issues
|
|
8
|
+
Author: Anthropic, PBC.
|
|
9
|
+
Maintainer-email: David Soria Parra <davidsp@anthropic.com>, Justin Spahr-Summers <justin@anthropic.com>
|
|
10
|
+
License: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: automation,git,llm,mcp
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Requires-Dist: anyio>=4.5
|
|
23
|
+
Requires-Dist: httpx-sse>=0.4
|
|
24
|
+
Requires-Dist: httpx>=0.27.1
|
|
25
|
+
Requires-Dist: jsonschema>=4.20.0
|
|
26
|
+
Requires-Dist: pydantic-settings>=2.5.2
|
|
27
|
+
Requires-Dist: pydantic<3.0.0,>=2.11.0
|
|
28
|
+
Requires-Dist: pyjwt[crypto]>=2.10.1
|
|
29
|
+
Requires-Dist: python-multipart>=0.0.9
|
|
30
|
+
Requires-Dist: pywin32>=310; sys_platform == 'win32'
|
|
31
|
+
Requires-Dist: sse-starlette>=1.6.1
|
|
32
|
+
Requires-Dist: starlette>=0.27
|
|
33
|
+
Requires-Dist: typing-extensions>=4.9.0
|
|
34
|
+
Requires-Dist: typing-inspection>=0.4.1
|
|
35
|
+
Requires-Dist: uvicorn>=0.31.1; sys_platform != 'emscripten'
|
|
36
|
+
Provides-Extra: cli
|
|
37
|
+
Requires-Dist: python-dotenv>=1.0.0; extra == 'cli'
|
|
38
|
+
Requires-Dist: typer>=0.16.0; extra == 'cli'
|
|
39
|
+
Provides-Extra: rich
|
|
40
|
+
Requires-Dist: rich>=13.9.4; extra == 'rich'
|
|
41
|
+
Provides-Extra: ws
|
|
42
|
+
Requires-Dist: websockets>=15.0.1; extra == 'ws'
|
|
43
|
+
Description-Content-Type: text/markdown
|
|
44
|
+
|
|
45
|
+
# MCP Python SDK
|
|
46
|
+
|
|
47
|
+
<div align="center">
|
|
48
|
+
|
|
49
|
+
<strong>Python implementation of the Model Context Protocol (MCP)</strong>
|
|
50
|
+
|
|
51
|
+
[![PyPI][pypi-badge]][pypi-url]
|
|
52
|
+
[![MIT licensed][mit-badge]][mit-url]
|
|
53
|
+
[![Python Version][python-badge]][python-url]
|
|
54
|
+
[![Documentation][docs-badge]][docs-url]
|
|
55
|
+
[![Protocol][protocol-badge]][protocol-url]
|
|
56
|
+
[![Specification][spec-badge]][spec-url]
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<!-- omit in toc -->
|
|
61
|
+
## Table of Contents
|
|
62
|
+
|
|
63
|
+
- [MCP Python SDK](#mcp-python-sdk)
|
|
64
|
+
- [Overview](#overview)
|
|
65
|
+
- [Installation](#installation)
|
|
66
|
+
- [Quickstart](#quickstart)
|
|
67
|
+
- [What is MCP?](#what-is-mcp)
|
|
68
|
+
- [Documentation](#documentation)
|
|
69
|
+
- [Contributing](#contributing)
|
|
70
|
+
- [License](#license)
|
|
71
|
+
|
|
72
|
+
[pypi-badge]: https://img.shields.io/pypi/v/mcp.svg
|
|
73
|
+
[pypi-url]: https://pypi.org/project/mcp/
|
|
74
|
+
[mit-badge]: https://img.shields.io/pypi/l/mcp.svg
|
|
75
|
+
[mit-url]: https://github.com/modelcontextprotocol/python-sdk/blob/main/LICENSE
|
|
76
|
+
[python-badge]: https://img.shields.io/pypi/pyversions/mcp.svg
|
|
77
|
+
[python-url]: https://www.python.org/downloads/
|
|
78
|
+
[docs-badge]: https://img.shields.io/badge/docs-python--sdk-blue.svg
|
|
79
|
+
[docs-url]: https://modelcontextprotocol.github.io/python-sdk/
|
|
80
|
+
[protocol-badge]: https://img.shields.io/badge/protocol-modelcontextprotocol.io-blue.svg
|
|
81
|
+
[protocol-url]: https://modelcontextprotocol.io
|
|
82
|
+
[spec-badge]: https://img.shields.io/badge/spec-spec.modelcontextprotocol.io-blue.svg
|
|
83
|
+
[spec-url]: https://modelcontextprotocol.io/specification/latest
|
|
84
|
+
|
|
85
|
+
## Overview
|
|
86
|
+
|
|
87
|
+
The Model Context Protocol allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction. This Python SDK implements the full MCP specification, making it easy to:
|
|
88
|
+
|
|
89
|
+
- Build MCP clients that can connect to any MCP server
|
|
90
|
+
- Create MCP servers that expose resources, prompts and tools
|
|
91
|
+
- Use standard transports like stdio, SSE, and Streamable HTTP
|
|
92
|
+
- Handle all MCP protocol messages and lifecycle events
|
|
93
|
+
|
|
94
|
+
## Installation
|
|
95
|
+
|
|
96
|
+
### Adding MCP to your python project
|
|
97
|
+
|
|
98
|
+
We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects.
|
|
99
|
+
|
|
100
|
+
If you haven't created a uv-managed project yet, create one:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
uv init mcp-server-demo
|
|
104
|
+
cd mcp-server-demo
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Then add MCP to your project dependencies:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
uv add "mcp[cli]"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Alternatively, for projects using pip for dependencies:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
pip install "mcp[cli]"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Running the standalone MCP development tools
|
|
120
|
+
|
|
121
|
+
To run the mcp command with uv:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
uv run mcp
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Quickstart
|
|
128
|
+
|
|
129
|
+
Let's create a simple MCP server that exposes a calculator tool and some data:
|
|
130
|
+
|
|
131
|
+
<!-- snippet-source examples/snippets/servers/fastmcp_quickstart.py -->
|
|
132
|
+
```python
|
|
133
|
+
"""
|
|
134
|
+
FastMCP quickstart example.
|
|
135
|
+
|
|
136
|
+
Run from the repository root:
|
|
137
|
+
uv run examples/snippets/servers/fastmcp_quickstart.py
|
|
138
|
+
"""
|
|
139
|
+
|
|
140
|
+
from mcp.server.fastmcp import FastMCP
|
|
141
|
+
|
|
142
|
+
# Create an MCP server
|
|
143
|
+
mcp = FastMCP("Demo", json_response=True)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
# Add an addition tool
|
|
147
|
+
@mcp.tool()
|
|
148
|
+
def add(a: int, b: int) -> int:
|
|
149
|
+
"""Add two numbers"""
|
|
150
|
+
return a + b
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
# Add a dynamic greeting resource
|
|
154
|
+
@mcp.resource("greeting://{name}")
|
|
155
|
+
def get_greeting(name: str) -> str:
|
|
156
|
+
"""Get a personalized greeting"""
|
|
157
|
+
return f"Hello, {name}!"
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
# Add a prompt
|
|
161
|
+
@mcp.prompt()
|
|
162
|
+
def greet_user(name: str, style: str = "friendly") -> str:
|
|
163
|
+
"""Generate a greeting prompt"""
|
|
164
|
+
styles = {
|
|
165
|
+
"friendly": "Please write a warm, friendly greeting",
|
|
166
|
+
"formal": "Please write a formal, professional greeting",
|
|
167
|
+
"casual": "Please write a casual, relaxed greeting",
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return f"{styles.get(style, styles['friendly'])} for someone named {name}."
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
# Run with streamable HTTP transport
|
|
174
|
+
if __name__ == "__main__":
|
|
175
|
+
mcp.run(transport="streamable-http")
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
_Full example: [examples/snippets/servers/fastmcp_quickstart.py](https://github.com/modelcontextprotocol/python-sdk/blob/v1.x/examples/snippets/servers/fastmcp_quickstart.py)_
|
|
179
|
+
<!-- /snippet-source -->
|
|
180
|
+
|
|
181
|
+
You can install this server in [Claude Code](https://docs.claude.com/en/docs/claude-code/mcp) and interact with it right away. First, run the server:
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
uv run --with mcp examples/snippets/servers/fastmcp_quickstart.py
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
Then add it to Claude Code:
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
claude mcp add --transport http my-server http://localhost:8000/mcp
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Alternatively, you can test it with the MCP Inspector. Start the server as above, then in a separate terminal:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
npx -y @modelcontextprotocol/inspector
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
In the inspector UI, connect to `http://localhost:8000/mcp`.
|
|
200
|
+
|
|
201
|
+
## What is MCP?
|
|
202
|
+
|
|
203
|
+
The [Model Context Protocol (MCP)](https://modelcontextprotocol.io) lets you build servers that expose data and functionality to LLM applications in a secure, standardized way. Think of it like a web API, but specifically designed for LLM interactions. MCP servers can:
|
|
204
|
+
|
|
205
|
+
- Expose data through **Resources** (think of these sort of like GET endpoints; they are used to load information into the LLM's context)
|
|
206
|
+
- Provide functionality through **Tools** (sort of like POST endpoints; they are used to execute code or otherwise produce a side effect)
|
|
207
|
+
- Define interaction patterns through **Prompts** (reusable templates for LLM interactions)
|
|
208
|
+
- And more!
|
|
209
|
+
|
|
210
|
+
## Documentation
|
|
211
|
+
|
|
212
|
+
- [Building Servers](docs/server.md) -- tools, resources, prompts, logging, completions, sampling, elicitation, transports, ASGI mounting
|
|
213
|
+
- [Writing Clients](docs/client.md) -- connecting to servers, using tools/resources/prompts, display utilities
|
|
214
|
+
- [Authorization](docs/authorization.md) -- OAuth 2.1, token verification, client authentication
|
|
215
|
+
- [Low-Level Server](docs/low-level-server.md) -- direct handler registration for advanced use cases
|
|
216
|
+
- [Protocol Features](docs/protocol.md) -- MCP primitives, server capabilities
|
|
217
|
+
- [Testing](docs/testing.md) -- in-memory transport testing with pytest
|
|
218
|
+
- [API Reference](https://modelcontextprotocol.github.io/python-sdk/api/)
|
|
219
|
+
- [Experimental Features (Tasks)](https://modelcontextprotocol.github.io/python-sdk/experimental/tasks/)
|
|
220
|
+
- [Model Context Protocol documentation](https://modelcontextprotocol.io)
|
|
221
|
+
- [Model Context Protocol specification](https://modelcontextprotocol.io/specification/latest)
|
|
222
|
+
- [Officially supported servers](https://github.com/modelcontextprotocol/servers)
|
|
223
|
+
|
|
224
|
+
## Contributing
|
|
225
|
+
|
|
226
|
+
We are passionate about supporting contributors of all levels of experience and would love to see you get involved in the project. See the [contributing guide](CONTRIBUTING.md) to get started.
|
|
227
|
+
|
|
228
|
+
## License
|
|
229
|
+
|
|
230
|
+
This project is licensed under the MIT License - see the LICENSE file for details.
|