Skip to main content
Glama

AnyDocs MCP Server

by funky1688
pyproject.tomlโ€ข12.3 kB
[build-system] requires = ["setuptools>=61.0", "wheel"] build-backend = "setuptools.build_meta" [project] name = "anydocs-mcp-server" version = "1.0.0" description = "Transform any application's documentation into an MCP-compatible server using Python MCP SDK" readme = "README.md" requires-python = ">=3.11,<3.13" license = {text = "MIT"} authors = [ {name = "AnyDocs MCP Team", email = "team@anydocs-mcp.com"}, ] maintainers = [ {name = "AnyDocs MCP Team", email = "team@anydocs-mcp.com"}, ] keywords = [ "mcp", "documentation", "server", "api", "integration", "python", "sdk", "docs", "platform", "adapter", ] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Documentation", "Topic :: Internet :: WWW/HTTP :: HTTP Servers", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Systems Administration", "Topic :: Text Processing :: Markup", "Framework :: FastAPI", "Framework :: AsyncIO", ] # Core dependencies dependencies = [ # MCP SDK and core "mcp>=1.0.0", "pydantic>=2.5.0", "pydantic-settings>=2.1.0", # Web framework "fastapi>=0.104.0", "uvicorn[standard]>=0.24.0", "starlette>=0.27.0", # Database "sqlalchemy>=2.0.0", "alembic>=1.13.0", "aiosqlite>=0.19.0", # HTTP client "httpx>=0.25.0", "aiohttp>=3.9.0", # Configuration and environment "pyyaml>=6.0.1", "python-dotenv>=1.0.0", "click>=8.1.0", # Content processing "markdown>=3.5.0", "beautifulsoup4>=4.12.0", "lxml>=4.9.0", "html2text>=2020.1.16", "markdownify>=0.11.6", # Authentication and security "python-jose[cryptography]>=3.3.0", "passlib[bcrypt]>=1.7.4", "python-multipart>=0.0.6", # Caching and performance "redis>=5.0.0", "aiocache>=0.12.0", # Logging and monitoring "structlog>=23.2.0", "prometheus-client>=0.19.0", # Utilities "python-dateutil>=2.8.2", "pytz>=2023.3", "jinja2>=3.1.0", "rich>=13.7.0", "typer>=0.9.0", ] # Optional dependencies for different features [project.optional-dependencies] # Development dependencies dev = [ "pytest>=7.4.0", "pytest-asyncio>=0.21.0", "pytest-cov>=4.1.0", "pytest-mock>=3.12.0", "pytest-xdist>=3.5.0", "black>=23.12.0", "isort>=5.13.0", "flake8>=6.1.0", "mypy>=1.8.0", "pre-commit>=3.6.0", "bandit>=1.7.5", "safety>=2.3.0", "coverage>=7.3.0", ] # Documentation dependencies docs = [ "sphinx>=7.2.0", "sphinx-rtd-theme>=2.0.0", "sphinx-autodoc-typehints>=1.25.0", "myst-parser>=2.0.0", "sphinx-copybutton>=0.5.2", "sphinx-autobuild>=2021.3.14", ] # Testing dependencies test = [ "pytest>=7.4.0", "pytest-asyncio>=0.21.0", "pytest-cov>=4.1.0", "pytest-mock>=3.12.0", "pytest-xdist>=3.5.0", "pytest-benchmark>=4.0.0", "pytest-timeout>=2.2.0", "factory-boy>=3.3.0", "faker>=21.0.0", "httpx>=0.25.0", "respx>=0.20.0", ] # Performance and monitoring monitoring = [ "prometheus-client>=0.19.0", "opentelemetry-api>=1.21.0", "opentelemetry-sdk>=1.21.0", "opentelemetry-instrumentation-fastapi>=0.42b0", "opentelemetry-instrumentation-sqlalchemy>=0.42b0", "opentelemetry-instrumentation-redis>=0.42b0", # "opentelemetry-exporter-prometheus>=1.10.0,<1.11.0", # Temporarily disabled due to version conflicts "sentry-sdk[fastapi]>=1.39.0", ] # Database drivers database = [ "asyncpg>=0.29.0", # PostgreSQL "aiomysql>=0.2.0", # MySQL "aiosqlite>=0.19.0", # SQLite (already in core) ] # Document platform integrations integrations = [ # Notion "notion-client>=2.2.0", # Confluence "atlassian-python-api>=3.41.0", # Microsoft Graph (SharePoint, Teams) "msgraph-core>=0.2.2", "azure-identity>=1.15.0", # Slack "slack-sdk>=3.26.0", # GitHub "pygithub>=2.1.0", # GitLab "python-gitlab>=4.2.0", ] # AI/ML integrations ai = [ "openai>=1.6.0", "anthropic>=0.8.0", "google-generativeai>=0.3.0", "tiktoken>=0.5.0", "sentence-transformers>=2.2.0", "chromadb>=0.4.0", "faiss-cpu>=1.7.0", ] # All optional dependencies all = [ "anydocs-mcp-server[dev,docs,test,monitoring,database,integrations,ai]", ] [project.urls] Homepage = "https://github.com/your-org/anydocs-mcp-server" Documentation = "https://anydocs-mcp-server.readthedocs.io/" Repository = "https://github.com/your-org/anydocs-mcp-server.git" "Bug Tracker" = "https://github.com/your-org/anydocs-mcp-server/issues" Changelog = "https://github.com/your-org/anydocs-mcp-server/blob/main/CHANGELOG.md" "Funding" = "https://github.com/sponsors/your-org" [project.scripts] anydocs-mcp = "anydocs_mcp.server:main" anydocs-mcp-server = "anydocs_mcp.server:main" anydocs-start = "start:main" [project.entry-points."anydocs_mcp.adapters"] gitbook = "anydocs_mcp.adapters.gitbook:GitBookAdapter" notion = "anydocs_mcp.adapters.notion:NotionAdapter" confluence = "anydocs_mcp.adapters.confluence:ConfluenceAdapter" local = "anydocs_mcp.adapters.local:LocalAdapter" github = "anydocs_mcp.adapters.github:GitHubAdapter" gitlab = "anydocs_mcp.adapters.gitlab:GitLabAdapter" sharepoint = "anydocs_mcp.adapters.sharepoint:SharePointAdapter" slack = "anydocs_mcp.adapters.slack:SlackAdapter" # Tool configurations [tool.setuptools.packages.find] where = ["src"] include = ["anydocs_mcp*"] exclude = ["tests*"] [tool.setuptools.package-data] "anydocs_mcp" = [ "templates/*.html", "templates/*.jinja2", "static/**/*", "schemas/*.json", "migrations/*.sql", "config/*.yaml", "config/*.yml", ] # Black configuration [tool.black] line-length = 88 target-version = ['py311'] include = '\.pyi?$' extend-exclude = ''' ( /( \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | _build | buck-out | build | dist | migrations )/ ) ''' # isort configuration [tool.isort] profile = "black" line_length = 88 multi_line_output = 3 include_trailing_comma = true force_grid_wrap = 0 use_parentheses = true ensure_newline_before_comments = true src_paths = ["src", "tests"] skip_glob = ["migrations/*"] # MyPy configuration [tool.mypy] python_version = "3.11" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true disallow_incomplete_defs = true check_untyped_defs = true disallow_untyped_decorators = true no_implicit_optional = true warn_redundant_casts = true warn_unused_ignores = true warn_no_return = true warn_unreachable = true strict_equality = true show_error_codes = true show_column_numbers = true show_error_context = true pretty = true # Per-module options [[tool.mypy.overrides]] module = [ "tests.*", "migrations.*", ] ignore_errors = true [[tool.mypy.overrides]] module = [ "mcp.*", "atlassian.*", "notion_client.*", "slack_sdk.*", "github.*", "gitlab.*", "msgraph.*", "azure.*", "openai.*", "anthropic.*", "google.*", "chromadb.*", "faiss.*", "sentence_transformers.*", ] ignore_missing_imports = true # Pytest configuration [tool.pytest.ini_options] minversion = "6.0" addopts = "-ra -q --strict-markers --strict-config" testpaths = ["tests"] python_files = ["test_*.py", "*_test.py"] python_classes = ["Test*"] python_functions = ["test_*"] filterwarnings = [ "error", "ignore::UserWarning", "ignore::DeprecationWarning", ] markers = [ "slow: marks tests as slow (deselect with '-m \"not slow\"')", "integration: marks tests as integration tests", "unit: marks tests as unit tests", "adapter: marks tests related to document adapters", "database: marks tests related to database operations", "mcp: marks tests related to MCP protocol", ] [tool.coverage.run] source = ["src/anydocs_mcp"] omit = [ "*/tests/*", "*/venv/*", "*/env/*", "*/__pycache__/*", ] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "def __repr__", "if self.debug:", "if settings.DEBUG", "raise AssertionError", "raise NotImplementedError", "if 0:", "if __name__ == .__main__.:", "class .*\\bProtocol\\):", "@(abc\\.)?abstractmethod", ] ignore_errors = true [tool.coverage.html] directory = "htmlcov" [tool.coverage.xml] output = "coverage.xml" # Bandit security linter configuration [tool.bandit] exclude_dirs = ["tests", "migrations"] skips = ["B101", "B601"] # Flake8 configuration (in setup.cfg since flake8 doesn't support pyproject.toml) # See setup.cfg for flake8 configuration # Ruff configuration (alternative to flake8) [tool.ruff] line-length = 88 target-version = "py311" src = ["src", "tests"] [tool.ruff.lint] select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort "B", # flake8-bugbear "C4", # flake8-comprehensions "UP", # pyupgrade "ARG", # flake8-unused-arguments "SIM", # flake8-simplify "TCH", # flake8-type-checking "PTH", # flake8-use-pathlib "ERA", # eradicate "PL", # pylint "TRY", # tryceratops "RUF", # ruff-specific rules ] ignore = [ "E501", # line too long, handled by black "B008", # do not perform function calls in argument defaults "C901", # too complex "PLR0913", # too many arguments "PLR0915", # too many statements "TRY003", # avoid specifying long messages outside the exception class ] [tool.ruff.lint.per-file-ignores] "tests/**/*" = ["PLR2004", "S101", "TID252"] "migrations/**/*" = ["ERA001"] [tool.ruff.lint.isort] known-first-party = ["anydocs_mcp"] [tool.ruff.lint.pyupgrade] keep-runtime-typing = true # Semantic release configuration [tool.semantic_release] version_toml = ["pyproject.toml:project.version"] version_variables = [ "src/anydocs_mcp/__init__.py:__version__", "docs/conf.py:version", ] build_command = "pip install build && python -m build" upload_to_pypi = false upload_to_release = true remove_dist = false [tool.semantic_release.changelog] template_dir = "templates" changelog_file = "CHANGELOG.md" exclude_commit_patterns = [ "^docs:", "^test:", "^chore:", "^ci:", ] [tool.semantic_release.branches.main] match = "main" prerelease = false [tool.semantic_release.branches.develop] match = "develop" prerelease = true prerelease_token = "dev" # Hatch configuration (alternative build backend) [tool.hatch.version] path = "src/anydocs_mcp/__init__.py" [tool.hatch.build.targets.sdist] include = [ "/src", "/tests", "/docs", "/README.md", "/LICENSE", "/CHANGELOG.md", ] exclude = [ "/.github", "/dist", "/.pytest_cache", "/.mypy_cache", "/__pycache__", ] [tool.hatch.build.targets.wheel] packages = ["src/anydocs_mcp"] # PDM configuration (alternative dependency manager) [tool.pdm] distribution = true [tool.pdm.dev-dependencies] dev = [ "pytest>=7.4.0", "pytest-asyncio>=0.21.0", "pytest-cov>=4.1.0", "black>=23.12.0", "isort>=5.13.0", "flake8>=6.1.0", "mypy>=1.8.0", "pre-commit>=3.6.0", ] # Poetry configuration (alternative dependency manager) [tool.poetry] name = "anydocs-mcp-server" version = "1.0.0" description = "Transform any application's documentation into an MCP-compatible server" authors = ["AnyDocs MCP Team <team@anydocs-mcp.com>"] license = "MIT" readme = "README.md" homepage = "https://github.com/your-org/anydocs-mcp-server" repository = "https://github.com/your-org/anydocs-mcp-server" documentation = "https://anydocs-mcp-server.readthedocs.io/" keywords = ["mcp", "documentation", "server", "api"] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", ] packages = [{include = "anydocs_mcp", from = "src"}]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/funky1688/AnyDocs-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server