URLs
URL configuration of the MCPServer app: the endpoints of the MCP server.
The MCPServer serves its tools at two endpoints, mounted at /api/v1/mcp/, in the
api:v1:mcpserver namespace:
smarter-project/: the public tools, over every repository of The Smarter Project and its blog.smarter-project/<repository>/: the public tools, over one repository, e.g.smarter-cli.smarter-operations/: the staff-only tools, for the platform’s staff.
See smarter.apps.mcpserver.protocol.views.
Note
Experimental. The MCPServer was designed and coded by Claude Code (Anthropic’s Claude Opus 5.5), with Lawrence McDaniel as co-author. It is experimental, and will be documented.
- class smarter.apps.mcpserver.urls.MCPServerReverseNames[source]
Bases:
objectReverse view names of the MCPServer app.
Each name is
to_snake_case()of its view class’s name, so that it changes with the view. Reverse them withnamespace.Example
from django.urls import reverse url = reverse(f"{MCPServerReverseNames.namespace}:{MCPServerReverseNames.public_repository}", kwargs={"repository": "smarter-cli"})
- namespace = 'api:v1:mcpserver'
The app’s full namespace, under the api’s.
- public = 'public_endpoint_view'
The endpoint of the public tools, over every repository.
- public_repository = 'public_endpoint_view_repository'
The endpoint of the public tools, over one repository, whose name is the
repositorykwarg.
- staff = 'staff_endpoint_view'
The endpoint of the staff-only tools.
- smarter.apps.mcpserver.urls.app_name = 'mcpserver'
The app’s url namespace,
mcpserver.
- smarter.apps.mcpserver.urls.urlpatterns = [<URLPattern 'smarter-project/' [name='public_endpoint_view']>, <URLPattern 'smarter-project/<str:repository>/' [name='public_endpoint_view_repository']>, <URLPattern 'smarter-operations/' [name='staff_endpoint_view']>]
The MCPServer’s endpoints.
[ <URLPattern 'smarter-project/' [name='public_endpoint_view']>, <URLPattern 'smarter-project/<str:repository>/' [name='public_endpoint_view_repository']>, <URLPattern 'smarter-operations/' [name='staff_endpoint_view']>, ]