---
title: types | CodeWeaver Docs
description: API reference for codeweaver.server.config.types
url: "https://docs.knitli.com/api/server/config/types"
type: static
generatedAt: "2026-04-17T17:21:09.768Z"
---

# types
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/server/config/types.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F&text=types)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F&text=types)[Share on Bluesky](https://bsky.app/intent/compose?text=types%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F&title=types)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F&t=types)[Share on Email](mailto:?subject=types&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F)[Share on WhatsApp](https://wa.me/?text=types%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fconfig%2Ftypes%2F&text=types)
# `codeweaver.server.config.types`
[Section titled “codeweaver.server.config.types”](#codeweaverserverconfigtypes)
Supporting types for CodeWeaver settings and configuration.

This module primarily consists of a series of TypedDict classes that define the structure of various configuration options for CodeWeaver, including logging settings, middleware settings, provider settings, and more. Most of these settings are optional, with sensible defaults provided where applicable.

Some of these also represent serialized versions of the pydantic settings models, to provide clear typing and validation for configuration files and environment variables in their serialized forms.

## Class: `CodeWeaverMCPConfigDict`
[Section titled “Class: CodeWeaverMCPConfigDict”](#class-codeweavermcpconfigdict)
TypedDict for CodeWeaverMCPConfig serialization.

## Class: `EndpointSettingsDict`
[Section titled “Class: EndpointSettingsDict”](#class-endpointsettingsdict)
Defines enable/disable settings for various CodeWeaver HTTP endpoints.

Health and metrics are always enabled because they are used internally for monitoring and diagnostics (CodeWeaver is actually multiple servers which sometimes need to check in with each other).

## Class: `FastMcpHttpRunArgs`
[Section titled “Class: FastMcpHttpRunArgs”](#class-fastmcphttprunargs)
Arguments for running FastMCP over HTTP.

## Class: `FastMcpServerSettingsDict`
[Section titled “Class: FastMcpServerSettingsDict”](#class-fastmcpserversettingsdict)
TypedDict for FastMCP server settings.

Not intended to be used directly; used for internal type checking and validation.

Other notes: FastMCP seems to be moving towards using direct run arguments, particularly for server transport settings (like host/port). It seems like everytime we bump versions a new setting is deprecated.

## Class: `MCPConfigDict`
[Section titled “Class: MCPConfigDict”](#class-mcpconfigdict)
TypedDict for MCPConfig serialization.

## Class: `StdioCodeWeaverConfigDict`
[Section titled “Class: StdioCodeWeaverConfigDict”](#class-stdiocodeweaverconfigdict)
TypedDict for StdioCodeWeaverConfig serialization.

## Class: `UvicornServerSettings`
[Section titled “Class: UvicornServerSettings”](#class-uvicornserversettings)
Uvicorn server settings. Besides the port, these are all defaults for uvicorn.

We expose them so you can configure them for advanced deployments inside your codeweaver.toml (or yaml or json).

### Method: `codeweaver_management_defaults`
[Section titled “Method: codeweaver_management_defaults”](#method-codeweaver_management_defaults)

**

```
codeweaver_management_defaults()
```

Get default Uvicorn settings for CodeWeaver Management Server.

### Method: `codeweaver_server_mcp`
[Section titled “Method: codeweaver_server_mcp”](#method-codeweaver_server_mcp)

**

```
codeweaver_server_mcp()
```

Get default Uvicorn settings for CodeWeaver MCP Server.

## Class: `UvicornServerSettingsDict`
[Section titled “Class: UvicornServerSettingsDict”](#class-uvicornserversettingsdict)
TypedDict for Uvicorn server settings.

Not intended to be used directly; used for internal type checking and validation. We’re all adults here, so it’s here if you want it.